---
title: "Record Recent Play"
method: POST
path: "/game/recordRecentPlay"
tags: ["Game"]
---

# Record Recent Play

`POST /game/recordRecentPlay`

Record the current user's recent game play by game_id.

响应契约：GameRecentPlayResult。

需要登录。 需要请求签名。 响应会经过加密中间件。

认证要求：需要登录。

签名要求：需要请求签名。

响应处理：默认会经过响应加密。

## Headers

- `lang` string — 语言代码，例如 en、zh、es。
- `device_number` string — 设备唯一标识。
- `app_version` string — 客户端版本号。
- `timestamp` integer — 请求时间戳（秒）。
- `signature` string — 接口签名。

## Request body

- object
  - `game_id` integer, required — Game ID.

## Response `200`

请求成功

- object
  - `code` integer, required
  - `msg` string, required
  - `data` GameRecentPlayResult, required
    - `matched` 0 | 1
    - `game` union
      - object
        - `game_id` integer
        - `frontend_name` string
        - `intro` string
        - `icon_url` string
        - `game_url` string
        - `score` number, float
      - object[] — 未匹配到游戏时返回空数组。
  - `info` object, required
  - `is_encrypt` 0 | 1, required
  - `request_id` string, required
  - `response_time` integer, required
  - `original_data` object

## Other responses

- `400` — 请求失败

---

[API](https://skmtc.dev/flextv/apis/flextv-api.md) · [All operations](https://skmtc.dev/flextv/apis/flextv-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flextv/flextv-api/revisions/84f55eb57fd0/schema)
