Skip to content

Commit

Permalink
Travis update: Jul 2024 (Build 763)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
api-librarian committed Jul 4, 2024
1 parent fb47888 commit 7803fd6
Show file tree
Hide file tree
Showing 8 changed files with 600 additions and 447 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
README.md
composer.json
docs/Api/BlacklistApi.md
docs/Api/BulkMessagingApi.md
docs/Api/ContactsApi.md
docs/Api/DeliveryReportApi.md
docs/Api/GroupsApi.md
Expand Down Expand Up @@ -70,6 +71,7 @@ docs/Model/WhatsAppParameter.md
docs/Model/WhatsAppTemplate.md
git_push.sh
lib/Api/BlacklistApi.php
lib/Api/BulkMessagingApi.php
lib/Api/ContactsApi.php
lib/Api/DeliveryReportApi.php
lib/Api/GroupsApi.php
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Messente API Library provides the operations described below to access the featu
1. Returns all blacklisted phone numbers [`fetchBlacklist`](docs/Api/BlacklistApi.md#fetchblacklist)
1. Checks if a phone number is blacklisted [`isBlacklisted`](docs/Api/BlacklistApi.md#isblacklisted)

### BulkMessagingApi

1. Sends a bulk Omnimessage [`sendBulkOmnimessage`](docs/Api/BulkMessagingApi.md#sendbulkomnimessage)

### ContactsApi

1. Adds a contact to a group [`addContactToGroup`](docs/Api/ContactsApi.md#addcontacttogroup)
Expand Down Expand Up @@ -55,7 +59,6 @@ Messente API Library provides the operations described below to access the featu
### OmnimessageApi

1. Cancels a scheduled Omnimessage [`cancelScheduledMessage`](docs/Api/OmnimessageApi.md#cancelscheduledmessage)
1. Sends a bulk Omnimessage [`sendBulkOmnimessage`](docs/Api/OmnimessageApi.md#sendbulkomnimessage)
1. Sends an Omnimessage [`sendOmnimessage`](docs/Api/OmnimessageApi.md#sendomnimessage)

### StatisticsApi
Expand Down
68 changes: 68 additions & 0 deletions docs/Api/BulkMessagingApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Messente\Api\BulkMessagingApi

All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**sendBulkOmnimessage()**](BulkMessagingApi.md#sendBulkOmnimessage) | **POST** /omnimessages | Sends a bulk Omnimessage |


## `sendBulkOmnimessage()`

```php
sendBulkOmnimessage($bulkOmnimessage): \Messente\Api\Model\BulkOmniMessageCreateSuccessResponse
```

Sends a bulk Omnimessage

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new Messente\Api\Api\BulkMessagingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$bulkOmnimessage = new \Messente\Api\Model\BulkOmnimessage(); // \Messente\Api\Model\BulkOmnimessage | Bulk Omnimessage to be sent

try {
$result = $apiInstance->sendBulkOmnimessage($bulkOmnimessage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BulkMessagingApi->sendBulkOmnimessage: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **bulkOmnimessage** | [**\Messente\Api\Model\BulkOmnimessage**](../Model/BulkOmnimessage.md)| Bulk Omnimessage to be sent | |

### Return type

[**\Messente\Api\Model\BulkOmniMessageCreateSuccessResponse**](../Model/BulkOmniMessageCreateSuccessResponse.md)

### Authorization

[basicAuth](../../README.md#basicAuth)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
61 changes: 0 additions & 61 deletions docs/Api/OmnimessageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ All URIs are relative to https://api.messente.com/v1, except if the operation de
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**cancelScheduledMessage()**](OmnimessageApi.md#cancelScheduledMessage) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage |
| [**sendBulkOmnimessage()**](OmnimessageApi.md#sendBulkOmnimessage) | **POST** /omnimessages | Sends a bulk Omnimessage |
| [**sendOmnimessage()**](OmnimessageApi.md#sendOmnimessage) | **POST** /omnimessage | Sends an Omnimessage |


Expand Down Expand Up @@ -69,66 +68,6 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `sendBulkOmnimessage()`

```php
sendBulkOmnimessage($bulkOmnimessage): \Messente\Api\Model\BulkOmniMessageCreateSuccessResponse
```

Sends a bulk Omnimessage

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new Messente\Api\Api\OmnimessageApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$bulkOmnimessage = new \Messente\Api\Model\BulkOmnimessage(); // \Messente\Api\Model\BulkOmnimessage | Bulk Omnimessage to be sent

try {
$result = $apiInstance->sendBulkOmnimessage($bulkOmnimessage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OmnimessageApi->sendBulkOmnimessage: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **bulkOmnimessage** | [**\Messente\Api\Model\BulkOmnimessage**](../Model/BulkOmnimessage.md)| Bulk Omnimessage to be sent | |

### Return type

[**\Messente\Api\Model\BulkOmniMessageCreateSuccessResponse**](../Model/BulkOmniMessageCreateSuccessResponse.md)

### Authorization

[basicAuth](../../README.md#basicAuth)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `sendOmnimessage()`

```php
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/BulkOmniMessageCreateSuccessResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**messages** | [**\Messente\Api\Model\BulkOmniMessageCreateSuccessResponseMessagesInner[]**](BulkOmniMessageCreateSuccessResponseMessagesInner.md) | List of responses for each Omnimessage. |
**messages** | [**\Messente\Api\Model\BulkOmniMessageCreateSuccessResponseMessagesInner[]**](BulkOmniMessageCreateSuccessResponseMessagesInner.md) | List of responses for each Omnimessage in the bulk. These can be errors or successful responses |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Loading

0 comments on commit 7803fd6

Please sign in to comment.