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 trialManu Febie
3,027 PointsGoodreads API with django
I am working on a social media web application as a college project. I want to use goodreads API for this but I am new to using API's, and don't really know where to start using them. I did some searching on google and if I am not mistaken I think I have to do requests with Django's RESt Framework. But I don't know for sure.
If someone could help me point in to right direction, that would be much appreciated.
1 Answer
Steven Parker
231,248 PointsYou have many choices for connecting to an API.
Anything that can make HTTP requests and receive responses can be used to consume a web API like Goodreads. You can even test the API responses with your browser. For example, if you wanted to test an API inquiry on Goodreads for the author "Steven Parker", you might enter this URL into your browser:
https://www.goodreads.com/author/show.xml?key=UseYourRealAPIKeyHere&id=5759410
Since this particular API returns results in XML format, a library including XML conversion and/or parsing capabilities would be very useful.
I'm not personally familiar with Django, but I've written code that uses API's in both C# and JavaScript. And Gooreads provides documentation that includes examples written in Ruby.
Manu Febie
3,027 PointsManu Febie
3,027 PointsHmm okay,, I guess I'll just need to take the time to read the documentation carefully. Thanks for answering :)