直达内容

PIN 错误记录

GET /logs

查询用户的 PIN 的错误记录,开发者可以根据这个来提示用户 24 小时内的 PIN 的错误次数。

API 端点 URL

 https://api.mixin.one/logs?limit=:limit&offset=:offset&category=:category

授权和其他选项

授权
Authorized
限制No limitation

参数

limitPagination limit, maximamlly 100.
offsetPagination start time, e.g. `2020-12-12T12:12:12.999999999Z`
categoryLog type, please set to `PIN_INCORRECT`

请求示例

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/logs?category=PIN_INCORRECT&limit=1
Response
{
"data": {
"log_id": "06aed1e3-bd77-4a59-991a-5bb5ae6fbb09",
"ip_address": "124.64.120.192",
"created_at": "2018-05-03T06:03:56.867971412Z"
}
}