sosedoff / goodreads

Goodreads API wrapper

Home Page:https://www.goodreads.com/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browsing friend trees

ivanoblomov opened this issue · comments

Are you guys planning on adding friends to your ruby wrapper? Goodreads implements it in HTTP with...

http://www.goodreads.com/api#user.friends

I looked through your specs and found no obvious way to ask for a list of friends. If you're not planning on implementing friends, add a spec for how the API call should work and I'll see if I can get my hands dirty.

Cheers!

Should be pretty easy to extend, check the https://github.com/sosedoff/goodreads/blob/master/lib/goodreads/client/users.rb file.

You can just add a new method friends, or even move all friend-related functionality to a separate module. Id prefer second.

I've got most of the code done, but can't get OAuth to work right programmatically.

For example, if I get "http://www.goodreads.com/oauth/authorize?oauth_token=XXXX" from RestClient or HTTParty, I get 401 unauthorized errors.

But if I cut and paste that URL into a browser and then make the requests, everything works fine—but that kind of defeats the whole purpose of using the gem!

Do you guys have a good workaround?

On Feb 23, 2013, at 12:15 PM, Dan Sosedoff notifications@github.com wrote:

Should be pretty easy to extend, check the https://github.com/sosedoff/goodreads/blob/master/lib/goodreads/client/users.rb file.

You can just add a new method friends, or even move all friend-related functionality to a separate module. Id prefer second.


Reply to this email directly or view it on GitHub.

Check out NovelsOnLocation.com: A Google-Maps/Amazon mash-up for finding books that take place where you're traveling. Browse or search the map and make your next destination come alive!

Scoured the Web and looks like there's no way around it: you have to grant OAuth access with a browser. Must be a security thang.