恢复已注销账号
恢复因注销请求而处于待删除状态的账号。 超过注销宽限期的账号无法恢复。
调用信息
AccountManager.WithDrawalRestore(string withdrawalKey, PlayNANOODelegate callback) {}
调用详细信息
| 参数 | 说明 | 类型 |
|---|---|---|
| withdrawalKey | 认证服务返回的账号注销查询密钥 | string |
| callback | 通信结果 | PlayNANOODelegate |
源代码
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
string withdrawalKey = "string";
plugin.AccountManagerV20240401.WithDrawalRestore(withdrawalKey, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Status"].ToString());
}
else
{
Debug.Log("Fail");
}
});
}
}
通信结果
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
通信结果详细信息
| 数据键 | 说明 | 类型 |
|---|---|---|
| Status | 处理结果 | string |