Which Google api to use for getting user's first name, last name, picture, etc?

Viewed 48001

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?

7 Answers

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();

I am still looking for a way to get the user profile picture.

Related