玩家为何:获得缺少所需范围的API响应?

时间:2018-11-02 03:44:44

标签: google-api google-play-games google-oauth2

当我尝试使用此api(玩家:获取)时:

https://developers.google.com/games/services/web/api/players/get?apix_params=%7B%22playerId%22%3A%22me%22%7D

,并将playerId设置为“ me” 我得到了回应:

请求缺少必需的范围:

https://www.googleapis.com/auth/plus.login

https://www.googleapis.com/auth/games

我还尝试使用Google Oauth2.0实施 和请求范围: https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.login

然后我请求玩家:获取API时收到相同的错误消息!

我已经通过以下方式检查了访问令牌:

https://www.googleapis.com/oauth2/v1/tokeninfo

scope属性就像:

"scope": "https://www.googleapis.com/auth/games https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.profile.agerange.read https://www.googleapis.com/auth/plus.profile.language.read https://www.googleapis.com/auth/userinfo.profile",

有什么问题吗?非常感谢。

missing required scope(s)

0 个答案:

没有答案
相关问题