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! While you're at it, check out some resources Treehouse students have shared here.
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

Diego Aguirre
13,211 PointsHow do I implement the Goodreads api?I would like to retrieve information like book images, reviews and ratings
I'm working on a school project in which I have users created and logging in through Parse. I simply want to retrieve information from Goodreads, unfortunately I can't seem to find examples of this using objective-c/x-code so I just don't know how I would start implementing this code.
2 Answers

Robert Bojor
Courses Plus Student 29,439 PointsHi Diego,
As far as I see on their API Docs page, you will need to basically call the endpoints from your code, preferably using NSURSLSession so the calls are made asynchronously.
To connect to the API you can either use native script (write your own connector and methods), use something already written (https://gist.github.com/robertBojor/7d4e210435b781407612 but with some changes since the Goodreads response returns XML and not JSON) or use AFNetworking and code the blocks for success / failure.
You can also try this lib, for Objective-C, that makes it easier to connect to Goodreads ( https://github.com/yjkogan/goodreads-oauth )

Diego Aguirre
13,211 PointsThanks so much Robert! I ended up going the AFNetworking route and with the help of a friend parsing the xml using a cocoa pod XML Dictionary -> https://cocoapods.org/pods/XMLDictionary