Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.08 KB

BulkMessagingApi.md

File metadata and controls

68 lines (46 loc) · 2.08 KB

Messente\Api\BulkMessagingApi

All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.

Method HTTP request Description
sendBulkOmnimessage() POST /omnimessages Sends a bulk Omnimessage

sendBulkOmnimessage()

sendBulkOmnimessage($bulkOmnimessage): \Messente\Api\Model\BulkOmniMessageCreateSuccessResponse

Sends a bulk 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\BulkMessagingApi(
    // 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
);
$bulkOmnimessage = new \Messente\Api\Model\BulkOmnimessage(); // \Messente\Api\Model\BulkOmnimessage | Bulk Omnimessage to be sent

try {
    $result = $apiInstance->sendBulkOmnimessage($bulkOmnimessage);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BulkMessagingApi->sendBulkOmnimessage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
bulkOmnimessage \Messente\Api\Model\BulkOmnimessage Bulk Omnimessage to be sent

Return type

\Messente\Api\Model\BulkOmniMessageCreateSuccessResponse

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]