$.get({
url: “https://api.envato.com/v1/market/total-items.json”,
headers: {“Authorization” : “Bearer token_name”}
}).done(function (data) {
console.log(data);
}).fail(function (jqXHR, textStatus) {
alert("error: " + textStatus);
});
$.get({
url: “https://api.envato.com/v1/market/total-items.json”,
headers: {“Authorization” : “Bearer token_name”}
}).done(function (data) {
console.log(data);
}).fail(function (jqXHR, textStatus) {
alert("error: " + textStatus);
});