I want to access the user_name
/email_id
of the user who logs onto my website using Google+ API. So far I have implemented the Google+ API and the return value is:
User Logged In This is his auth tokenya29.AHES6ZRWhuwSAFjsK9jYQ2ZA73jw9Yy_O2zKjmzxXOI8tT6Y
How can I use this to get the username/email id?
if you are correctly logged in, it's enough to call the Google+ api at this URL:
where the
userId
has the special valueme
, to get all the information about the logged user. For more information see: https://developers.google.com/+/api/latest/people/get