Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Latest commit

 

History

History
131 lines (85 loc) · 3.69 KB

OmnimessageApi.md

File metadata and controls

131 lines (85 loc) · 3.69 KB

Messente\Omnichannel\OmnimessageApi

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

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

cancelScheduledMessage

cancelScheduledMessage($omnimessageId)

Cancels a scheduled Omnimessage

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Omnichannel\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Messente\Omnichannel\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 {
    $apiInstance->cancelScheduledMessage($omnimessageId);
} 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

void (empty response body)

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

\Messente\Omnichannel\Model\OmniMessageCreateSuccessResponse sendOmnimessage($omnimessage)

Sends an Omnimessage

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Omnichannel\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Messente\Omnichannel\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\Omnichannel\Model\Omnimessage(); // \Messente\Omnichannel\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\Omnichannel\Model\Omnimessage Omnimessage to be sent

Return type

\Messente\Omnichannel\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]