Method: recall.retrieveTokens
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
擷取與 PGS 玩家相關聯的所有喚回符記 (透過提供的喚回工作階段 ID 編碼)。這個 API 僅適用於具備有效的 PGS 玩家設定檔的使用者。
HTTP 要求
GET https://games.googleapis.com/games/v1/recall/tokens/{sessionId}
路徑參數
參數 |
sessionId |
string
必要欄位。由伺服器產生的不透明字串,用於編碼所有必要資訊,識別特定 PGS 播放器 / Google 使用者和應用程式。
|
回應主體
對喚回度.retrieveTokens 遠端程序呼叫的回應
如果成功,回應主體會含有以下結構的資料:
欄位 |
tokens[] |
object (RecallToken )
必要欄位。與要求的 PGS 玩家主體相關聯的喚回符記
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
詳情請參閱 OAuth 2.0 總覽。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間: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)."]]