All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
cancelScheduledMessage() | DELETE /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage |
sendOmnimessage() | POST /omnimessage | Sends an Omnimessage |
cancelScheduledMessage($omnimessageId): object
Cancels a scheduled Omnimessage
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Messente\Api\Api\OmnimessageApi(
// 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
);
$omnimessageId = 'omnimessageId_example'; // string | UUID of the scheduled omnimessage to be cancelled
try {
$result = $apiInstance->cancelScheduledMessage($omnimessageId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OmnimessageApi->cancelScheduledMessage: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
omnimessageId | string | UUID of the scheduled omnimessage to be cancelled |
object
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sendOmnimessage($omnimessage): \Messente\Api\Model\OmniMessageCreateSuccessResponse
Sends an Omnimessage
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Messente\Api\Api\OmnimessageApi(
// 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
);
$omnimessage = new \Messente\Api\Model\Omnimessage(); // \Messente\Api\Model\Omnimessage | Omnimessage to be sent
try {
$result = $apiInstance->sendOmnimessage($omnimessage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OmnimessageApi->sendOmnimessage: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
omnimessage | \Messente\Api\Model\Omnimessage | Omnimessage to be sent |
\Messente\Api\Model\OmniMessageCreateSuccessResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]