All URIs are relative to https://slingshot.egoiapp.com/api/
Method | HTTP request | Description |
---|---|---|
createMultiChannelFlow | POST /v2/multi-channel/flow | Create Multi-Channel Flow |
executeMultiChannel | POST /v2/multi-channel/execute | Execute Multi-Channel |
listMultiChannel2 | GET /v2/multi-channel/flow/{id} | Get Single Multi-Channel Flow |
listMultiChannels | GET /v2/multi-channel/flow | Get All Multi-Channel Flows |
removeMultiChannel | DELETE /v2/multi-channel/flow/{id} | Remove Single Multi-Channel |
\Swagger\Client\Model\MultiChannelFlowIdResponse createMultiChannelFlow($body)
Create Multi-Channel Flow
This method will create and add a Multi-Channel Flow. First message doesn't need interval or condition, since it doesn't depend on other messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\MultiChannelApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\MultiChannelFlowRequest(); // \Swagger\Client\Model\MultiChannelFlowRequest |
try {
$result = $apiInstance->createMultiChannelFlow($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MultiChannelApi->createMultiChannelFlow: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\MultiChannelFlowRequest | [optional] |
\Swagger\Client\Model\MultiChannelFlowIdResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MultiChannelIdResponse executeMultiChannel($body)
Execute Multi-Channel
This method will create and start a flow, sending the Multi-Channel of messages to the appropriate recipient
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\MultiChannelApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\ExecuteMultiChannelRequest(); // \Swagger\Client\Model\ExecuteMultiChannelRequest |
try {
$result = $apiInstance->executeMultiChannel($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MultiChannelApi->executeMultiChannel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\ExecuteMultiChannelRequest | [optional] |
\Swagger\Client\Model\MultiChannelIdResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MultiChannelFlowResponse[] listMultiChannel2($id)
Get Single Multi-Channel Flow
This method returns the Multi-Channel Flow wih the id in the path
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\MultiChannelApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | The id of the Multi-Channel Flow
try {
$result = $apiInstance->listMultiChannel2($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MultiChannelApi->listMultiChannel2: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the Multi-Channel Flow |
\Swagger\Client\Model\MultiChannelFlowResponse[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\MultiChannelFlowResponse[] listMultiChannels()
Get All Multi-Channel Flows
This method returns all Multi-Channels Flows set in the system
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\MultiChannelApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listMultiChannels();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MultiChannelApi->listMultiChannels: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\MultiChannelFlowResponse[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeMultiChannel($id)
Remove Single Multi-Channel
This method removes a Multi-Channel Flow from the system
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('ApiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('ApiKey', 'Bearer');
$apiInstance = new Swagger\Client\Api\MultiChannelApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | The id of the Multi-Channel Flow to remove
try {
$apiInstance->removeMultiChannel($id);
} catch (Exception $e) {
echo 'Exception when calling MultiChannelApi->removeMultiChannel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | The id of the Multi-Channel Flow to remove |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]