0

I was reviewing this question, but for this I need to know the userid

I need to bring the avatar of users who have sent me an email, but they have only the name and email, nothing more.

For example:

GTLGmailMessagePartHeader 0x7fbb1e1560d0: {name:"From" value:"nameUser <emailuser@mail.com>"}

I came up with the idea of bringing the user information from email, but does not return the id.

getProfile

{
  "emailAddress": string,
  "messagesTotal": integer,
  "threadsTotal": integer,
  "historyId": unsigned long
}
Community
  • 1
  • 1
jose920405
  • 7,982
  • 6
  • 45
  • 71

2 Answers2

0

Check out obtaining user profile information in the Google Identity docs. It lists the main methods for getting profile information about the currently authenticated Google user depending on the method of authentication your application is using.

abraham
  • 46,583
  • 10
  • 100
  • 152
-1

With this option you don't need has apikey.

http://picasaweb.google.com/data/entry/api/user/youridoryouremail?alt=json

jose920405
  • 7,982
  • 6
  • 45
  • 71