/cli/device无需登录。返回只给 CLI 的 device_code,以及给人在网页上确认的 user_code(10 分钟内有效)。
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
curl -X POST "https://example.com/cli/device" \ -H "Content-Type: application/json" \ -d '{}'{ "device_code": "string", "user_code": "string", "verification_uri": "http://example.com", "verification_uri_complete": "http://example.com", "expires_in": 0, "interval": 0}在确认页和设置里显示的设备名
length <= 60