Goodreads Developers discussion
examples / showcase
>
Android example?
date
newest »


we are using patched versions (1.2.1.2) of the oauth-signpost-core and oauth-signpost-commonshttp4 libraries, available from here:
http://code.google.com/p/oauth-signpo...
http://code.google.com/p/oauth-signpo...
The version of the org.apache.httpcomponents library (core and client) we use is 4.0.1.
You're probably already using these if the square brackets are being encoded correctly, but I thought to mention it anyway, because the official 1.2.1.1 release of OAuth-Signpost didn't work for us.
Hopefully this helps.

Thanks for the quick reply...if you don't mind, I still have a couple of questions.
1) Do you set the 'percentEncode' parameter to true? The library I am currently using (Scribe) did the encoding, and I tried a patched version that did not encode the keys, but I got the same errors.
2) From what I can tell, you do not use oauth_verifier in the callback...is that right? If so, when building the access key, do you just use a blank verifier?
Thanks again!

I'm now using signpost....and getting 'not found' again. Here is a snippet of the code (after getting access token):
HttpPost post = new HttpPost("http://www.goodreads.com/user_shelves...
HttpParams params = new BasicHttpParams() ;
params.setParameter("user_shelf[name]", "Test");
post.setParams(params);
consumer.sign(post);
HttpClient httpClient = new DefaultHttpClient();
HttpResponse response = httpClient.execute(post);
...and the response is 'Not Found'. I have also tried without the %5D/D in the url.
Any help would be greatly appreciated!



HttpPut post = new HttpPut("http://www.goodreads.com/user_shelves...
HttpParams params = new BasicHttpParams() ;
params.setParameter("user_shelf[name]", "Test");
post.setParams(params);
consumer.sign(post);
HttpClient httpClient = new DefaultHttpClient();
HttpResponse response = httpClient.execute(post);
Skip to end for resolution. YAGRAC is a good source of sample code]]
Hi,
I have been trying to get oauth updates to work from Android using the 'Scribe' oauth library, but without much luck.
I *can* get the oauth user ID, which I assume means that I am registering OK, but when I try to update reviews using, eg.
http://www.goodreads.com/review/show/...
I just get the review back, no changes are made.
When I try updating a shelf using:
http://www.goodreads.com/user_shelves...
(including permutation with and without '[]' and %5B/D), I get either 'not found' or 'not authorized'.
I'm guessing it is something to do with brackets, but from what I can tell the '[' and ']' in parameter names *are* being encoded correctly.
Any help, suggestions, or examples would be greatly appreciated!