2

Is it possible, with the Google Calendar API / Zend Gdata, to get the user's google email address, after he successfully authenticated with AuthSub and I have an access token?

I have a problem with some users having multiple Gmail and Google Apps accounts, and then not remembering which one they've used to Sync with my service and having the impression that the sync doesn't work. I'd like to display them the Google Account they have first authenticated with.

Dan
  • 71
  • 1
  • 7

1 Answers1

3

Have you tried the experimental settings API? It looks like it returns the user's name and email address in the author section.

Mark S.
  • 3,849
  • 4
  • 20
  • 22
  • As of January 2016, the link to "experimental settings API" is dead and I can't find an equivalent resource. – Martin Jambon Jan 26 '16 at 00:52
  • 1
    Can't guarantee this works, but look at the summary field of the Primary calendar: `https://www.googleapis.com/calendar/v3/calendars/primary?key={YOUR_API_KEY}` – Mark S. Jan 26 '16 at 15:59