Methods
call(user, session_ids) → {Promise.<Object>}
Parameters:
Name | Type | Description |
---|---|---|
user |
string | The ID of the user accessing the Soffos API. Soffos assumes that the owner of the api is an application (app) and that app has users. Soffos API will accept any string. |
session_ids |
Array.<string> | A list with the IDs of the sessions to be deleted. |
- Source:
Returns:
success - boolean
Indicates whether the sessions have been successfuly deleted.
Indicates whether the sessions have been successfuly deleted.
- Type
- Promise.<Object>
Example
import { SoffosServices } from "soffosai";
const my_apiKey = "Token <put your api key here>";
const service = new SoffosServices.LetsDiscussDeleteService({apiKey:my_apiKey});
let response = await service.call('me again', ["b658686f8b834b3f86d5218a4549e1c4"]);
console.log(JSON.stringify(response, null, 2));
// returns
// {
// "success": true
// }
setInputConfigs(name, session_ids)
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Reference name of this Service. It will be used by the Pipeline to reference this Service. |
session_ids |
Array.<string> | InputConfig | A list with the IDs of the sessions to be deleted. |
- Source: