Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Flickr json_decode not working
When I just return the
it is fine - I get the feed.
When I use
$profile = json_decode( $json_feed['body'] ); return $profile;
I keep getting NULL
I found the answer here: http://stackoverflow.com/questions/18829328/json-decode-not-working-in-flickr-api
The Flickr API documentation says, instead of using the normal JSON, you can get the raw JSON by appending the nojsoncallback parameter with the value of 1 to the URL
I was doing this as part of the Extra Credit for 'Connecting WordPress Plugins with 3rd Party APIs'
I am new to API's and I think it would help to have a video on how to decipher the API pages and what to look for, as they cover a lot of methods and languages.