All URIs are relative to https://smsgateway.me/api/v4
Method | HTTP request | Description |
---|---|---|
createCallback | POST /callback | Create Callback |
getCallback | GET /callback/{id} | Get a specific callback |
searchCallbacks | POST /callback/search | Search callbacks |
updateCallback | PUT /callback/{id} | Update callback |
\SMSGatewayMe\Client\Model\Callback createCallback($callback)
Create Callback
<?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\CallbackApi();
$callback = new \SMSGatewayMe\Client\Model\CreateCallbackRequest(); // \SMSGatewayMe\Client\Model\CreateCallbackRequest | callback to create
try {
$result = $api_instance->createCallback($callback);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CallbackApi->createCallback: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
callback | \SMSGatewayMe\Client\Model\CreateCallbackRequest | callback to create |
\SMSGatewayMe\Client\Model\Callback
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Callback getCallback($id)
Get a specific callback
<?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\CallbackApi();
$id = "id_example"; // string |
try {
$result = $api_instance->getCallback($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CallbackApi->getCallback: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\SMSGatewayMe\Client\Model\Callback
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\CallbackSearchResult searchCallbacks($search)
Search callbacks
<?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\CallbackApi();
$search = new \SMSGatewayMe\Client\Model\Search(); // \SMSGatewayMe\Client\Model\Search | Search Criteria
try {
$result = $api_instance->searchCallbacks($search);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CallbackApi->searchCallbacks: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
search | \SMSGatewayMe\Client\Model\Search | Search Criteria | [optional] |
\SMSGatewayMe\Client\Model\CallbackSearchResult
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Callback updateCallback($id, $callback)
Update callback
<?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\CallbackApi();
$id = "id_example"; // string |
$callback = array(new UpdateCallbackRequest()); // \SMSGatewayMe\Client\Model\UpdateCallbackRequest[] | callback update data
try {
$result = $api_instance->updateCallback($id, $callback);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CallbackApi->updateCallback: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
callback | \SMSGatewayMe\Client\Model\UpdateCallbackRequest[] | callback update data |
\SMSGatewayMe\Client\Model\Callback
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]