Method: recall.unlinkPersona
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
刪除用於連結 PGS 玩家主體的喚回符記 (透過喚回工作階段識別),以及以「人物角色」識別的遊戲內帳戶。或是依據符記值
HTTP 要求
POST https://games.googleapis.com/games/v1/recall:unlinkPersona
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"sessionId": string,
// Union field target can be only one of the following:
"token": string,
"persona": string
// End of list of possible types for union field target .
} |
欄位 |
sessionId |
string
必要欄位。由伺服器產生的不透明字串,用於編碼所有必要資訊,識別特定 PGS 播放器 / Google 使用者和應用程式。
|
聯集欄位 target 。要取消連結的遊戲內帳戶 ID target 只能採用下列其中一種 ID: |
token |
string
用戶端在 remember.linkPersona RPC 中提供的喚回符記值
|
persona |
string
「人物角色」的值欄位,因為用戶端在 remember.linkPersona RPC 中提供
|
回應主體
對喚回度.unlinkPersona 遠端程序呼叫 (RPC) 的回應
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"unlinked": boolean
} |
欄位 |
unlinked |
boolean
必要欄位。是否刪除要求指定的喚回符記。可以是「false」表示沒有任何喚回符記符合要求條件時。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/androidpublisher
詳情請參閱 OAuth 2.0 總覽。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Method: recall.unlinkPersona\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.UnlinkPersonaResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDelete a Recall token linking the PGS Player principal identified by the Recall session and an in-game account identified either by the 'persona' or by the token value.\n\n### HTTP request\n\n`POST https://games.googleapis.com/games/v1/recall:unlinkPersona`\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"sessionId\": string, // Union field `target` can be only one of the following: \"token\": string, \"persona\": string // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\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| Union field `target`. Identifier of the target in-game account to be unlinked `target` can be only one of the following: ||\n| `token` | `string` Value of the Recall token as it was provided by the client in recall.linkPersona RPC |\n| `persona` | `string` Value of the 'persona' field as it was provided by the client in recall.linkPersona RPC |\n\n### Response body\n\nResponse for the recall.unlinkPersona RPC\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"unlinked\": boolean } ``` |\n\n| Fields ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `unlinked` | `boolean` Required. Whether a Recall token specified by the request was deleted. Can be 'false' when there were no Recall tokens satisfied the criteria from the request. |\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)."]]