Method: recall.lastTokenFromAllDeveloperGames
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
从与提供的 Recall 会话 ID 中编码的 PGS 玩家关联的所有开发者游戏中检索上一个 Recall 令牌。此 API 仅适用于拥有有效 PGS 玩家个人资料的用户。
HTTP 请求
GET https://games.googleapis.com/games/v1/recall/developerGamesLastPlayerToken/{sessionId}
路径参数
参数 |
sessionId |
string
必需。服务器生成的不透明字符串,用于编码识别 PGS 玩家 / Google 用户和应用的所有必要信息。
|
响应正文
针对 recall.lastTokenFromAllDeveloperGames RPC 返回的 Recall 令牌数据
如果成功,响应正文将包含结构如下的数据:
字段 |
gamePlayerToken |
object (GamePlayerToken )
与请求的 PGS 玩家正文相关联的 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.lastTokenFromAllDeveloperGames\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.RetrieveDeveloperGamesLastPlayerTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieve the last Recall token from all developer games that is 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/developerGamesLastPlayerToken/{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\nRecall token data returned from for the recall.lastTokenFromAllDeveloperGames RPC\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------|\n| ``` { \"gamePlayerToken\": { object (/games/services/web/api/rest/v1/GamePlayerToken) } } ``` |\n\n| Fields ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `gamePlayerToken` | `object (`[GamePlayerToken](/games/services/web/api/rest/v1/GamePlayerToken)`)` The recall token associated with the requested PGS Player principal. It can be unset if there is no recall token associated with the requested 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)."]]