コンテンツへスキップ

タイムゾーンと言語の一覧を取得

Request

ブラウザープロファイルで利用できるタイムゾーンと言語を返します。

  • 副作用:なし。読み取り専用。バックオフを入れれば安全にリトライできます。
  • 補足:現時点でレスポンスはリクエストボディに依存しません — サービスは指定された OS や言語を下流へ渡さないため、入力にかかわらず同じリストが返ります。
Security
OpenApiBearer
Bodyapplication/jsonrequired
osinteger(OperatingSystem)

オペレーティングシステム:

  • 1 — Windows
  • 2 — macOS
  • 3 — Android
  • 4 — iOS
  • 5 — Linux
Default:1
Enum:12345
Example:1
curl -i -X POST \
  https://api.morelogin.com/env/base/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"
dataobjectrequired
Response
{ "code": 0, "msg": null, "data": { "time_zone_list": [ … ], "language_list": [ … ] }, "requestId": "1d4f3ea968664593860b94b35d4ebf5e" }