DeviceAuthorizationResult

data class DeviceAuthorizationResult(    val device_code: String,     val user_code: String,     val verification_uri: String,     val verification_uri_complete: String,     val expires_in: Long,     val interval: Long)

The data class to result of NuguOAuthInterface.startDeviceAuthorization

Parameters

device_code

The short-lived code that is used by the device when polling for a session token.

user_code

A one-time user verification code. This is needed to authorize an in-use device.

verification_uri

The URI of the verification page that takes the userCode to authorize the device.

verification_uri_complete

An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.

expires_in

Indicates the number of seconds in which the verification code will become invalid.

interval

Indicates the number of seconds the client must wait between attempts when polling for a session.

Constructors

Link copied to clipboard
fun DeviceAuthorizationResult(    device_code: String,     user_code: String,     verification_uri: String,     verification_uri_complete: String,     expires_in: Long,     interval: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val device_code: String
Link copied to clipboard
val expires_in: Long
Link copied to clipboard
val interval: Long
Link copied to clipboard
val user_code: String
Link copied to clipboard
val verification_uri: String
Link copied to clipboard
val verification_uri_complete: String