Method: recall.retrieveTokens
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
检索与提供的 Recall 会话 ID 中编码的 PGS 玩家关联的所有 Recall 令牌。此 API 仅适用于拥有有效 PGS 玩家个人资料的用户。
HTTP 请求
GET https://games.googleapis.com/games/v1/recall/tokens/{sessionId}
路径参数
参数 |
sessionId |
string
必需。服务器生成的不透明字符串,用于编码识别 PGS 玩家 / Google 用户和应用的所有必要信息。
|
响应正文
recall.retrieveTokens RPC 的响应
如果成功,响应正文将包含结构如下的数据:
字段 |
tokens[] |
object (RecallToken )
必需。与请求的 PGS 玩家主账号关联的 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.retrieveTokens\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RetrievePlayerTokensResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieve all Recall tokens associated with the PGS Player encoded in the provided recall session id. The API is only available for users that have active PGS Player profile.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/recall/tokens/{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### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for the recall.retrieveTokens RPC\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------|\n| ``` { \"tokens\": [ { object (/games/services/web/api/rest/v1/RecallToken) } ] } ``` |\n\n| Fields ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `tokens[]` | `object (`[RecallToken](/games/services/web/api/rest/v1/RecallToken)`)` Required. Recall tokens associated with the requested PGS Player principal |\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)."]]