Skip to main content

VerifyCodeForDownloadUrl

The verifyCodeForDownloadUrl is used to verify the verification code for getting the download URL.

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
codestringVerification codeRequired
createdAtstringThe latest request creation timestamp for queryDownloadStatusRequired
userNamestringUnique username used for loginOptional
uIDstringCustom account UIDOptional
platIDstringGame platform IDOptional
areaIDstringGame area IDOptional
zoneIDstringGame zone IDOptional

Request Sample

dsrApi.verifyCodeForDownloadUrl(
{
openID:'136...152',
token:'2d5...f74',
region:'156',
userName:'',
code:'xxx'
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
seqstringSequence number of the message in the data stream

Response Sample

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