Skip to main content

ReportEventLogout

Reports the user's in-game logout events to SmartLink, which makes it possible for in-game behavior analysis.

note

Permissions are required before this API can be called, reach out to the SmartLink representative for more information. The error code 22010 will be returned if the API is called while permissions have not been obtained.

POST /api/v3/report/logout

Request parameters

For more information on the query parameters, see Query parameters.

AttributeData typeRemarksDescription
login_out_timeintrequiredLogout time (unix timestamp)
openidstringrequiredUnique user ID (up to 20 numeric characters)
locationstringrequiredThree-digit country code, see number_code from Country or region information
languagestringrequiredLanguage code, see language_code from Language information
levelintrequiredCharacter level (greater than 0)
online_timeintrequiredOnline time (in seconds)

Request sample

curl --request POST "https://openapi.smartlink.intlgame.com/api/v3/report/logout?gameid=${GAME_ID}&seq=${YOUR_RANDOM_STRING}&sig=${SIGNATURE}&ts=${TS}" \
--header 'Content-Type: application/json' \
--data-raw '{
"login_out_time": 1694917726,
"openid": "5450588341569",
"location": "004",
"language": "ar",
"level":6,
"online_time":300
}'

Response parameters

AttributeData typeDescription
codeintReturn code
msgstringReturn message

Response sample

{
"code": 0,
"msg": "Success",
"seq": "{YOUR_RANDOM_STRING}"
}