views:

193

answers:

2

I have the oauth authorization with google working correctly and am getting data from the contacts api. Now, I want to programmatically get a gmail user's first name, last name and picture. Which google api can i use to get this data?

+1  A: 

I found the answer while looking around in the contacts API forum. When you get the result-feed, just do the following in Java-

String Name = resultFeed.getAuthors().get(0).getName();

String emailId = resultFeed.getId();

Im still looking for a way to get the picture.

Pranav
A: 

Off topic: how can I pm the author to ask if they've figured out how to get the picture from google id?

anon
nope, i havnt. Not actively looking for it now but will post it here if i do find something.
Pranav
btw, you cannot pm anyone on SO.
Pranav