SendCodeForDeleteAccount
The sendCodeForDeleteAccount
is used to send the verification code for deleting the user account. Verify the email verification code to delete user accounts.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
openID | string | Player Network SDK unique user ID The default value is 64-bit unsigned integer string, 32-bit string is also supported. | Required |
token | string | Player Network SDK user authorization token Length: 40 bytes, see Token | Required |
region | string | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria | Required |
string | User email | Required | |
uID | string | Custom account UID | Optional |
Request Sample
dsrApi.sendCodeForDeleteAccount(
{
openID:'136...152',
token:'2d5...f74',
email:'user@email.com',
region:'156',
uID:'339...025',
}
).then((res) => {
console.log(res);
});
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success, parse related returned field information. !=0: Request failure, check msg for the detailed return message. |
msg | string | Return message |
expires_in | int64 | Time before the verification code expires Unit: second |
seq | string | Sequence number of the message in the data stream |
Response Sample
{
expires_in: 600,
msg: "success",
ret: 0,
seq: "1640314876-...-0000729568",
}