3
votes

I'm using OAuth to get a user to grant me access to their Gmail IMAP account. I can successfully get an access token, and need to know what endpoint I can access to get the authenticated user's e-mail address.

2
if you found any answer , please share it with us.i am having the same question. thanks - Asghar

2 Answers

4
votes

And you can test this feed using Google's OAuth Playground, as I just did.

In step one, paste the scope:

https://www.googleapis.com/auth/userinfo#email

And in step six, paste the feed URI:

https://www.googleapis.com/userinfo/email

This should help in adapting the feed for use in your own application.

1
votes