Appearance
Interface: ApplicationsApi
The methods of Talkline.applications.
Methods
create()
ts
create(body): Promise<Application>;Parameters
| Parameter | Type |
|---|---|
body | CreateApplicationRequest |
Returns
Promise<Application>
createKey()
ts
createKey(id, body?): Promise<ApplicationKeyCreated>;POST /v1/applications/{id}/keys: the answer carries the secret, which nothing shows again.
Parameters
| Parameter | Type |
|---|---|
id | string |
body? | CreateApplicationKeyRequest |
Returns
Promise<ApplicationKeyCreated>
get()
ts
get(id): Promise<Application>;Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<Application>
listKeys()
ts
listKeys(id, query?): Promise<Page<ApplicationKey>>;GET /v1/applications/{id}/keys, one page.
Parameters
| Parameter | Type |
|---|---|
id | string |
query? | PageQuery |
Returns
Promise<Page<ApplicationKey>>
revokeKey()
ts
revokeKey(id, keyId): Promise<RevokedApplicationKey>;DELETE /v1/applications/{id}/keys/{keyId}.
Parameters
| Parameter | Type |
|---|---|
id | string |
keyId | string |
Returns
Promise<RevokedApplicationKey>
update()
ts
update(id, body): Promise<Application>;Parameters
| Parameter | Type |
|---|---|
id | string |
body | UpdateApplicationRequest |
Returns
Promise<Application>