Skip to content

Commit 65f6baf

Browse files
committed
Travis update: May 2025 (Build 842)
[skip ci]
1 parent 4aa783b commit 65f6baf

10 files changed

Lines changed: 3282 additions & 0 deletions

File tree

.openapi-generator/FILES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
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
1314
docs/Api/OmnimessageApi.md
15+
docs/Api/PricingApi.md
1416
docs/Api/StatisticsApi.md
1517
docs/Api/WhatsAppTemplatesApi.md
1618
docs/Model/BulkOmniMessageCreateSuccessResponse.md
@@ -51,7 +53,9 @@ docs/Model/NumbersToInvestigate.md
5153
docs/Model/OmniMessageCreateSuccessResponse.md
5254
docs/Model/Omnimessage.md
5355
docs/Model/OmnimessageMessagesInner.md
56+
docs/Model/Price.md
5457
docs/Model/PriceInfo.md
58+
docs/Model/PriceNetworksInner.md
5559
docs/Model/Priority.md
5660
docs/Model/SMS.md
5761
docs/Model/StatisticsReport.md
@@ -91,13 +95,15 @@ docs/Model/WhatsappTemplateResponse.md
9195
docs/Model/WhatsappTemplateStatus.md
9296
docs/Model/WhatsappUpdateTemplateRequest.md
9397
git_push.sh
98+
lib/Api/AccountBalanceApi.php
9499
lib/Api/BlacklistApi.php
95100
lib/Api/BulkMessagingApi.php
96101
lib/Api/ContactsApi.php
97102
lib/Api/DeliveryReportApi.php
98103
lib/Api/GroupsApi.php
99104
lib/Api/NumberLookupApi.php
100105
lib/Api/OmnimessageApi.php
106+
lib/Api/PricingApi.php
101107
lib/Api/StatisticsApi.php
102108
lib/Api/WhatsAppTemplatesApi.php
103109
lib/ApiException.php
@@ -142,7 +148,9 @@ lib/Model/NumbersToInvestigate.php
142148
lib/Model/OmniMessageCreateSuccessResponse.php
143149
lib/Model/Omnimessage.php
144150
lib/Model/OmnimessageMessagesInner.php
151+
lib/Model/Price.php
145152
lib/Model/PriceInfo.php
153+
lib/Model/PriceNetworksInner.php
146154
lib/Model/Priority.php
147155
lib/Model/SMS.php
148156
lib/Model/StatisticsReport.php

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
@@ -61,6 +66,11 @@ Messente API Library provides the operations described below to access the featu
6166
1. Cancels a scheduled Omnimessage [`cancelScheduledMessage`](docs/Api/OmnimessageApi.md#cancelscheduledmessage)
6267
1. Sends an Omnimessage [`sendOmnimessage`](docs/Api/OmnimessageApi.md#sendomnimessage)
6368

69+
### PricingApi
70+
71+
1. Get pricelist for account [`getPricelist`](docs/Api/PricingApi.md#getpricelist)
72+
1. Get pricing for a specific country [`getPrices`](docs/Api/PricingApi.md#getprices)
73+
6474
### StatisticsApi
6575

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

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)

docs/Api/PricingApi.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# Messente\Api\PricingApi
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+
| [**getPricelist()**](PricingApi.md#getPricelist) | **GET** /pricelist | Get pricelist for account |
8+
| [**getPrices()**](PricingApi.md#getPrices) | **GET** /prices | Get pricing for a specific country |
9+
10+
11+
## `getPricelist()`
12+
13+
```php
14+
getPricelist($username, $password): string
15+
```
16+
### URI(s):
17+
- https://api2.messente.com Override base path for account balance API
18+
Get pricelist for account
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\PricingApi(
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->getPricelist($username, $password, $hostIndex, $variables);
53+
print_r($result);
54+
} catch (Exception $e) {
55+
echo 'Exception when calling PricingApi->getPricelist: ', $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+
## `getPrices()`
86+
87+
```php
88+
getPrices($username, $password, $country, $format): \Messente\Api\Model\Price
89+
```
90+
### URI(s):
91+
- https://api2.messente.com Override base path for account balance API
92+
Get pricing for a specific country
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\PricingApi(
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+
$country = 'country_example'; // string | The country code, for which to get the prices
121+
$format = 'format_example'; // string | The format of the response. Can be either 'json' or 'xml'. If not specified, defaults to 'json'.
122+
123+
$hostIndex = 0;
124+
$variables = [
125+
];
126+
127+
try {
128+
$result = $apiInstance->getPrices($username, $password, $country, $format, $hostIndex, $variables);
129+
print_r($result);
130+
} catch (Exception $e) {
131+
echo 'Exception when calling PricingApi->getPrices: ', $e->getMessage(), PHP_EOL;
132+
}
133+
```
134+
135+
### Parameters
136+
137+
| Name | Type | Description | Notes |
138+
| ------------- | ------------- | ------------- | ------------- |
139+
| **username** | **string**| The API username | |
140+
| **password** | **string**| The API password | |
141+
| **country** | **string**| The country code, for which to get the prices | |
142+
| **format** | **string**| The format of the response. Can be either &#39;json&#39; or &#39;xml&#39;. If not specified, defaults to &#39;json&#39;. | [optional] |
143+
| hostIndex | null|int | Host index. Defaults to null. If null, then the library will use $this->hostIndex instead | [optional] |
144+
| variables | array | Associative array of variables to pass to the host. Defaults to empty array. | [optional] |
145+
146+
### Return type
147+
148+
[**\Messente\Api\Model\Price**](../Model/Price.md)
149+
150+
### Authorization
151+
152+
[apiPassword](../../README.md#apiPassword), [apiUsername](../../README.md#apiUsername)
153+
154+
### HTTP request headers
155+
156+
- **Content-Type**: Not defined
157+
- **Accept**: `application/json`, `application/xml`, `text/plain; charset=utf-8`
158+
159+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
160+
[[Back to Model list]](../../README.md#models)
161+
[[Back to README]](../../README.md)

0 commit comments

Comments
 (0)