Goodreads Developers discussion
trouble with shelves.create
date
newest »


Sorry, this needs to be clarified on the API docs. You'll want to send a POST to /shelf.xml, not a GET. (Any time you're writing data when using the API, you'll want to use POST.)
I'm using the oauth-php class from http://code.google.com/p/oauth-php/
and my call looks like:
echo "adding a shelf\n";
$request_uri = 'http://www.goodreads.com/shelf.xml';
$req = new OAuthRequester($request_uri, 'GET', array('name'=>'test_shelf'));
$result = $req->doRequest($user_id);
var_dump($result);
I'm pretty sure my authentication is going through correctly as my calls to auth_user return a valid response.
For comparison that call looks like:
echo "getting user info\n";
$request_uri = 'http://www.goodreads.com/api/auth_use...
$req = new OAuthRequester($request_uri, 'GET');
$result = $req->doRequest($user_id);
Any help would be appreciated,
Thanks
-Ben