philsturgeon / ee2-rest

Integrate RESTful API's into your ExpressionEngine 2.0 website with this Rest module.
http://devot-ee.com/add-ons/rest
34 stars 13 forks source link

Flickr API #8

Closed oblogic7 closed 11 years ago

oblogic7 commented 11 years ago

I am unable to get any results from the Flickr API. A response is returned, but rest will not loop through any of the results. In particular I am trying to get a list of collections for a specific user. The response is prefixed by jsonFlickrApi. I have tried setting this as my base, but it has no effect. I cannot figure out why neither XML nor JSON responses will work. Any ideas?

My request: http://api.flickr.com/services/rest/?api_key=***&method=flickr.collections.getTree&user_id=98072959@N05&format=json

oblogic7 commented 11 years ago

This module does not support JSONP which Flickr returns by default. Adding nojsoncallback=1 to a request will remove the callback wrapper and allow ee-rest to work as expected.