Goodreads Developers discussion

92 views
questions > Can't add book to shelf via add_to_shelf.xml

Comments Showing 1-2 of 2 (2 new)    post a comment »
dateUp arrow    newest »

message 1: by Ryan (last edited Oct 29, 2016 09:25AM) (new)

Ryan | 1 comments Firstly it is worth pointing out that I have no problem with any of the other API calls.
I can get and retrieve book ID's, user ID's, and add books to books owned among other queries.

What I am having trouble with is adding a book to a shelf.
I am getting the error 'Book with that book_id not found'

This is the same if I use the bookID that can be found in the URL on the book page.
Which is identical to the one that I am collecting from the get book ID API.

Here is my query using POST:
https://www.goodreads.com/shelf/
add_to_shelf.xml?name=read?book_id=7696693

I must be doing something wrong, but I cant work out what.
Any assistance would be great.


message 2: by Feiyu (new)

Feiyu Yin (sanchishui) | 11 comments Hi Ryan,

You need to use OAuth for this API call instead of adding parameters in the URL.

API description:
https://www.goodreads.com/api/index#s...

How to use OAuth:
https://www.goodreads.com/api/documen...


back to top