JSON Callback?
I am trying to pull a JSON feed of my images but whenever I try and use a callback, it responds with an HTML formatted feed of all my postings. Can someone tell me what URL parameters I need to have to get a proper callback?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Aron Carroll on 04 Jan, 2010 09:30 AM
Hi Keith,
Apologies for the delayed reply to your question, I'm afraid we don't yet have support for JSONP, http://en.wikipedia.org/wiki/JSON#JSONP, in our API. So you won't be able to supply a callback to access the API using JavaScript.
However I can see how this would be an extremely useful feature of the API and have added it to our feature wish list.
In the meantime you could use a script on your server to pull in the JSON file and then access this using JavaScript.
I hope this helps, if you have further questions please do let me know.
Cheers,
Aron
---
Aron Carroll
Web Developer, Realmac Software
Luke Hefson closed this discussion on 08 Jan, 2010 02:32 PM.
Aron Carroll re-opened this discussion on 18 Jan, 2010 09:39 AM
3 Posted by Aron Carroll on 18 Jan, 2010 09:39 AM
Hi,
Just wanted to update this thread to let you know that you can now make JSONP requests to the Ember API. Simply add a parameter called
callbackto your query url. e.g.Cheers,
Aron
Nik Fletcher closed this discussion on 22 Jan, 2010 02:59 PM.