Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.87 KB

ScheduleApi.md

File metadata and controls

61 lines (43 loc) · 1.87 KB

Swagger\Client\ScheduleApi

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

cancelScheduledMessage($id)

Cancel a Scheduled Message

Cancel a Scheduled Message

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id string Id of the Message to cancel the send.

Return type

void (empty response body)

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]