Skip to main content

SendCodeForDownloadAccount

The sendCodeForDownloadAccount is used to send the verification code for downloading the user account. Verify the email verification code to get any user data.

Request Parameter

ParameterTypeDescriptionRemark
openIDstringPlayer Network SDK unique user ID
The default value is 64-bit unsigned integer string, 32-bit string is also supported.
Required
tokenstringPlayer Network SDK user authorization token
Length: 40 bytes, see Token
Required
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
Required
emailstringUser emailRequired
uIDstringCustom account UIDOptional

Request Sample

dsrApi.sendCodeForDownloadAccount(
{
openID:'136...152',
token:'2d5...f74',
email:'user@email.com',
region:'156',
uID:'339...025',
}
).then((res) => {
console.log(res);
});

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success, parse related returned field information.
!=0: Request failure, check msg for the detailed return message.
msgstringReturn message
expires_inint64Time before the verification code expires
Unit: second
seqstringSequence number of the message in the data stream

Response Sample

{
expires_in: 600,
msg: "success",
ret: 0,
seq: "1640314876-...-0000729568",
}