탈퇴 신청
플레이나누에 등록 된 계정의 탈퇴를 요청합니다.
호출 정보
AccountManager.WithDrawal(int period, PlayNANOODelegate callback) {}
AccountManager.WithDrawal(string accessToken, int period, PlayNANOODelegate callback) {}
AccountManager.WithDrawal(string accessToken, int period, string memo, PlayNANOODelegate callback) {}
호출 상세 정보
파라미터 | 설명 | 타입 |
---|---|---|
accessToken | 플레이나누 Access Token | string |
period | 계정 탈퇴 유예 기간 | integer |
memo | 탈퇴 메시지 | string |
callback | 통신 결과 | PlayNANOODelegate |
소스 코드
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
int period = 15;
plugin.AccountManagerV20240401.WithDrawal(period, (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 |
에러 정보
토큰이 만료 되었을 경우
ErrorCode : 30002
ErrorMessage : ExpiredTokenException