Constructor
new ChatBotDeleteUserSessionsService()
- Source:
Methods
call(user, chatbot_id, user_id, session_idsopt) → {Promise.<Object>}
Parameters:
Name |
Type |
Attributes |
Default |
Description |
user |
string
|
|
|
The ID of the user accessing the Soffos API.
This string will be used for throttling and profanity tracking.
Soffos assumes that the owner of the api is an application (app) and that app has users.
Soffos API will accept any string." |
chatbot_id |
string
|
|
|
The chatbot's id. |
user_id |
string
|
|
|
A unique user id. It is recommended that your provide a UUID. |
session_ids |
Array
|
<optional>
|
null
|
List of the ids of the user sessions to be deleted. |
- Source:
Returns:
success - Determines if the API call is successful or not.
-
Type
-
Promise.<Object>
Example
Examples are available at "https://github.com/Soffos-Inc/soffosai-js/tree/master/samples"
Parameters:
Name |
Type |
Attributes |
Default |
Description |
name |
string
|
|
|
Reference name of this Service.
It will be used by the Pipeline to reference this Service. |
chatbot_id |
string
|
InputConfig
|
|
|
The chatbot's id. |
user_id |
string
|
InputConfig
|
|
|
A unique user id. It is recommended that your provide a UUID. |
session_ids |
Array
|
InputConfig
|
<optional>
|
null
|
List of the ids of the user sessions to be deleted. |
- Source: