0

I am working with google OAuth API to get user info using this url

With the scopes

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

I got the following response

 { "id": "123456788", "name": "Joe Shmoe", 
   "given_name": "Joe", "family_name": "Shmoe", 
   "link": "https://plus.google.com/1234567788", 
   "picture": "https://IMAGE_URL/photo.jpg", 
   "gender": "male", "birthday": "0000-03-10", "locale": "en-GB"}

I am looking for email but it is not available in response.

thepoosh
  • 12,497
  • 15
  • 73
  • 132

1 Answers1

0

It's because google proifle API answer with extended information only to those circles which you allow to see it in you personal info visibility settings.

For instance, if you allow to your friends circle to see your mobile and private email -- they can see it (but only peoples and apps added into those circle).

By default all apps are guests (public).

brutto
  • 74
  • 1
  • 6