Method: recall.unlinkPersona
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
删除用于关联由 Recall 会话标识的 PGS 玩家正文与由“角色”或令牌值标识的游戏内账号的 Recall 令牌。
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 。要解除关联的目标游戏内账号的标识符 target 只能是以下其中一项: |
token |
string
Recall 令牌的值,由客户端在 recall.linkPersona RPC 中提供
|
persona |
string
“persona”字段的值,由客户端在 recall.linkPersona RPC 中提供
|
响应正文
recall.unlinkPersona RPC 的响应
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"unlinked": boolean
} |
字段 |
unlinked |
boolean
必需。是否删除了请求中指定的 Recall 令牌。如果没有任何 Recall 令牌符合请求中的条件,则可以为“false”。
|
授权范围
需要以下 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.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)."]]