Skip to content

Latest commit

 

History

History
288 lines (195 loc) · 7.92 KB

SmsSubscriberApi.md

File metadata and controls

288 lines (195 loc) · 7.92 KB

OpenAPI\Client\SmsSubscriberApi

All URIs are relative to https://api.wall.et, except if the operation defines another base path.

Method HTTP request Description
archiveSmsSubscriber() DELETE /v2/SmsSubscriber/{id} Archive email subscriber
createSmsSubscriber() POST /v2/SmsSubscriber Create email subscriber
fetchAllSmsSubscribers() GET /v2/SmsSubscriber/all Fetch all email subscribers
restoreSmsSubscriber() PATCH /v2/SmsSubscriber/{id} Restore email subscriber
updateSmsSubscriber() PUT /v2/SmsSubscriber/{id} Update email subscriber

archiveSmsSubscriber()

archiveSmsSubscriber($id): \OpenAPI\Client\Model\SmsSubscriber

Archive email subscriber

Example

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



$apiInstance = new OpenAPI\Client\Api\SmsSubscriberApi(
    // 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()
);
$id = NULL; // mixed

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

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\SmsSubscriber

Authorization

No authorization required

HTTP request headers

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

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

createSmsSubscriber()

createSmsSubscriber($wt_sms_subscriber_create_params): \OpenAPI\Client\Model\SmsSubscriber

Create email subscriber

Example

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



$apiInstance = new OpenAPI\Client\Api\SmsSubscriberApi(
    // 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()
);
$wt_sms_subscriber_create_params = new \OpenAPI\Client\Model\WTSmsSubscriberCreateParams(); // \OpenAPI\Client\Model\WTSmsSubscriberCreateParams

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

Parameters

Name Type Description Notes
wt_sms_subscriber_create_params \OpenAPI\Client\Model\WTSmsSubscriberCreateParams

Return type

\OpenAPI\Client\Model\SmsSubscriber

Authorization

No authorization required

HTTP request headers

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

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

fetchAllSmsSubscribers()

fetchAllSmsSubscribers($start_date_time, $end_date_time, $is_archive_included): mixed

Fetch all email subscribers

Example

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



$apiInstance = new OpenAPI\Client\Api\SmsSubscriberApi(
    // 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()
);
$start_date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$end_date_time = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$is_archive_included = True; // bool

try {
    $result = $apiInstance->fetchAllSmsSubscribers($start_date_time, $end_date_time, $is_archive_included);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SmsSubscriberApi->fetchAllSmsSubscribers: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
start_date_time \DateTime [optional]
end_date_time \DateTime [optional]
is_archive_included bool [optional]

Return type

mixed

Authorization

No authorization required

HTTP request headers

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

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

restoreSmsSubscriber()

restoreSmsSubscriber($id): \OpenAPI\Client\Model\SmsSubscriber

Restore email subscriber

Example

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



$apiInstance = new OpenAPI\Client\Api\SmsSubscriberApi(
    // 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()
);
$id = NULL; // mixed

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

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\SmsSubscriber

Authorization

No authorization required

HTTP request headers

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

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

updateSmsSubscriber()

updateSmsSubscriber($id, $wt_sms_subscriber_update_params): \OpenAPI\Client\Model\SmsSubscriber

Update email subscriber

Example

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



$apiInstance = new OpenAPI\Client\Api\SmsSubscriberApi(
    // 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()
);
$id = NULL; // mixed
$wt_sms_subscriber_update_params = new \OpenAPI\Client\Model\WTSmsSubscriberUpdateParams(); // \OpenAPI\Client\Model\WTSmsSubscriberUpdateParams

try {
    $result = $apiInstance->updateSmsSubscriber($id, $wt_sms_subscriber_update_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SmsSubscriberApi->updateSmsSubscriber: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed
wt_sms_subscriber_update_params \OpenAPI\Client\Model\WTSmsSubscriberUpdateParams

Return type

\OpenAPI\Client\Model\SmsSubscriber

Authorization

No authorization required

HTTP request headers

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

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