JSON Callback?

Keith's Avatar

Keith

30 Dec, 2009 05:54 PM via web

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?

  1. 2 Posted by Aron Carroll on 04 Jan, 2010 09:30 AM

    Aron Carroll's Avatar

    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

  2. Luke Hefson closed this discussion on 08 Jan, 2010 02:32 PM.

  3. Aron Carroll re-opened this discussion on 18 Jan, 2010 09:39 AM

  4. 3 Posted by Aron Carroll on 18 Jan, 2010 09:39 AM

    Aron Carroll's Avatar

    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 callback to your query url. e.g.

    http://api.emberapp.com/users/view/ac94/images/index.json?callback=myEmberCallback
    

    Cheers,

    Aron

  5. Nik Fletcher closed this discussion on 22 Jan, 2010 02:59 PM.

Comments are currently closed for this discussion. You can start a new one.