Sunday, 15 March 2015

android - Google API OAuth User info -



android - Google API OAuth User info -

i working google oauth api user info using this url

with scopes

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

i got next 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 looking email not available in response.

it's because google proifle api reply extended info circles allow see in personal info visibility settings.

for instance, if allow friends circle see mobile , private email -- can see (but peoples , apps added circle).

by default apps guests (public).

android oauth-2.0

No comments:

Post a Comment