I'm trying to consume an api through Ajax, but I get an error executing it.
var data2 = {
resource_id: '1d7e45e5-b159-46a2-bdce-90393c7a8a2b', // the resource id
limit: 5, // get 5 results
q: 'jones', // query for 'jones'
};...
I'm trying to get a JSON from an external page, I'm using dataType=jsonp , but only that url, returns me a JSON and the following error: / p>
Uncaught SyntaxError: Unexpected token:
The JSON returns me the following token:
{...