Withdrawal Account Information Lookup
This API retrieves withdrawal information using a withdrawal key.
URL Confirmation
This API uses the service-account.playnanoo.com domain.
API Information
- URL:
https://service-account.playnanoo.com/api/v20240101/withdrawal/search - Method:
PUT - Authentication Required: No
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| withdrawal_key | string | Required | Withdrawal key |
| platform | string | Required | Platform (e.g., "aos", "ios") |
| device_id | string | Required | Device unique ID |
| device_model | string | Required | Device model name |
| device_os | string | Required | Device OS |
| device_language | string | Required | Device language (e.g., "KO", "EN") |
DeviceInfo Inheritance
The Req class for this API inherits from DeviceInfo. All properties of DeviceInfo are automatically included.
Response Data
Res Class
| Field | Type | Description |
|---|---|---|
| Status | string | Withdrawal status |
| Memo | string | Withdrawal reason memo |
| WithdrawalDate | string | Scheduled withdrawal date |
Unity C# Implementation
BaseResponse Class
Base class for all API responses.
public class BaseResponse
{
public string ErrorCode;
public string Message;
public string WithdrawalKey;
public string BlockKey;
}
Field descriptions:
ErrorCode: Error codeMessage: Error messageWithdrawalKey: Key required for recovery when the account is in withdrawal grace period (only provided for accounts in withdrawal grace period)BlockKey: Key provided when the account is blocked (only provided for blocked accounts)
Withdrawal Information Lookup Class
using System;
using System.Collections;
using UnityEngine.Networking;
public class WithDrawalSearch
{
static string path = "https://service-account.playnanoo.com/api/v20240101/withdrawal/search";
[Serializable]
public class Req : DeviceInfo
{
public string withdrawal_key;
public IEnumerator Send(
string withdrawalKey,
Action<Res> onSuccess,
Action<BaseResponse> onError)
{
if (!string.IsNullOrEmpty(withdrawalKey)) this.withdrawal_key = withdrawalKey;
yield return HttpClient.Send<Req, Res>(
UnityWebRequest.kHttpVerbPUT,
path,
requireToken: false,
body: this,
onSuccess: onSuccess,
onError: onError
);
}
}
[Serializable]
public class Res : BaseResponse
{
public string Status;
public string Memo;
public string WithdrawalDate;
}
}
Usage Example
public void SearchWithdrawalInfo(string withdrawalKey)
{
WithDrawalSearch.Req req = new WithDrawalSearch.Req();
StartCoroutine(req.Send(
withdrawalKey: withdrawalKey,
onSuccess: res =>
{
Debug.Log($"탈퇴 상태: {res.Status}");
Debug.Log($"탈퇴 사유: {res.Memo}");
Debug.Log($"탈퇴 예정일: {res.WithdrawalDate}");
// 날짜 파싱 예제
if (DateTime.TryParse(res.WithdrawalDate, out DateTime withdrawalDate))
{
TimeSpan remaining = withdrawalDate - DateTime.Now;
Debug.Log($"남은 기간: {remaining.Days}일 {remaining.Hours}시간");
}
},
onError: (error) =>
{
Debug.LogError($"탈퇴 정보 조회 실패: [{error.ErrorCode}] [{error.Message}]");
}
));
}
Checking Scheduled Withdrawal Date
You can check the date when the account will be completely deleted through the WithdrawalDate field. You can recover the account by calling the recovery API before this date.