Hello Luca,

Seems like you are only missing the last step. Can you copy and paste the
content of the body you are POSTing to retrieve the Access Token (in step
4)?
Please make sure to anonymize your client_id and client_secret.

Also, is there a message associated with the 400 status code?

Best,
Alain

On Mon, Jun 13, 2011 at 11:38 AM, Luca Santaniello <
[email protected]> wrote:

> Thanks for reply.
>
> I used aouth 2.0 but I have some problem...
>
> 1) I invocate "https://accounts.google.com/o/oauth2/auth"; passing
> client_id, redirect_uri, scope (=https://www.google.com/m8/feeds/) and
> response_type (=code)
> 2) User redirected to google login page and insert credentials
> 3) Google validate data and redirect to my page passing "code" parameter
> 4) I invocate "https://accounts.google.com/o/oauth2/token"; passing code,
> client_id, client_secret, client_secret and grant_type (=authorization_code)
> but I have this error:
>
> java.io.IOException: Server returned HTTP response code: 400 for URL:
> https://accounts.google.com/o/oauth2/token
>
> Can you help me please?
>
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html
>



-- 
Alain Vongsouvanh

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html

Reply via email to