Goodreads Developers discussion
examples / showcase
>
Goodreads module for NodeJS (via npm)
date
newest »
newest »
Nice, thanks.How are you liking node?
I like it a lot, but I don't think express is really there yet.
I really enjoy Node and have been loving Express. It has it quirks, and definitely is no rails, but it makes developing much easier and gives me a decent amount of freedom.I run product at a startup called Bookish so I'm not exactly a developer, just coding in my spare time as a hobby. This is my first 'real' node project as I've done a few crap ones in the past. To be honest, I hadn't coded for maybe 10 years before this (not including php wordpress hacks) so it's fun (and sometimes frustrating) to work on a language that moves so quickly!
Thank you so much for coding this module. I've been trying to figure out how to make the login process with OAuth (I'm pretty new to this) and had no idea how to start.Once again, thanks!


The project has been released (v0.0.1) as a module for npm, Node's equivalent of Ruby gems.
You can install it via npm by typing: npm install goodreads
If you prefer to just poke around, you can access the github repository here: http://bit.ly/pfzh3K (only using a bitly url because I'm a data nerd)
There are some examples that run out of the box to demonstrate the current functionality. Here's what I've added so far:
1) getShelves - returns a JSON object of a list of users shelves. Takes a userID as input.
2) getShelfDetail - returns a JSON object with books on a given shelf. Takes a userID and shelf name as input.
3) requestToken - asks Goodreads for an oauthToken and oauthSecret via OAuth. First step to allow a user to 'Auth' with Goodreads on your site.
4) processCallback - handles the Callback for the second part of the OAuth process. Returns a JSON object with the user's Name, ID, and an 'OAuth Successful' variable.
Obviously the functionality is limited and everything's pretty simple so far, but I was using alot of Goodreads connectivity in my Booklist app and figured others could benefit from the work I was doing with XML parsing, etc!
Note: to use the module you need a Goodreads Developer Key/Secret which you can get here: http://www.goodreads.com/api/keys