Skip to content

Commit 6926b84

Browse files
committed
Travis update: Mar 2023 (Build 718)
[skip ci]
1 parent b8d5339 commit 6926b84

5 files changed

Lines changed: 70 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 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: 2.0.1
4+
- PHP artifact version: 2.1.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

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": "2.0.1",
3+
"version": "2.1.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",

lib/Api/DeliveryReportApi.php

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getConfig()
125125
*
126126
* @throws \Messente\Api\ApiException on non-2xx response
127127
* @throws \InvalidArgumentException
128-
* @return \Messente\Api\Model\DeliveryReportResponse|\Messente\Api\Model\ErrorOmnichannel
128+
* @return \Messente\Api\Model\DeliveryReportResponse|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel
129129
*/
130130
public function retrieveDeliveryReport($omnimessageId)
131131
{
@@ -142,7 +142,7 @@ public function retrieveDeliveryReport($omnimessageId)
142142
*
143143
* @throws \Messente\Api\ApiException on non-2xx response
144144
* @throws \InvalidArgumentException
145-
* @return array of \Messente\Api\Model\DeliveryReportResponse|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
145+
* @return array of \Messente\Api\Model\DeliveryReportResponse|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
146146
*/
147147
public function retrieveDeliveryReportWithHttpInfo($omnimessageId)
148148
{
@@ -196,6 +196,18 @@ public function retrieveDeliveryReportWithHttpInfo($omnimessageId)
196196
$response->getStatusCode(),
197197
$response->getHeaders()
198198
];
199+
case 401:
200+
if ('\Messente\Api\Model\ErrorOmnichannel' === '\SplFileObject') {
201+
$content = $response->getBody(); //stream goes to serializer
202+
} else {
203+
$content = (string) $response->getBody();
204+
}
205+
206+
return [
207+
ObjectSerializer::deserialize($content, '\Messente\Api\Model\ErrorOmnichannel', []),
208+
$response->getStatusCode(),
209+
$response->getHeaders()
210+
];
199211
case 404:
200212
if ('\Messente\Api\Model\ErrorOmnichannel' === '\SplFileObject') {
201213
$content = $response->getBody(); //stream goes to serializer
@@ -233,6 +245,14 @@ public function retrieveDeliveryReportWithHttpInfo($omnimessageId)
233245
);
234246
$e->setResponseObject($data);
235247
break;
248+
case 401:
249+
$data = ObjectSerializer::deserialize(
250+
$e->getResponseBody(),
251+
'\Messente\Api\Model\ErrorOmnichannel',
252+
$e->getResponseHeaders()
253+
);
254+
$e->setResponseObject($data);
255+
break;
236256
case 404:
237257
$data = ObjectSerializer::deserialize(
238258
$e->getResponseBody(),

lib/Api/OmnimessageApi.php

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getConfig()
125125
*
126126
* @throws \Messente\Api\ApiException on non-2xx response
127127
* @throws \InvalidArgumentException
128-
* @return object|\Messente\Api\Model\ErrorOmnichannel
128+
* @return object|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel
129129
*/
130130
public function cancelScheduledMessage($omnimessageId)
131131
{
@@ -142,7 +142,7 @@ public function cancelScheduledMessage($omnimessageId)
142142
*
143143
* @throws \Messente\Api\ApiException on non-2xx response
144144
* @throws \InvalidArgumentException
145-
* @return array of object|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
145+
* @return array of object|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
146146
*/
147147
public function cancelScheduledMessageWithHttpInfo($omnimessageId)
148148
{
@@ -196,6 +196,18 @@ public function cancelScheduledMessageWithHttpInfo($omnimessageId)
196196
$response->getStatusCode(),
197197
$response->getHeaders()
198198
];
199+
case 401:
200+
if ('\Messente\Api\Model\ErrorOmnichannel' === '\SplFileObject') {
201+
$content = $response->getBody(); //stream goes to serializer
202+
} else {
203+
$content = (string) $response->getBody();
204+
}
205+
206+
return [
207+
ObjectSerializer::deserialize($content, '\Messente\Api\Model\ErrorOmnichannel', []),
208+
$response->getStatusCode(),
209+
$response->getHeaders()
210+
];
199211
case 404:
200212
if ('\Messente\Api\Model\ErrorOmnichannel' === '\SplFileObject') {
201213
$content = $response->getBody(); //stream goes to serializer
@@ -233,6 +245,14 @@ public function cancelScheduledMessageWithHttpInfo($omnimessageId)
233245
);
234246
$e->setResponseObject($data);
235247
break;
248+
case 401:
249+
$data = ObjectSerializer::deserialize(
250+
$e->getResponseBody(),
251+
'\Messente\Api\Model\ErrorOmnichannel',
252+
$e->getResponseHeaders()
253+
);
254+
$e->setResponseObject($data);
255+
break;
236256
case 404:
237257
$data = ObjectSerializer::deserialize(
238258
$e->getResponseBody(),
@@ -420,7 +440,7 @@ public function cancelScheduledMessageRequest($omnimessageId)
420440
*
421441
* @throws \Messente\Api\ApiException on non-2xx response
422442
* @throws \InvalidArgumentException
423-
* @return \Messente\Api\Model\OmniMessageCreateSuccessResponse|\Messente\Api\Model\ErrorOmnichannel
443+
* @return \Messente\Api\Model\OmniMessageCreateSuccessResponse|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel
424444
*/
425445
public function sendOmnimessage($omnimessage)
426446
{
@@ -437,7 +457,7 @@ public function sendOmnimessage($omnimessage)
437457
*
438458
* @throws \Messente\Api\ApiException on non-2xx response
439459
* @throws \InvalidArgumentException
440-
* @return array of \Messente\Api\Model\OmniMessageCreateSuccessResponse|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
460+
* @return array of \Messente\Api\Model\OmniMessageCreateSuccessResponse|\Messente\Api\Model\ErrorOmnichannel|\Messente\Api\Model\ErrorOmnichannel, HTTP status code, HTTP response headers (array of strings)
441461
*/
442462
public function sendOmnimessageWithHttpInfo($omnimessage)
443463
{
@@ -498,6 +518,18 @@ public function sendOmnimessageWithHttpInfo($omnimessage)
498518
$content = (string) $response->getBody();
499519
}
500520

521+
return [
522+
ObjectSerializer::deserialize($content, '\Messente\Api\Model\ErrorOmnichannel', []),
523+
$response->getStatusCode(),
524+
$response->getHeaders()
525+
];
526+
case 401:
527+
if ('\Messente\Api\Model\ErrorOmnichannel' === '\SplFileObject') {
528+
$content = $response->getBody(); //stream goes to serializer
529+
} else {
530+
$content = (string) $response->getBody();
531+
}
532+
501533
return [
502534
ObjectSerializer::deserialize($content, '\Messente\Api\Model\ErrorOmnichannel', []),
503535
$response->getStatusCode(),
@@ -536,6 +568,14 @@ public function sendOmnimessageWithHttpInfo($omnimessage)
536568
);
537569
$e->setResponseObject($data);
538570
break;
571+
case 401:
572+
$data = ObjectSerializer::deserialize(
573+
$e->getResponseBody(),
574+
'\Messente\Api\Model\ErrorOmnichannel',
575+
$e->getResponseHeaders()
576+
);
577+
$e->setResponseObject($data);
578+
break;
539579
}
540580
throw $e;
541581
}

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Configuration
9191
*
9292
* @var string
9393
*/
94-
protected $userAgent = 'OpenAPI-Generator/2.0.1/PHP';
94+
protected $userAgent = 'OpenAPI-Generator/2.1.0/PHP';
9595

9696
/**
9797
* Debug switch (default set to false)
@@ -400,7 +400,7 @@ public static function toDebugReport()
400400
$report .= ' OS: ' . php_uname() . PHP_EOL;
401401
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
402402
$report .= ' The version of the OpenAPI document: 2.0.0' . PHP_EOL;
403-
$report .= ' SDK Package Version: 2.0.1' . PHP_EOL;
403+
$report .= ' SDK Package Version: 2.1.0' . PHP_EOL;
404404
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
405405

406406
return $report;

0 commit comments

Comments
 (0)