Skip to content

Commit 77b0eae

Browse files
authored
Merge pull request #25 from messente/travis
Release version 3.4.0
2 parents c17d83a + 90f614f commit 77b0eae

137 files changed

Lines changed: 17442 additions & 559 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/packagist.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
.travis.yml
55
README.md
66
composer.json
7+
docs/Api/AccountBalanceApi.md
78
docs/Api/BlacklistApi.md
89
docs/Api/BulkMessagingApi.md
910
docs/Api/ContactsApi.md
1011
docs/Api/DeliveryReportApi.md
1112
docs/Api/GroupsApi.md
1213
docs/Api/NumberLookupApi.md
14+
docs/Api/NumberVerificationApi.md
1315
docs/Api/OmnimessageApi.md
16+
docs/Api/PricingApi.md
1417
docs/Api/StatisticsApi.md
18+
docs/Api/WhatsAppTemplatesApi.md
1519
docs/Model/BulkOmniMessageCreateSuccessResponse.md
1620
docs/Model/BulkOmniMessageCreateSuccessResponseMessagesInner.md
1721
docs/Model/BulkOmnimessage.md
@@ -50,7 +54,9 @@ docs/Model/NumbersToInvestigate.md
5054
docs/Model/OmniMessageCreateSuccessResponse.md
5155
docs/Model/Omnimessage.md
5256
docs/Model/OmnimessageMessagesInner.md
57+
docs/Model/Price.md
5358
docs/Model/PriceInfo.md
59+
docs/Model/PriceNetworksInner.md
5460
docs/Model/Priority.md
5561
docs/Model/SMS.md
5662
docs/Model/StatisticsReport.md
@@ -64,23 +70,49 @@ docs/Model/TextStore.md
6470
docs/Model/Viber.md
6571
docs/Model/ViberVideo.md
6672
docs/Model/WhatsApp.md
73+
docs/Model/WhatsAppAudio.md
6774
docs/Model/WhatsAppComponent.md
6875
docs/Model/WhatsAppCurrency.md
6976
docs/Model/WhatsAppDatetime.md
77+
docs/Model/WhatsAppDocument.md
78+
docs/Model/WhatsAppImage.md
7079
docs/Model/WhatsAppLanguage.md
7180
docs/Model/WhatsAppMedia.md
7281
docs/Model/WhatsAppParameter.md
82+
docs/Model/WhatsAppSticker.md
7383
docs/Model/WhatsAppTemplate.md
7484
docs/Model/WhatsAppText.md
85+
docs/Model/WhatsAppVideo.md
86+
docs/Model/WhatsappButtonType.md
87+
docs/Model/WhatsappComponentType.md
88+
docs/Model/WhatsappCreateTemplateRequest.md
89+
docs/Model/WhatsappCreateTemplateResponse.md
90+
docs/Model/WhatsappHeaderFormat.md
91+
docs/Model/WhatsappListTemplatesResponse.md
92+
docs/Model/WhatsappOtpButtonType.md
93+
docs/Model/WhatsappPagination.md
94+
docs/Model/WhatsappPagingCursors.md
95+
docs/Model/WhatsappSupportedApp.md
96+
docs/Model/WhatsappTemplateButton.md
97+
docs/Model/WhatsappTemplateCategory.md
98+
docs/Model/WhatsappTemplateComponent.md
99+
docs/Model/WhatsappTemplateExample.md
100+
docs/Model/WhatsappTemplateResponse.md
101+
docs/Model/WhatsappTemplateStatus.md
102+
docs/Model/WhatsappUpdateTemplateRequest.md
75103
git_push.sh
104+
lib/Api/AccountBalanceApi.php
76105
lib/Api/BlacklistApi.php
77106
lib/Api/BulkMessagingApi.php
78107
lib/Api/ContactsApi.php
79108
lib/Api/DeliveryReportApi.php
80109
lib/Api/GroupsApi.php
81110
lib/Api/NumberLookupApi.php
111+
lib/Api/NumberVerificationApi.php
82112
lib/Api/OmnimessageApi.php
113+
lib/Api/PricingApi.php
83114
lib/Api/StatisticsApi.php
115+
lib/Api/WhatsAppTemplatesApi.php
84116
lib/ApiException.php
85117
lib/Configuration.php
86118
lib/HeaderSelector.php
@@ -123,7 +155,9 @@ lib/Model/NumbersToInvestigate.php
123155
lib/Model/OmniMessageCreateSuccessResponse.php
124156
lib/Model/Omnimessage.php
125157
lib/Model/OmnimessageMessagesInner.php
158+
lib/Model/Price.php
126159
lib/Model/PriceInfo.php
160+
lib/Model/PriceNetworksInner.php
127161
lib/Model/Priority.php
128162
lib/Model/SMS.php
129163
lib/Model/StatisticsReport.php
@@ -137,13 +171,35 @@ lib/Model/TextStore.php
137171
lib/Model/Viber.php
138172
lib/Model/ViberVideo.php
139173
lib/Model/WhatsApp.php
174+
lib/Model/WhatsAppAudio.php
140175
lib/Model/WhatsAppComponent.php
141176
lib/Model/WhatsAppCurrency.php
142177
lib/Model/WhatsAppDatetime.php
178+
lib/Model/WhatsAppDocument.php
179+
lib/Model/WhatsAppImage.php
143180
lib/Model/WhatsAppLanguage.php
144181
lib/Model/WhatsAppMedia.php
145182
lib/Model/WhatsAppParameter.php
183+
lib/Model/WhatsAppSticker.php
146184
lib/Model/WhatsAppTemplate.php
147185
lib/Model/WhatsAppText.php
186+
lib/Model/WhatsAppVideo.php
187+
lib/Model/WhatsappButtonType.php
188+
lib/Model/WhatsappComponentType.php
189+
lib/Model/WhatsappCreateTemplateRequest.php
190+
lib/Model/WhatsappCreateTemplateResponse.php
191+
lib/Model/WhatsappHeaderFormat.php
192+
lib/Model/WhatsappListTemplatesResponse.php
193+
lib/Model/WhatsappOtpButtonType.php
194+
lib/Model/WhatsappPagination.php
195+
lib/Model/WhatsappPagingCursors.php
196+
lib/Model/WhatsappSupportedApp.php
197+
lib/Model/WhatsappTemplateButton.php
198+
lib/Model/WhatsappTemplateCategory.php
199+
lib/Model/WhatsappTemplateComponent.php
200+
lib/Model/WhatsappTemplateExample.php
201+
lib/Model/WhatsappTemplateResponse.php
202+
lib/Model/WhatsappTemplateStatus.php
203+
lib/Model/WhatsappUpdateTemplateRequest.php
148204
lib/ObjectSerializer.php
149205
phpunit.xml.dist

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
7.11.0

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- PHP artifact version: 3.3.0
4+
- PHP artifact version: 3.4.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -18,6 +18,11 @@ Messente API has the following features:
1818

1919
Messente API Library provides the operations described below to access the features.
2020

21+
### AccountBalanceApi
22+
23+
1. Get account balance [`getAccountBalance`](docs/Api/AccountBalanceApi.md#getaccountbalance)
24+
1. Get account balance [`getAccountBalanceUsingPost`](docs/Api/AccountBalanceApi.md#getaccountbalanceusingpost)
25+
2126
### BlacklistApi
2227

2328
1. Adds a phone number to the blacklist [`addToBlacklist`](docs/Api/BlacklistApi.md#addtoblacklist)
@@ -56,15 +61,33 @@ Messente API Library provides the operations described below to access the featu
5661

5762
1. Requests info about phone numbers [`fetchInfo`](docs/Api/NumberLookupApi.md#fetchinfo)
5863

64+
### NumberVerificationApi
65+
66+
1. verify number [`verifyNumber`](docs/Api/NumberVerificationApi.md#verifynumber)
67+
1. verified the PIN code entered by the user. [`verifyPin`](docs/Api/NumberVerificationApi.md#verifypin)
68+
5969
### OmnimessageApi
6070

6171
1. Cancels a scheduled Omnimessage [`cancelScheduledMessage`](docs/Api/OmnimessageApi.md#cancelscheduledmessage)
6272
1. Sends an Omnimessage [`sendOmnimessage`](docs/Api/OmnimessageApi.md#sendomnimessage)
6373

74+
### PricingApi
75+
76+
1. Get pricelist for account [`getPricelist`](docs/Api/PricingApi.md#getpricelist)
77+
1. Get pricing for a specific country [`getPrices`](docs/Api/PricingApi.md#getprices)
78+
6479
### StatisticsApi
6580

6681
1. Requests statistics reports for each country [`createStatisticsReport`](docs/Api/StatisticsApi.md#createstatisticsreport)
6782

83+
### WhatsAppTemplatesApi
84+
85+
1. Creates a WhatsApp template [`createWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#createwhatsapptemplate)
86+
1. Deletes a WhatsApp template [`deleteWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#deletewhatsapptemplate)
87+
1. Requests a WhatsApp template with the given ID [`getWhatsappTemplateById`](docs/Api/WhatsAppTemplatesApi.md#getwhatsapptemplatebyid)
88+
1. Requests a list of WhatsApp templates [`listWhatsappTemplates`](docs/Api/WhatsAppTemplatesApi.md#listwhatsapptemplates)
89+
1. Updates a WhatsApp template [`updateWhatsappTemplate`](docs/Api/WhatsAppTemplatesApi.md#updatewhatsapptemplate)
90+
6891
## Auth
6992

7093
**Type**: HTTP basic authentication

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "messente/messente-api-php",
3-
"version": "3.3.0",
3+
"version": "3.4.0",
44
"description": "[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.",
55
"keywords": ["viber", "telegram", "sms", "whatsapp", "phonebook", "openapitools",
66
"openapi-generator",

docs/Api/AccountBalanceApi.md

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Messente\Api\AccountBalanceApi
2+
3+
All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.
4+
5+
| Method | HTTP request | Description |
6+
| ------------- | ------------- | ------------- |
7+
| [**getAccountBalance()**](AccountBalanceApi.md#getAccountBalance) | **GET** /get_balance | Get account balance |
8+
| [**getAccountBalanceUsingPost()**](AccountBalanceApi.md#getAccountBalanceUsingPost) | **POST** /get_balance | Get account balance |
9+
10+
11+
## `getAccountBalance()`
12+
13+
```php
14+
getAccountBalance($username, $password): string
15+
```
16+
### URI(s):
17+
- https://api2.messente.com Override base path for account balance API
18+
Get account balance
19+
20+
### Example
21+
22+
```php
23+
<?php
24+
require_once(__DIR__ . '/vendor/autoload.php');
25+
26+
27+
// Configure API key authorization: apiPassword
28+
$config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKey('password', 'YOUR_API_KEY');
29+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
30+
// $config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('password', 'Bearer');
31+
32+
// Configure API key authorization: apiUsername
33+
$config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKey('username', 'YOUR_API_KEY');
34+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
35+
// $config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('username', 'Bearer');
36+
37+
38+
$apiInstance = new Messente\Api\Api\AccountBalanceApi(
39+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
40+
// This is optional, `GuzzleHttp\Client` will be used as default.
41+
new GuzzleHttp\Client(),
42+
$config
43+
);
44+
$username = 'username_example'; // string | The API username
45+
$password = 'password_example'; // string | The API password
46+
47+
$hostIndex = 0;
48+
$variables = [
49+
];
50+
51+
try {
52+
$result = $apiInstance->getAccountBalance($username, $password, $hostIndex, $variables);
53+
print_r($result);
54+
} catch (Exception $e) {
55+
echo 'Exception when calling AccountBalanceApi->getAccountBalance: ', $e->getMessage(), PHP_EOL;
56+
}
57+
```
58+
59+
### Parameters
60+
61+
| Name | Type | Description | Notes |
62+
| ------------- | ------------- | ------------- | ------------- |
63+
| **username** | **string**| The API username | |
64+
| **password** | **string**| The API password | |
65+
| hostIndex | null|int | Host index. Defaults to null. If null, then the library will use $this->hostIndex instead | [optional] |
66+
| variables | array | Associative array of variables to pass to the host. Defaults to empty array. | [optional] |
67+
68+
### Return type
69+
70+
**string**
71+
72+
### Authorization
73+
74+
[apiPassword](../../README.md#apiPassword), [apiUsername](../../README.md#apiUsername)
75+
76+
### HTTP request headers
77+
78+
- **Content-Type**: Not defined
79+
- **Accept**: `text/plain`
80+
81+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
82+
[[Back to Model list]](../../README.md#models)
83+
[[Back to README]](../../README.md)
84+
85+
## `getAccountBalanceUsingPost()`
86+
87+
```php
88+
getAccountBalanceUsingPost($username, $password): string
89+
```
90+
### URI(s):
91+
- https://api2.messente.com Override base path for account balance API
92+
Get account balance
93+
94+
### Example
95+
96+
```php
97+
<?php
98+
require_once(__DIR__ . '/vendor/autoload.php');
99+
100+
101+
// Configure API key authorization: apiPassword
102+
$config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKey('password', 'YOUR_API_KEY');
103+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
104+
// $config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('password', 'Bearer');
105+
106+
// Configure API key authorization: apiUsername
107+
$config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKey('username', 'YOUR_API_KEY');
108+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
109+
// $config = Messente\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('username', 'Bearer');
110+
111+
112+
$apiInstance = new Messente\Api\Api\AccountBalanceApi(
113+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
114+
// This is optional, `GuzzleHttp\Client` will be used as default.
115+
new GuzzleHttp\Client(),
116+
$config
117+
);
118+
$username = 'username_example'; // string | The API username
119+
$password = 'password_example'; // string | The API password
120+
121+
$hostIndex = 0;
122+
$variables = [
123+
];
124+
125+
try {
126+
$result = $apiInstance->getAccountBalanceUsingPost($username, $password, $hostIndex, $variables);
127+
print_r($result);
128+
} catch (Exception $e) {
129+
echo 'Exception when calling AccountBalanceApi->getAccountBalanceUsingPost: ', $e->getMessage(), PHP_EOL;
130+
}
131+
```
132+
133+
### Parameters
134+
135+
| Name | Type | Description | Notes |
136+
| ------------- | ------------- | ------------- | ------------- |
137+
| **username** | **string**| The API username | |
138+
| **password** | **string**| The API password | |
139+
| hostIndex | null|int | Host index. Defaults to null. If null, then the library will use $this->hostIndex instead | [optional] |
140+
| variables | array | Associative array of variables to pass to the host. Defaults to empty array. | [optional] |
141+
142+
### Return type
143+
144+
**string**
145+
146+
### Authorization
147+
148+
[apiPassword](../../README.md#apiPassword), [apiUsername](../../README.md#apiUsername)
149+
150+
### HTTP request headers
151+
152+
- **Content-Type**: Not defined
153+
- **Accept**: `text/plain`
154+
155+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
156+
[[Back to Model list]](../../README.md#models)
157+
[[Back to README]](../../README.md)

0 commit comments

Comments
 (0)