请求设备代码
请求设备代码
请求头
x-client-version
Firmware or software version of a C2C integration. Will be used to determine the correct Device Model configuration for the device when multiple are available. Must be a valid semantic version.
For more on semantic versions, see here: https://semver.org/
x-client-platypus-enabled
Enable URL Pairing mode for C2C device code requests. Set to 'true' to enable.
允许的值:
请求
client_id
物理硬件设备的唯一标识符。该值需要保证对设备唯一。可以是序列号或随机生成的 UUID。
client_secret
此值将由 Frame.io 支持团队颁发给您,用于标识您的设备型号。该值应对用户保密,并应在静态存储时进行加密
scope
以空格分隔的所请求权限列表。硬件设备可以请求以下范围:‘asset_create’(创建资产),‘offline’(刷新令牌)。通常会同时请求这两项。
响应
请求成功
device_code
The device code should be hidden from the user, and is used to identify this authorization request when polling to see if the user has entered their code successfully.
expires_in
The number of seconds until this code expires.
interval
How long the we should wait between polling requests to see if the user has entered the code.
name
The name of the device we are trying to connect.
user_code
The six-digit code the user will enter into Frame.io to pair the device to a project.
verification_uri
The URL where the user should go to enter the pairing code.
verification_uri_complete
A complete URL with the user code pre-filled, which can be used to streamline the pairing process.