ReportEventRegister
Reports the user's account creation event 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/register
Request parameters
For more information on the query parameters, see Query parameters.
Attribute | Data type | Remarks | Description |
---|---|---|---|
reg_time | int | required | Account creation time (unix timestamp) |
openid | string | required | Unique user ID (up to 20 numeric characters) |
location | string | required | Three-digit country code, see number_code from Country or region information |
language | string | required | Language code, see language_code from Language information |
Request sample
curl --request POST "https://openapi.smartlink.intlgame.com/api/v3/report/register?gameid=${GAME_ID}&seq=${YOUR_RANDOM_STRING}&sig=${SIGNATURE}&ts=${TS}" \
--header 'Content-Type: application/json' \
--data-raw '{
"reg_time": 1694917726,
"openid": "5450588341569",
"location": "004",
"language": "ar"
}'
Response parameters
Attribute | Data type | Description |
---|---|---|
code | int | Return code |
msg | string | Return message |
Response sample
{
"code": 0,
"msg": "Success",
"seq": "{YOUR_RANDOM_STRING}"
}