跳转到内容

获取浏览器内核版本列表

Request

返回已发布的浏览器内核与 User-Agent 主版本号。

  • 副作用:无。只读。可带退避安全重试。
  • 返回内容:Open API 面只返回已发布的内核,而 Local API 面会按运行中的客户端版本过滤,因此两个面返回的集合可能不同。该列表会随新内核发布而变化。
  • 说明:上游失败时返回空列表而不是报错,所以空结果应视为不确定,而非「没有内核」。
  • Open API:只返回已发布的内核,与任何客户端无关。
Security
OpenApiBearer
Bodyapplication/json
systemTypeinteger(OperatingSystem)

操作系统:

  • 1 — Windows
  • 2 — macOS
  • 3 — Android
  • 4 — iOS
  • 5 — Linux
Enum:12345
Example:1
systemBitTypeinteger(SystemBitType)

系统位数。默认 1:

  • 0 — 32 位
  • 1 — 64 位
Default:1
Enum:01
Example:1
architectureinteger(Architecture)

CPU 架构,默认 0:

  • 0 — x86
  • 1 — ARM
Default:0
Enum:01
Example:0
curl -i -X POST \
  https://api.morelogin.com/env/advanced/ua/versions \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "systemType": 1,
    "systemBitType": 1,
    "architecture": 0
  }'

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 objectsrequired
Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d", "data": [ { … } ] }