Skip to content

Latest commit

 

History

History
129 lines (88 loc) · 3.56 KB

OmnimessageApi.md

File metadata and controls

129 lines (88 loc) · 3.56 KB

Messente\Api\OmnimessageApi

All URIs are relative to https://api.messente.com/v1.

Method HTTP request Description
cancelScheduledMessage() DELETE /omnimessage/{omnimessageId} Cancels a scheduled Omnimessage
sendOmnimessage() POST /omnimessage Sends an Omnimessage

cancelScheduledMessage()

cancelScheduledMessage($omnimessageId): object

Cancels a scheduled Omnimessage

Example

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

Parameters

Name Type Description Notes
omnimessageId string UUID of the scheduled omnimessage to be cancelled

Return type

object

Authorization

basicAuth

HTTP request headers

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

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

sendOmnimessage()

sendOmnimessage($omnimessage): \Messente\Api\Model\OmniMessageCreateSuccessResponse

Sends an Omnimessage

Example

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

Parameters

Name Type Description Notes
omnimessage \Messente\Api\Model\Omnimessage Omnimessage to be sent

Return type

\Messente\Api\Model\OmniMessageCreateSuccessResponse

Authorization

basicAuth

HTTP request headers

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

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