DialogflowCredentials
Methods
AddDialogflowKey
Adds a Dialogflow key.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
string
The application ID
application_name:
string
OptionalThe application name. Can be used instead of application_id
description:
string
OptionalThe Dialogflow key's description
json_credentials:
string
Dialogflow credentials, provided by JWK (Json web key)
Returns
dialogflow_key_id:
number
result:
number
BindDialogflowKeys
Binds a Dialogflow key to the specified applications.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
intlist
The application ID list separated by semicolons (;). Use the 'all' value to select all applications
bind:
boolean
OptionalWhether to bind or unbind (set true or false respectively)
dialogflow_key_id:
number
The Dialogflow key's ID
Returns
result:
number
DelDialogflowKey
Removes a Dialogflow key.
To call this method, make sure your service account has one of the following roles:
Parameters
dialogflow_key_id:
number
The Dialogflow key's ID
Returns
result:
number
GetDialogflowKeys
Gets Dialogflow keys.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
number
OptionalThe id of the bound application
application_name:
string
OptionalThe name of the bound application
dialogflow_key_id:
number
OptionalThe Dialogflow key's ID
Returns
result:
SetDialogflowKey
Edits a Dialogflow key.
Parameters
description:
string
The Dialogflow keys's description. To clear previously set description leave the parameter blank or put whitespaces only
dialogflow_key_id:
number
The Dialogflow key's ID
Returns
result:
number