跳转到内容

获取分辨率列表

Request

返回某个 User-Agent 或操作系统下可用的屏幕分辨率。

  • 副作用:无。只读。可带退避安全重试。
  • 返回内容:由指纹基础数据服务提供,因此该列表会随那份数据的更新而变化。
Security
OpenApiBearer
Bodyapplication/jsonrequired
uastring

用于匹配分辨率的 User-Agent。

Example:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
osinteger(OperatingSystem)

操作系统:

  • 1 — Windows
  • 2 — macOS
  • 3 — Android
  • 4 — iOS
  • 5 — Linux
Enum:12345
Example:1
curl -i -X POST \
  https://api.morelogin.com/env/base/resolution/list \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "os": 1
  }'

Responses

成功。无匹配结果时返回空数组。

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
dataArray of objects(Resolution)required
Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d", "data": [ { … } ] }