All URIs are relative to https://slingshot.egoiapp.com/api/
Method | HTTP request | Description |
---|---|---|
cancelScheduledMessage | POST /v2/messages/{id}/action/send | Cancel a Scheduled Message |
cancelScheduledMessage($id)
Cancel a Scheduled Message
Cancel a Scheduled Message
<?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\ScheduleApi(
// 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 | Id of the Message to cancel the send.
try {
$apiInstance->cancelScheduledMessage($id);
} catch (Exception $e) {
echo 'Exception when calling ScheduleApi->cancelScheduledMessage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | Id of the Message to cancel the send. |
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]