且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Google Play游戏服务存储中获取玩家详细信息

更新时间:2023-02-02 19:31:08

从此处:您需要发送一个具有playerId为

You need to send an HTTP GET request with playerId as

GET https://www.googleapis.com/games/v1/players/playerId

此请求需要具有以下范围的授权

This request requires authorization with the following scope

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

如果成功,此方法将在响应正文中返回Players资源.

If successful, this method returns a Players resource in the response body.

这是Player资源的JSON模板:

Here's the JSON template for a Player resource:

https://developers.google.com/games/services/web/api/players#resource