Authenticate
METHOD NAME authenticate
This method doesn't require authentication.
Description
This completes the authentication process that started with a call to pair by providing the displayed OTP and returning apiKey
to use in the appropriate header to authenticate each method call.
Requires state
PAIRING
and on success moves toIDLE
Parameters
object
otp
string
REQUIRED
Displayed OTP (Length 6)
Result
object
on success
apiKey
string
Generated key to attach to each request header
Errors
MissingParams
InvalidParams
on incorrect OTPIllegalState