跳转到主要内容
POST
POST /v1/oauth/device/code

请求体

RFC 8628 §3.1.

client_id
string
默认值:""
scope
string
默认值:""

响应

Success

RFC 8628 §3.2. device_code is plaintext and exists only here.

device_code
string
必填

The secret the device polls with.

expires_in
integer<int64>
必填

Seconds.

interval
integer<int64>
必填

The minimum seconds between polls.

user_code
string
必填

The short code the person types, in the grouped form they read off the screen. Lookups normalize it, so any spelling with the right characters resolves.

verification_uri
string
必填
verification_uri_complete
string
必填

The same page with the code already filled in, for a device that can show a QR code (RFC 8628 §3.3.1).