quick_connect_controller = client.quick_connect
QuickConnectController
Authorizes a pending quick connect request.
def authorize(self,
code)
Parameter | Type | Tags | Description |
---|---|---|---|
code |
string |
Query, Required | Quick connect code to authorize. |
bool
code = 'code8'
result = quick_connect_controller.authorize(code)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Unknown user id. | ProblemDetailsException |
Attempts to retrieve authentication information.
def connect(self,
secret)
Parameter | Type | Tags | Description |
---|---|---|---|
secret |
string |
Query, Required | Secret previously returned from the Initiate endpoint. |
secret = 'secret4'
result = quick_connect_controller.connect(secret)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Unknown quick connect secret. | ProblemDetailsException |
Gets the current quick connect state.
def get_enabled(self)
bool
result = quick_connect_controller.get_enabled()
Initiate a new quick connect request.
def initiate(self)
result = quick_connect_controller.initiate()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Quick connect is not active on this server. | APIException |