Method: recall.gamesPlayerTokens
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
从所有请求的游戏中检索与提供的 Recall 会话 ID 中编码的 PGS 玩家关联的 Recall 令牌。此 API 仅适用于拥有有效 PGS 玩家个人资料的用户。
HTTP 请求
GET https://games.googleapis.com/games/v1/recall/gamesPlayerTokens/{sessionId}
路径参数
参数 |
sessionId |
string
必需。服务器生成的不透明字符串,用于编码识别 PGS 玩家 / Google 用户和应用的所有必要信息。
|
查询参数
参数 |
applicationIds[] |
string
必需。Google Play 管理中心中的应用 ID,用于为游戏返回限定范围的 ID。
|
响应正文
从 recall.gamesPlayerTokens RPC 返回的 Recall 令牌数据列表
如果成功,响应正文将包含结构如下的数据:
字段 |
gamePlayerTokens[] |
object (GamePlayerToken )
请求的应用以及播放器的 Recall 令牌。如果玩家没有某个应用的 Recall 令牌,则该应用不会包含在响应中。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
如需了解详情,请参阅 OAuth 2.0 概览。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Method: recall.gamesPlayerTokens\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RetrieveGamesPlayerTokensResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieve the Recall tokens from all requested games that is associated with the PGS Player encoded in the provided recall session id. The API is only available for users that have an active PGS Player profile.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/recall/gamesPlayerTokens/{sessionId}`\n\n### Path parameters\n\n| Parameters ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sessionId` | `string` Required. Opaque server-generated string that encodes all the necessary information to identify the PGS player / Google user and application. |\n\n### Query parameters\n\n| Parameters ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------|\n| `applicationIds[]` | `string` Required. The application IDs from the Google Play developer console for the games to return scoped ids for. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of recall token data returned from the recall.gamesPlayerTokens RPC\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------|\n| ``` { \"gamePlayerTokens\": [ { object (/games/services/web/api/rest/v1/GamePlayerToken) } ] } ``` |\n\n| Fields ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `gamePlayerTokens[]` | `object (`[GamePlayerToken](/games/services/web/api/rest/v1/GamePlayerToken)`)` The requested applications along with the recall tokens for the player. If the player does not have recall tokens for an application, that application is not included in the response. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]