$.ajax({
url: "https://api.myintervals.com/task/",
dataType: "json",
headers: {
authorization: "Basic " + Base64.encode(api_token+":x"),
nocache: Math.random()
},
success: function(data, code, jqx) {
alert("it worked, and here's the response data: " + data);
},
error: function(jqx, err, ex) {
alert("FAIL: " + err);
},
complete: function(jqx, status) {
console.log("request complete");
}
});
1 to 3 of 3