Skip to content

Latest commit

 

History

History
154 lines (109 loc) · 4.89 KB

SmsApi.md

File metadata and controls

154 lines (109 loc) · 4.89 KB

Membercare\Client\SmsApi

All URIs are relative to /

Method HTTP request Description
sendBulkSms POST /api/v1/sms/queue Enqueuees the smses in the Membercare sms queue.
sendSms POST /api/v1/sms/send Send the sms directly without waiting in the queue.
sendSmsToListOfDebtorAccountNumbers POST /api/v1/sms/queue2 Enqueuees an sms for a list of debtor account numbers in the Membercare sms queue.

sendBulkSms

sendBulkSms($token, $body)

Enqueuees the smses in the Membercare sms queue.

Example

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

$apiInstance = new Membercare\Client\Api\SmsApi(
    // 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()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\SmsShot(); // \Membercare\Client\Model\SmsShot | 

try {
    $apiInstance->sendBulkSms($token, $body);
} catch (Exception $e) {
    echo 'Exception when calling SmsApi->sendBulkSms: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
body \Membercare\Client\Model\SmsShot [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

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

sendSms

sendSms($token, $body)

Send the sms directly without waiting in the queue.

Example

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

$apiInstance = new Membercare\Client\Api\SmsApi(
    // 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()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\Sms(); // \Membercare\Client\Model\Sms | 

try {
    $apiInstance->sendSms($token, $body);
} catch (Exception $e) {
    echo 'Exception when calling SmsApi->sendSms: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
body \Membercare\Client\Model\Sms [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

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

sendSmsToListOfDebtorAccountNumbers

sendSmsToListOfDebtorAccountNumbers($token, $body)

Enqueuees an sms for a list of debtor account numbers in the Membercare sms queue.

Example

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

$apiInstance = new Membercare\Client\Api\SmsApi(
    // 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()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\SmsToDebtorAccountNumbersPost(); // \Membercare\Client\Model\SmsToDebtorAccountNumbersPost | 

try {
    $apiInstance->sendSmsToListOfDebtorAccountNumbers($token, $body);
} catch (Exception $e) {
    echo 'Exception when calling SmsApi->sendSmsToListOfDebtorAccountNumbers: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
body \Membercare\Client\Model\SmsToDebtorAccountNumbersPost [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

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