You don't need to use the Contacts API for this - you can just use the UserInfo service (which is better because then you are just asking the user for permission to access the information you need). However, if you use that, it doesn't matter whether you use gdata or the newer API, there is no Java API for the UserInfo service. You need to parse the info yourself, using the documentation at
Fortunately that's quite easy - just make a HTTP request and use Jackson to parse the returned JSON.
On Friday, 30 March 2012 09:41:39 UTC+1, alx wrote:
Does anybody knows how to get user info(first name, last name, full name, email) from an google account using gData?
I must mention that I am able to perform the auth(I get the auth token from an android device - sent it to my server - auth using gData), but I don't know what Classes/calls to perform further in order to get the user info of the account.
Here is what I did:
ContactsService contactsService = new ContactsService("...");