Above error comes when integrated to yahoo
provider define below
code
provider = new CommonsHttpOAuthProvider(
"https://api.login.yahoo.com/oauth/v2/get_request_token",
"https://api.login.yahoo.com/oauth/v2/get_token",
"https://api.login.yahoo.com/oauth/v2/request_auth");
Consumer and Oauth_Verifier
consumer = new CommonsHttpOAuthConsumer(
"ppp",
"lll");
consumer.setMessageSigner(new HmacSha1MessageSigner());
String oauth_verifier = uri
.getQueryParameter(OAuth.OAUTH_VERIFIER);
Error shown when try to access token from yahoo api :-
oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: null
when run below code then exception come into above :-
provider.retrieveAccessToken(consumer, oauth_verifier);
BIG EDIT
I highly recommend not using Signpost unless you have a plan on how to handle the token refresh. Signpost doesn't have methods to make this happen. I switched to Scribe which is much easier to use. Unfortunately It too doesn't have methods to help with Token Refresh, but I was able to write a helper method fairly easily.
I now have the Yahoo API working 100% on Android. If you're not able to figure it out with Signpost and will switch to Scribe I'll post my code.
This is working for me from start to finish. I'm also able to reuse a key. Tricky stuff if you do 1 thing out of sequence it breaks. This is a rough version by the way which I intend to clean up. Still have to figure out renewing the token after 60 minutes.
Android Manifest
UpdaterActivity.java