Solicitud de código de dispositivo

Encabezados

x-client-versionstringOpcionalValor predeterminado: 0.0.0
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-enabledenumOpcional
Enable URL Pairing mode for C2C device code requests. Set to 'true' to enable.
Valores permitidos:

Solicitud

client_idstringRequerido

Un identificador único para el dispositivo de hardware físico. Es necesario garantizar que este valor sea único para el dispositivo. Podría ser un número de serie o un UUID generado aleatoriamente.

client_secretstringRequerido

El soporte de Frame.io emitirá este valor para usted e identifica el modelo del dispositivo. Este valor debe mantenerse en secreto para el usuario y debe cifrarse en reposo

scopestringRequeridoformat: "asset_create offline"

Lista de permisos solicitados delimitada por espacios. Los dispositivos de hardware pueden solicitar los siguientes ámbitos: ‘asset_create’ (crear activos), ‘offline’ (tokens de actualización). Normalmente se solicitan ambos a la vez.

Respuesta

Solicitud correcta
device_codestring>=1 character
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_indouble<=120
The number of seconds until this code expires.
intervaldouble
How long the we should wait between polling requests to see if the user has entered the code.
namestring>=1 character
The name of the device we are trying to connect.
user_codestring>=1 character

The six-digit code the user will enter into Frame.io to pair the device to a project.

verification_uristringformat: "uri"
The URL where the user should go to enter the pairing code.
verification_uri_completestringOpcionalformat: "uri"

A complete URL with the user code pre-filled, which can be used to streamline the pairing process.