The above example was extremely useful.
A note on using this library with non-standard implementations of oAuth 1.0. I used the Goodreads oAuth API , and this seems to be what the oAuth Bible calls the โunsuccessful version of OAuth 1.0a 3-Legged,โ which means that it does not send the verifier code back after redirecting the authorized user back to your return URL. In this case, you need to delete all lines related to VERIFIER_CODE above and add:
signer.tokenSharedSecret = temporaryTokenResponse.tokenSecret;
before the line:
OAuthCredentialsResponse accessTokenResponse = getAccessToken.execute();
Spent me sorting it out, so hopefully someone else helps.
Dave cahill
source share