All URIs are relative to https://smsgateway.me/api/v4
Method | HTTP request | Description |
---|---|---|
addPhoneNumber | PUT /contact/{id}/phone-number/{phone-number} | The phone number to add |
createContacts | POST /contact | Create Contacts |
deletePhoneNumber | DELETE /contact/{id}/phone-number/{phone-number} | The phone number to delete |
getContact | GET /contact/{id} | Get a specific contact |
searchContacts | POST /contact/search | Search contacts |
updateContact | PUT /contact/{id} | Update contact |
\SMSGatewayMe\Client\Model\Contact addPhoneNumber($id, $phoneNumber)
The phone number to add
<?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\ContactApi();
$id = "id_example"; // string |
$phoneNumber = "phoneNumber_example"; // string | phone number to add
try {
$result = $api_instance->addPhoneNumber($id, $phoneNumber);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->addPhoneNumber: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
phoneNumber | string | phone number to add |
\SMSGatewayMe\Client\Model\Contact
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Contact[] createContacts($contacts)
Create Contacts
<?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\ContactApi();
$contacts = array(new CreateContactRequest()); // \SMSGatewayMe\Client\Model\CreateContactRequest[] | contacts to create
try {
$result = $api_instance->createContacts($contacts);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->createContacts: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
contacts | \SMSGatewayMe\Client\Model\CreateContactRequest[] | contacts to create |
\SMSGatewayMe\Client\Model\Contact[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Contact deletePhoneNumber($id, $phoneNumber)
The phone number to delete
<?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\ContactApi();
$id = "id_example"; // string |
$phoneNumber = "phoneNumber_example"; // string | phone number to add
try {
$result = $api_instance->deletePhoneNumber($id, $phoneNumber);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->deletePhoneNumber: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
phoneNumber | string | phone number to add |
\SMSGatewayMe\Client\Model\Contact
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Contact getContact($id)
Get a specific contact
<?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\ContactApi();
$id = "id_example"; // string |
try {
$result = $api_instance->getContact($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->getContact: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\SMSGatewayMe\Client\Model\Contact
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\ContactSearchResult searchContacts($search)
Search contacts
<?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\ContactApi();
$search = new \SMSGatewayMe\Client\Model\Search(); // \SMSGatewayMe\Client\Model\Search | Search Criteria
try {
$result = $api_instance->searchContacts($search);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->searchContacts: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
search | \SMSGatewayMe\Client\Model\Search | Search Criteria | [optional] |
\SMSGatewayMe\Client\Model\ContactSearchResult
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SMSGatewayMe\Client\Model\Contact updateContact($id, $contact)
Update contact
<?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\ContactApi();
$id = "id_example"; // string |
$contact = new \SMSGatewayMe\Client\Model\UpdateContactRequest(); // \SMSGatewayMe\Client\Model\UpdateContactRequest | contacts details
try {
$result = $api_instance->updateContact($id, $contact);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->updateContact: ', $e->getMessage(), "\n";
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
contact | \SMSGatewayMe\Client\Model\UpdateContactRequest | contacts details |
\SMSGatewayMe\Client\Model\Contact
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]