I tried to integrate Asana API in my HTML, CSS and Jquery Only projects. I get the response but i get Invalid Syntax error please guide what am doing wrong for using Client side available Features only.. I can't use any server side solution. So required help in finding Client side solution only am grateful to you Thanks.
$.ajax({
url : 'https://app.asana.com/api/1.0/workspaces/',
username : API_KEY,
dataType: 'jsonp',
contentType:"application/json",
success: function (response) {
console.log(response["data"]);
},
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(xhr.thrownError);
}
});