Skip to main content

Registration and Management

Registers and changes player nickname.

Call Information

AccountNickanmePut(string nickname, bool isCheckExists, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
nicknamePlayer's nicknamestring
isCheckExistsCheck for nickname duplication
If set to False duplicate nicknames can be registered.
boolean
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Start()
{
plugin = Plugin.GetInstance();

string nickname = "string";
bool isCheckExists = true;
plugin.AccountNickanmePut(nickname, isCheckExists, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["nickname"].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");
}
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Nickname" : "String"
}

Communication Result Details

Data KeyDescriptionType
NicknamePlayer's nicknamestring
WithdrawalKeyAccount withdrawal query keystring

Error Information

Player information exists
ErrorCode : 10008
ErrorMessage : ExistsValueException

No player information exists
ErrorCode : 30000
ErrorMessage : NotFoundAccountException

Player has requested withdrawal
ErrorCode : 30007
ErrorMessage : WithDrawalException