Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

no shelf api functions? #8

Open
Oliver2213 opened this issue Jul 24, 2015 · 2 comments
Open

no shelf api functions? #8

Oliver2213 opened this issue Jul 24, 2015 · 2 comments

Comments

@Oliver2213
Copy link

I could be mistaken, but I don't see any way to manipulate the user's shelves, (etc: adding books to, removing books from, listing, etc).
I think you can use the request function to make a raw request to Goodreads and this is what I'll most likely be using for these functions, but could we get the shelf functions? :)

@Oliver2213
Copy link
Author

Oh... I just took another look.
This doesn't exist in the wrapper currently, and the output from xmltodict on just the list is messy.

@Oliver2213
Copy link
Author

Oh nevermind.

If you do something like.
res = gc.session.get('shelf/list.xml', params={'page':'1', 'user_id':'some id here'})
for item in res['shelves']['user_shelf'][0]
print item['name']

That seems to work

AdeebNqo added a commit to AdeebNqo/goodreads that referenced this issue Feb 20, 2016
There is an issue labeled "no shelf api functions? sefakilic#8"
in the original package. It seemed like something I needed
but I wasn't interested in figuring out that mess. I have
added a simple method to retrive books in shelf. This method
does not use most of the parameters listed in https://www.goodreads.com/api/index#reviews.list
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants