Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
838 views
in Technique[技术] by (71.8m points)

oauth 2.0 - Gender via Google People API

Using Google People API, I'm having problems getting information about gender via https://people.googleapis.com/v1/people/me and correct access_token (it is correct because it influences whether information like nickname and locale appear).

I am asking for scope "profile email openid".

I can get a gender, but only for users who made that information public, but not from those who do have it filled, but set as private, which kind of defeats the purpose of asking for private profile information.

Is there a way to get private gender via any combination of Google API and scope?

Thank you

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Sorry, there are no scopes that return private gender information.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...