Hello Luca,
The Contacts API doesn't let you get the current user's profile information.
It let's you get the current user's contacts information.
What you have to do is call the API as described in the various developer's
guides:
http://code.google.com/apis/contacts/docs/3.0/developers_guide_java.html
To authorize your request, specify the OAuth 2 header in your service
object:
myService.setHeader("Authorization", "Oauth <OAUTH_TOKEN>");
Best,
Alain
On Wed, Jun 15, 2011 at 10:04 AM, Luca Santaniello <
[email protected]> wrote:
> I solve it! The problem is different redirect Url, sorry!
>
> Now I have my access_token, token_type (=Bearer), expires_in (3600),
> refresh_token. How can I get current user information as firstname,
> lastname, email, etc.?
>
> Thanks for all
>
> --
> 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