I want to get yahoo contact. So I obtain request_token and user
login.
I want to get yahoo contact. So I obtain request_token and user login.
But I fail to get access token.
How to obtain access_token using OAuthClient.getAccessToken?
The following sources were the original source is operating normally.
>From the moment the results of which have suddenly come
parameter_absent will fail.
Return value : parameter_absent
Java Code :
public String obtainAccessToken() throws Exception {
try {
oAuthAccessor.setProperty("oauth_verifier",
params.getString
("oauth_verifier"));
OAuthMessage oAuthMessage = oAuthClient.getAccessToken
(oAuthAccessor, null, OAuth.newList(OAuth.OAUTH_VERIFIER,
params.getString("oauth_verifier")));
return oAuthMessage.getParameter("xoauth_yahoo_guid");
} catch (OAuthProblemException problem) {
log.error("obtainAccessToken OAuthProblemException
error");
problem.printStackTrace();
log.error(problem);
log.error(problem.getParameters().get(HttpMessage.RESPONSE));
throw new
Exception("export.externemail.cannot.download");
} catch (Exception e) {
log.error("obtainAccessToken Exception error");
e.printStackTrace();
log.error(e);
throw new
Exception("export.externemail.cannot.download");
}
}
Please help me.
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.