Goodreads Developers discussion
questions
>
Books from shelf return forbidden
date
newest »


Yes, I'm using this one http://code.google.com/p/goodreads-oa...
I get back an oauth_token and authorize=1, so it seems like that part is working ... or is there anything else I can check for that?

Did some more searching and I figured out that I have to put the url through oauth to ask for the books of a shelf.
I'm using this now:
simplexml_load_string($obj->makeRequest('http://www.goodreads.com/review/list?...' . $userid . '&sort=author' . '&key=' . CONSUMER_KEY .'&order=a&per_page=infinite', true, null));
and it works!
Thanks a lot for pointing me in the right direction!!
Based on which shelf the user selects, the books from this shelf are shown.
The problem is, whenever I change my "Who can view my profile" settings to anything but "anyone", the books from the selected shelf xml file returns "Forbidden".
Getting the shelves isn't a problem when I have that setting on "goodread members" or "just my friends", but requesting the books on a particular shelf returns forbidden.
If I have it set to "anyone" the application runs without any problems.
This is how I request the book information from the shelf:
$url = "http://www.goodreads.com/review/list?..." . $userid . "&shelf=" . $shelf . "&sort=author" . "&key=" . $key . "&order=a&per_page=infinite";
Could anyone help me figure this out?
thnx!
Heidi