Request Withdrawal
Requests withdrawal of an account registered with PlayNANOO.
Call Information
AccountManager.WithDrawal(int period, PlayNANOODelegate callback) {}
AccountManager.WithDrawal(string accessToken, int period, PlayNANOODelegate callback) {}
AccountManager.WithDrawal(string accessToken, int period, string memo, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
accessToken | PlayNANOO Access Token | string |
period | Account withdrawal grace period | integer |
memo | Withdrawal message | string |
callback | Communication result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
int period = 15;
plugin.AccountManager.WithDrawal(period, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Status"].ToString());
}
else
{
Debug.Log("Fail");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |
Error Information
Token has expired
ErrorCode : 30002
ErrorMessage : ExpiredTokenException