All URIs are relative to https://smsgateway.me/api/v4
Method | HTTP request | Description |
---|---|---|
cancelMessages | POST /message/cancel | Cancel messages |
getMessage | GET /message/{id} | Get a specific message |
searchMessages | POST /message/search | Search messages |
sendMessages | POST /message/send | Send messages |
\SMSGatewayMe\Client\Model\Message[] cancelMessages($messages)
Cancel messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Authorization
SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'BEARER');
$api_instance = new SMSGatewayMe\Client\Api\MessageApi();
$messages = array(new CancelMessageRequest()); // \SMSGatewayMe\Client\Model\CancelMessageRequest[] | messages to cancel
try {
$result = $api_instance->cancelMessages($messages);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MessageApi->cancelMessages: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messages | \SMSGatewayMe\Client\Model\CancelMessageRequest[] | messages to cancel |
\SMSGatewayMe\Client\Model\Message[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Message getMessage($id)
Get a specific message
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Authorization
SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'BEARER');
$api_instance = new SMSGatewayMe\Client\Api\MessageApi();
$id = "id_example"; // string |
try {
$result = $api_instance->getMessage($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MessageApi->getMessage: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\SMSGatewayMe\Client\Model\Message
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\MessageSearchResult searchMessages($search)
Search messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Authorization
SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'BEARER');
$api_instance = new SMSGatewayMe\Client\Api\MessageApi();
$search = new \SMSGatewayMe\Client\Model\Search(); // \SMSGatewayMe\Client\Model\Search | Search Criteria
try {
$result = $api_instance->searchMessages($search);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MessageApi->searchMessages: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
search | \SMSGatewayMe\Client\Model\Search | Search Criteria | [optional] |
\SMSGatewayMe\Client\Model\MessageSearchResult
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Message[] sendMessages($messages)
Send messages
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Authorization
SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'BEARER');
$api_instance = new SMSGatewayMe\Client\Api\MessageApi();
$messages = array(new SendMessageRequest()); // \SMSGatewayMe\Client\Model\SendMessageRequest[] | messages to send
try {
$result = $api_instance->sendMessages($messages);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MessageApi->sendMessages: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
messages | \SMSGatewayMe\Client\Model\SendMessageRequest[] | messages to send |
\SMSGatewayMe\Client\Model\Message[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]