There are three parts to get access_token and access protected resources, explain in oauth reference.
Read next page: http://code.google.com/intl/es-ES/apis/accounts/docs/OAuth_ref.html Explain how to create request against Google. Regards, On 20 mayo, 16:36, ramesh mantra <[email protected]> wrote: > Hi , > > When irequestfor accesstokenusing following apporach > > GoogleOAuthParameters oauthParameters = new > GoogleOAuthParameters(); > oauthParameters.setOAuthConsumerKey(CONSUMER_KEY); > oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET); > out.println("request.getQueryString() "+request.getQueryString()); > GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new > OAuthHmacSha1Signer()); > oauthHelper.getOAuthParametersFromCallback(request.getQueryString(), > oauthParameters); > > String accessToken = oauthParameters.getOAuthToken(); > String accessTokenSecret = > oauthParameters.getOAuthTokenSecret(); > > It giving error because of in the query string oauth_token_secret is > not available. > > I am using oauth_signature_method="HMAC-SHA1". > > How should i get this oauth_token_secret . > > I tried post arequestto getAccessToken as > > https://www.google.com/accounts/OAuthGetAccessToken?oauth_consumer_ke... > > it is giving as "signature_invalid". > > i given signature as consumer secret. > > How can we generate signature and oauth_token_secret. > > Please help me to solve this issue. > > -- > You received this message because you are subscribed to the Google Groups > "OAuth" group. > To post to this group, send email [email protected]. > To unsubscribe from this group, send email > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/oauth?hl=en. -- 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.
