Quitting the Game Event
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
event_type |
Yes |
String |
Specifies the event type. The enumerated value is app. |
|
event |
Yes |
Object |
Specifies the event information. For details, see Table 1. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
status |
Yes |
Integer |
1: Quit the game. |
|
phone_id |
Yes |
String |
Specifies the unique ID of a server. This parameter is required for server tasks. |
|
app_id |
Yes |
String |
Specifies the unique ID of an application. |
|
time |
Yes |
String |
Specifies the time to quit the game. The value is a UTC time. |
|
run_time |
Yes |
Integer |
Specifies the duration from the time when a user accesses the game to the time when the user quits the game, in seconds. |
|
error_msg |
No |
String |
Specifies the task error code description. |
|
session_id |
Yes |
String |
Specifies the ID of the session for quitting the game. |
|
ticket |
No |
String |
Specifies the ticket used for authentication. |
Example Request
{
"event_type": "app",
"event": {
"phone_id": "a7f3a1c5258347d6b6f1def79e11f2bc",
"status": 1,
"session_id": "856f5555806443e98b7ed04c5a9d6a9a",
"ticket": "5558064856f5555806443e98b7ed04c5a9d6a9ab7ed04c5a9d6a806443e98",
"time": "2019-11-14T19:38:49Z",
"run_time": 41000,
"app_id": "856f5555806443e98b7ed04c5a9d6a9a",
"error_msg": null
}
}
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
request_id |
String |
Specifies the request ID, which is unique. |
Example Response
{
"request_id": "6837531fd3f54550927b930180a706bf"
}
Last Article: Entering the Game Event
Next Article: Heartbeat Reporting
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.