api_key_controller = client.api_key
ApiKeyController
Create a new api key.
def create_key(self,
app)
Parameter | Type | Tags | Description |
---|---|---|---|
app |
string |
Query, Required | Name of the app using the authentication key. |
void
app = 'app2'
result = api_key_controller.create_key(app)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Get all keys.
def get_keys(self)
result = api_key_controller.get_keys()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Remove an api key.
def revoke_key(self,
key)
Parameter | Type | Tags | Description |
---|---|---|---|
key |
string |
Template, Required | The access token to delete. |
void
key = 'key0'
result = api_key_controller.revoke_key(key)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |