GameExit() API

运营商向 RGS API 发出 ExitGame() API 请求以退出游戏。 RGS API 删除先前在DG 后端中创建的玩家会话 ID。

GameExit() 请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL>/games/game-exit/
标头"Content-Type": "application/json"
POST 参数json 对象 e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
}
参数类型描述
api_key字符串分配给每个前端的API Key
username字符串玩家的用户名

GameExit() 响应 + 示例

响应将采用 JSON 格式。 类型:字典。

{ "result": {"status": "success" } }
响应对象中的对象/Key类型描述
resultJSON 对象Key 结果包含 JSON 对象作为值
status字符串响应结果