Check Duplicate
Checks for duplicate player nicknames.
Call Information
NicknameExists(string nickname, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| nickname | Player nickname | PlayNANOODelegate |
| callback | Communication Result | PlayNANOODelegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
string nickname = "string";
plugin.AccountManagerV20240401.NicknameExists(nickname, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["status"].ToString());
}
else
{
if (values != null)
{
if (values["ErrorCode"].ToString() == "30007")
{
Debug.Log(values["WithdrawalKey"].ToString());
}
else if (values["ErrorCode"].ToString() == "70002")
{
Debug.Log(values["BlockKey"].ToString());
}
else
{
Debug.Log("Fail");
}
}
else
{
Debug.Log("Fail");
}
}
});
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| Status | Player nickname duplicate check result EXISTS : Duplicate NOT_EXISTS : Not duplicate | string |
| WithdrawalKey | Withdrawal account lookup key | string |
Error Information
If the player has requested withdrawal ErrorCode : 30007 ErrorMessage : WithDrawalException