Methods
- name
- Type:
string
The name of the API key to be created.
- id
- Type:
string
The id of the API key to delete.
- id
- Type:
string
The id of the API key to disable.
- id
- Type:
string
The id of the API key to enable.
- id
- Type:
string
The id of the API key to fetch.
create(name)
Promise<void>
Creates a user API key that can be used to authenticate as the current user.
Parameters:
Promise<void>
delete(id)
Promise<void>
Deletes a user API key associated with the current user.
Parameters:
Promise<void>
disable(id)
Promise<void>
Disables a user API key associated with the current user.
Parameters:
Promise<void>
enable(id)
Promise<void>
Enables a user API key associated with the current user.
Parameters:
Promise<void>
fetch(id)
Promise<Object>
Fetches a user API key associated with the current user.
Parameters:
Promise<Object>
fetchAll()
Promise<Array>
Fetches the user API keys associated with the current user.
Returns:Promise<Array>