diff --git a/composer.json b/composer.json index 99af2d0..e4b0c79 100644 --- a/composer.json +++ b/composer.json @@ -1,37 +1,41 @@ { - "name": "textmagic/textmagic-rest-php-v2", - "version": "2.0.1588", - "description": "", - "keywords": [ - "swagger", - "php", - "sdk", - "api" - ], - "homepage": "http://swagger.io", - "license": "proprietary", - "authors": [ - { - "name": "Swagger and contributors", - "homepage": "https://github.com/swagger-api/swagger-codegen" - } - ], - "require": { - "php": ">=5.5", - "ext-curl": "*", - "ext-json": "*", - "ext-mbstring": "*", - "guzzlehttp/guzzle": "^6.2" - }, - "require-dev": { - "phpunit/phpunit": "^4.8", - "squizlabs/php_codesniffer": "~2.6", - "friendsofphp/php-cs-fixer": "~2.12" - }, - "autoload": { - "psr-4": { "TextMagic\\" : "src/" } - }, - "autoload-dev": { - "psr-4": { "TextMagic\\" : "test/" } + "name": "textmagic/textmagic-rest-php-v2", + "version": "2.0.1588", + "description": "", + "keywords": [ + "swagger", + "php", + "sdk", + "api" + ], + "homepage": "http://swagger.io", + "license": "proprietary", + "authors": [ + { + "name": "Swagger and contributors", + "homepage": "https://github.com/swagger-api/swagger-codegen" } + ], + "require": { + "php": ">=7.4", + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/guzzle": "^7.4.2" + }, + "require-dev": { + "phpunit/phpunit": "^4.8", + "squizlabs/php_codesniffer": "~2.6", + "friendsofphp/php-cs-fixer": "^2.19.3" + }, + "autoload": { + "psr-4": { + "TextMagic\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "TextMagic\\": "test/" + } + } } diff --git a/src/Api/TextMagicApi.php b/src/Api/TextMagicApi.php index 9681fe0..72fc105 100644 --- a/src/Api/TextMagicApi.php +++ b/src/Api/TextMagicApi.php @@ -369,7 +369,7 @@ protected function assignContactsToListRequest($assignContactsToListInputObject, } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -389,7 +389,7 @@ protected function assignContactsToListRequest($assignContactsToListInputObject, $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -661,7 +661,7 @@ protected function blockContactRequest($blockContactInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -681,7 +681,7 @@ protected function blockContactRequest($blockContactInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -916,7 +916,7 @@ protected function buyDedicatedNumberRequest($buyDedicatedNumberInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -936,7 +936,7 @@ protected function buyDedicatedNumberRequest($buyDedicatedNumberInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1160,7 +1160,7 @@ protected function cancelVerificationRequest($verifyId) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -1180,7 +1180,7 @@ protected function cancelVerificationRequest($verifyId) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1407,7 +1407,7 @@ protected function checkPhoneVerificationCodeTFARequest($checkPhoneVerificationC } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -1427,7 +1427,7 @@ protected function checkPhoneVerificationCodeTFARequest($checkPhoneVerificationC $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1718,7 +1718,7 @@ protected function clearAndAssignContactsToListRequest($clearAndAssignContactsTo } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -1738,7 +1738,7 @@ protected function clearAndAssignContactsToListRequest($clearAndAssignContactsTo $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1965,7 +1965,7 @@ protected function closeChatsBulkRequest($closeChatsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -1985,7 +1985,7 @@ protected function closeChatsBulkRequest($closeChatsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -2190,7 +2190,7 @@ protected function closeReadChatsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -2210,7 +2210,7 @@ protected function closeReadChatsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -2442,7 +2442,7 @@ protected function closeSubaccountRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -2462,7 +2462,7 @@ protected function closeSubaccountRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -2726,7 +2726,7 @@ protected function createContactRequest($createContactInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -2746,7 +2746,7 @@ protected function createContactRequest($createContactInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -3037,7 +3037,7 @@ protected function createContactNoteRequest($createContactNoteInputObject, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -3057,7 +3057,7 @@ protected function createContactNoteRequest($createContactNoteInputObject, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -3329,7 +3329,7 @@ protected function createCustomFieldRequest($createCustomFieldInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -3349,7 +3349,7 @@ protected function createCustomFieldRequest($createCustomFieldInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -3613,7 +3613,7 @@ protected function createListRequest($createListInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -3633,7 +3633,7 @@ protected function createListRequest($createListInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -3889,7 +3889,7 @@ protected function createTemplateRequest($createTemplateInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -3909,7 +3909,7 @@ protected function createTemplateRequest($createTemplateInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -4106,7 +4106,7 @@ protected function deleteAllContactsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -4126,7 +4126,7 @@ protected function deleteAllContactsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -4331,7 +4331,7 @@ protected function deleteAllOutboundMessagesRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -4351,7 +4351,7 @@ protected function deleteAllOutboundMessagesRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -4556,7 +4556,7 @@ protected function deleteAvatarRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -4576,7 +4576,7 @@ protected function deleteAvatarRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -4822,7 +4822,7 @@ protected function deleteChatMessagesRequest($deleteChatMessagesBulkInputObject, } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -4842,7 +4842,7 @@ protected function deleteChatMessagesRequest($deleteChatMessagesBulkInputObject, $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -5069,7 +5069,7 @@ protected function deleteChatsBulkRequest($deleteChatsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -5089,7 +5089,7 @@ protected function deleteChatsBulkRequest($deleteChatsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -5321,7 +5321,7 @@ protected function deleteContactRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -5341,7 +5341,7 @@ protected function deleteContactRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -5573,7 +5573,7 @@ protected function deleteContactAvatarRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -5593,7 +5593,7 @@ protected function deleteContactAvatarRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -5825,7 +5825,7 @@ protected function deleteContactNoteRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -5845,7 +5845,7 @@ protected function deleteContactNoteRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -6099,7 +6099,7 @@ protected function deleteContactNotesBulkRequest($id, $deleteContactNotesBulkInp } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -6119,7 +6119,7 @@ protected function deleteContactNotesBulkRequest($id, $deleteContactNotesBulkInp $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -6354,7 +6354,7 @@ protected function deleteContactsByIdsRequest($deleteContactsByIdsInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -6374,7 +6374,7 @@ protected function deleteContactsByIdsRequest($deleteContactsByIdsInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -6620,7 +6620,7 @@ protected function deleteContactsFromListRequest($deleteContacsFromListObject, $ } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -6640,7 +6640,7 @@ protected function deleteContactsFromListRequest($deleteContacsFromListObject, $ $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -6872,7 +6872,7 @@ protected function deleteCustomFieldRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -6892,7 +6892,7 @@ protected function deleteCustomFieldRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -7124,7 +7124,7 @@ protected function deleteDedicatedNumberRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -7144,7 +7144,7 @@ protected function deleteDedicatedNumberRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -7376,7 +7376,7 @@ protected function deleteInboundMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -7396,7 +7396,7 @@ protected function deleteInboundMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -7623,7 +7623,7 @@ protected function deleteInboundMessagesBulkRequest($deleteInboundMessagesBulkIn } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -7643,7 +7643,7 @@ protected function deleteInboundMessagesBulkRequest($deleteInboundMessagesBulkIn $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -7875,7 +7875,7 @@ protected function deleteListRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -7895,7 +7895,7 @@ protected function deleteListRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -8127,7 +8127,7 @@ protected function deleteListAvatarRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -8147,7 +8147,7 @@ protected function deleteListAvatarRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -8401,7 +8401,7 @@ protected function deleteListContactsBulkRequest($deleteListContactsBulkInputObj } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -8421,7 +8421,7 @@ protected function deleteListContactsBulkRequest($deleteListContactsBulkInputObj $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -8656,7 +8656,7 @@ protected function deleteListsBulkRequest($deleteListsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -8676,7 +8676,7 @@ protected function deleteListsBulkRequest($deleteListsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -8908,7 +8908,7 @@ protected function deleteMessageSessionRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -8928,7 +8928,7 @@ protected function deleteMessageSessionRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -9147,7 +9147,7 @@ protected function deleteMessageSessionsBulkRequest($deleteMessageSessionsBulkIn } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -9167,7 +9167,7 @@ protected function deleteMessageSessionsBulkRequest($deleteMessageSessionsBulkIn $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -9399,7 +9399,7 @@ protected function deleteOutboundMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -9419,7 +9419,7 @@ protected function deleteOutboundMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -9646,7 +9646,7 @@ protected function deleteOutboundMessagesBulkRequest($deleteOutboundMessagesBulk } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -9666,7 +9666,7 @@ protected function deleteOutboundMessagesBulkRequest($deleteOutboundMessagesBulk $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -9898,7 +9898,7 @@ protected function deleteScheduledMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -9918,7 +9918,7 @@ protected function deleteScheduledMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -10145,7 +10145,7 @@ protected function deleteScheduledMessagesBulkRequest($deleteScheduledMessagesBu } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -10165,7 +10165,7 @@ protected function deleteScheduledMessagesBulkRequest($deleteScheduledMessagesBu $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -10397,7 +10397,7 @@ protected function deleteSenderIdRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -10417,7 +10417,7 @@ protected function deleteSenderIdRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -10649,7 +10649,7 @@ protected function deleteTemplateRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -10669,7 +10669,7 @@ protected function deleteTemplateRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -10904,7 +10904,7 @@ protected function deleteTemplatesBulkRequest($deleteTemplatesBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -10924,7 +10924,7 @@ protected function deleteTemplatesBulkRequest($deleteTemplatesBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -11202,7 +11202,7 @@ protected function doCarrierLookupRequest($phone, $country = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -11222,7 +11222,7 @@ protected function doCarrierLookupRequest($phone, $country = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -11499,7 +11499,7 @@ protected function doEmailLookupRequest($email) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -11519,7 +11519,7 @@ protected function doEmailLookupRequest($email) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -11779,7 +11779,7 @@ protected function getAllBulkSessionsRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -11799,7 +11799,7 @@ protected function getAllBulkSessionsRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -12095,7 +12095,7 @@ protected function getAllChatsRequest($status = null, $page = '1', $limit = '10' } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -12115,7 +12115,7 @@ protected function getAllChatsRequest($status = null, $page = '1', $limit = '10' $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -12393,7 +12393,7 @@ protected function getAllInboundMessagesRequest($page = '1', $limit = '10', $ord } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -12413,7 +12413,7 @@ protected function getAllInboundMessagesRequest($page = '1', $limit = '10', $ord $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -12673,7 +12673,7 @@ protected function getAllMessageSessionsRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -12693,7 +12693,7 @@ protected function getAllMessageSessionsRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -12970,7 +12970,7 @@ protected function getAllOutboundMessagesRequest($page = '1', $limit = '10', $la } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -12990,7 +12990,7 @@ protected function getAllOutboundMessagesRequest($page = '1', $limit = '10', $la $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -13277,7 +13277,7 @@ protected function getAllScheduledMessagesRequest($page = '1', $limit = '10', $s } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -13297,7 +13297,7 @@ protected function getAllScheduledMessagesRequest($page = '1', $limit = '10', $s $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -13557,7 +13557,7 @@ protected function getAllTemplatesRequest($page = null, $limit = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -13577,7 +13577,7 @@ protected function getAllTemplatesRequest($page = null, $limit = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -13868,7 +13868,7 @@ protected function getAvailableDedicatedNumbersRequest($country, $prefix = null, } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -13888,7 +13888,7 @@ protected function getAvailableDedicatedNumbersRequest($country, $prefix = null, $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -14139,7 +14139,7 @@ protected function getAvailableSenderSettingOptionsRequest($country = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -14159,7 +14159,7 @@ protected function getAvailableSenderSettingOptionsRequest($country = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -14401,7 +14401,7 @@ protected function getBalanceNotificationOptionsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -14421,7 +14421,7 @@ protected function getBalanceNotificationOptionsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -14663,7 +14663,7 @@ protected function getBalanceNotificationSettingsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -14683,7 +14683,7 @@ protected function getBalanceNotificationSettingsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -14978,7 +14978,7 @@ protected function getBlockedContactsRequest($page = '1', $limit = '10', $query } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -14998,7 +14998,7 @@ protected function getBlockedContactsRequest($page = '1', $limit = '10', $query $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -15267,7 +15267,7 @@ protected function getBulkSessionRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -15287,7 +15287,7 @@ protected function getBulkSessionRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -15529,7 +15529,7 @@ protected function getCallbackSettingsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -15549,7 +15549,7 @@ protected function getCallbackSettingsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -15818,7 +15818,7 @@ protected function getChatRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -15838,7 +15838,7 @@ protected function getChatRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -16125,7 +16125,7 @@ protected function getChatByPhoneRequest($phone, $upsert = '0', $reopen = '0') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -16145,7 +16145,7 @@ protected function getChatByPhoneRequest($phone, $upsert = '0', $reopen = '0') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -16461,7 +16461,7 @@ protected function getChatMessagesRequest($id, $page = '1', $limit = '10', $quer } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -16481,7 +16481,7 @@ protected function getChatMessagesRequest($id, $page = '1', $limit = '10', $quer $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -16750,7 +16750,7 @@ protected function getContactRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -16770,7 +16770,7 @@ protected function getContactRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -17039,7 +17039,7 @@ protected function getContactByPhoneRequest($phone) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -17059,7 +17059,7 @@ protected function getContactByPhoneRequest($phone) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -17324,7 +17324,7 @@ protected function getContactIfBlockedRequest($phone) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -17344,7 +17344,7 @@ protected function getContactIfBlockedRequest($phone) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -17613,7 +17613,7 @@ protected function getContactImportSessionProgressRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -17633,7 +17633,7 @@ protected function getContactImportSessionProgressRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -17902,7 +17902,7 @@ protected function getContactNoteRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -17922,7 +17922,7 @@ protected function getContactNoteRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -18209,7 +18209,7 @@ protected function getContactNotesRequest($id, $page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -18229,7 +18229,7 @@ protected function getContactNotesRequest($id, $page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -18516,7 +18516,7 @@ protected function getContactsRequest($page = '1', $limit = '10', $shared = '0', } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -18536,7 +18536,7 @@ protected function getContactsRequest($page = '1', $limit = '10', $shared = '0', $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -18841,7 +18841,7 @@ protected function getContactsByListIdRequest($id, $page = '1', $limit = '10', $ } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -18861,7 +18861,7 @@ protected function getContactsByListIdRequest($id, $page = '1', $limit = '10', $ $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -19111,7 +19111,7 @@ protected function getCurrentUserRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -19131,7 +19131,7 @@ protected function getCurrentUserRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -19392,7 +19392,7 @@ protected function getCustomFieldRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -19412,7 +19412,7 @@ protected function getCustomFieldRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -19672,7 +19672,7 @@ protected function getCustomFieldsRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -19692,7 +19692,7 @@ protected function getCustomFieldsRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -19961,7 +19961,7 @@ protected function getDedicatedNumberRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -19981,7 +19981,7 @@ protected function getDedicatedNumberRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -20250,7 +20250,7 @@ protected function getFavoritesRequest($page = '1', $limit = '10', $query = null } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -20270,7 +20270,7 @@ protected function getFavoritesRequest($page = '1', $limit = '10', $query = null $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -20539,7 +20539,7 @@ protected function getInboundMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -20559,7 +20559,7 @@ protected function getInboundMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -20801,7 +20801,7 @@ protected function getInboundMessagesNotificationSettingsRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -20821,7 +20821,7 @@ protected function getInboundMessagesNotificationSettingsRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -21089,7 +21089,7 @@ protected function getInvoicesRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -21109,7 +21109,7 @@ protected function getInvoicesRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -21378,7 +21378,7 @@ protected function getListRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -21398,7 +21398,7 @@ protected function getListRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -21667,7 +21667,7 @@ protected function getListContactsIdsRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -21687,7 +21687,7 @@ protected function getListContactsIdsRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -21991,7 +21991,7 @@ protected function getListsRequest($page = '1', $limit = '10', $orderBy = 'id', } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -22011,7 +22011,7 @@ protected function getListsRequest($page = '1', $limit = '10', $orderBy = 'id', $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -22298,7 +22298,7 @@ protected function getListsOfContactRequest($id, $page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -22318,7 +22318,7 @@ protected function getListsOfContactRequest($id, $page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -22721,7 +22721,7 @@ protected function getMessagePreviewRequest($text = null, $templateId = null, $s } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -22741,7 +22741,7 @@ protected function getMessagePreviewRequest($text = null, $templateId = null, $s $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -23153,7 +23153,7 @@ protected function getMessagePriceRequest($includeBlocked = '0', $text = null, $ } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -23173,7 +23173,7 @@ protected function getMessagePriceRequest($includeBlocked = '0', $text = null, $ $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -23442,7 +23442,7 @@ protected function getMessageSessionRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -23462,7 +23462,7 @@ protected function getMessageSessionRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -23740,7 +23740,7 @@ protected function getMessageSessionStatRequest($id, $includeDeleted = '0') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -23760,7 +23760,7 @@ protected function getMessageSessionStatRequest($id, $includeDeleted = '0') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -24057,7 +24057,7 @@ protected function getMessagesBySessionIdRequest($id, $page = '1', $limit = '10' } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -24077,7 +24077,7 @@ protected function getMessagesBySessionIdRequest($id, $page = '1', $limit = '10' $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -24319,7 +24319,7 @@ protected function getMessagingCountersRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -24339,7 +24339,7 @@ protected function getMessagingCountersRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -24608,7 +24608,7 @@ protected function getOutboundMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -24628,7 +24628,7 @@ protected function getOutboundMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -24923,7 +24923,7 @@ protected function getOutboundMessagesHistoryRequest($limit = '10', $lastId = nu } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -24943,7 +24943,7 @@ protected function getOutboundMessagesHistoryRequest($limit = '10', $lastId = nu $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -25212,7 +25212,7 @@ protected function getScheduledMessageRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -25232,7 +25232,7 @@ protected function getScheduledMessageRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -25501,7 +25501,7 @@ protected function getSenderIdRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -25521,7 +25521,7 @@ protected function getSenderIdRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -25781,7 +25781,7 @@ protected function getSenderIdsRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -25801,7 +25801,7 @@ protected function getSenderIdsRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -26052,7 +26052,7 @@ protected function getSenderSettingsRequest($country = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -26072,7 +26072,7 @@ protected function getSenderSettingsRequest($country = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -26358,7 +26358,7 @@ protected function getSpendingStatRequest($page = '1', $limit = '10', $start = n } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -26378,7 +26378,7 @@ protected function getSpendingStatRequest($page = '1', $limit = '10', $start = n $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -26647,7 +26647,7 @@ protected function getSubaccountRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -26667,7 +26667,7 @@ protected function getSubaccountRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -26927,7 +26927,7 @@ protected function getSubaccountsRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -26947,7 +26947,7 @@ protected function getSubaccountsRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -27229,7 +27229,7 @@ protected function getSubaccountsWithTokensRequest($getSubaccountsWithTokensInpu } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -27249,7 +27249,7 @@ protected function getSubaccountsWithTokensRequest($getSubaccountsWithTokensInpu $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -27518,7 +27518,7 @@ protected function getTemplateRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -27538,7 +27538,7 @@ protected function getTemplateRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -27780,7 +27780,7 @@ protected function getUnreadMessagesTotalRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -27800,7 +27800,7 @@ protected function getUnreadMessagesTotalRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -28069,7 +28069,7 @@ protected function getUnsubscribedContactRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -28089,7 +28089,7 @@ protected function getUnsubscribedContactRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -28349,7 +28349,7 @@ protected function getUnsubscribersRequest($page = '1', $limit = '10') } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -28369,7 +28369,7 @@ protected function getUnsubscribersRequest($page = '1', $limit = '10') $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -28646,7 +28646,7 @@ protected function getUserDedicatedNumbersRequest($page = '1', $limit = '10', $s } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -28666,7 +28666,7 @@ protected function getUserDedicatedNumbersRequest($page = '1', $limit = '10', $s $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -28973,7 +28973,7 @@ protected function importContactsRequest($file, $column, $listId = null, $listNa } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -28993,7 +28993,7 @@ protected function importContactsRequest($file, $column, $listId = null, $listNa $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -29228,7 +29228,7 @@ protected function inviteSubaccountRequest($inviteSubaccountInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -29248,7 +29248,7 @@ protected function inviteSubaccountRequest($inviteSubaccountInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -29475,7 +29475,7 @@ protected function markChatsReadBulkRequest($markChatsReadBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -29495,7 +29495,7 @@ protected function markChatsReadBulkRequest($markChatsReadBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -29722,7 +29722,7 @@ protected function markChatsUnreadBulkRequest($markChatsUnreadBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -29742,7 +29742,7 @@ protected function markChatsUnreadBulkRequest($markChatsUnreadBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -30014,7 +30014,7 @@ protected function muteChatRequest($muteChatInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -30034,7 +30034,7 @@ protected function muteChatRequest($muteChatInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -30261,7 +30261,7 @@ protected function muteChatsBulkRequest($muteChatsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -30281,7 +30281,7 @@ protected function muteChatsBulkRequest($muteChatsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -30523,7 +30523,7 @@ protected function pingRequest() } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -30543,7 +30543,7 @@ protected function pingRequest() $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -30770,7 +30770,7 @@ protected function reopenChatsBulkRequest($reopenChatsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -30790,7 +30790,7 @@ protected function reopenChatsBulkRequest($reopenChatsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -31054,7 +31054,7 @@ protected function requestNewSubaccountTokenRequest($requestNewSubaccountTokenIn } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -31074,7 +31074,7 @@ protected function requestNewSubaccountTokenRequest($requestNewSubaccountTokenIn $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -31338,7 +31338,7 @@ protected function requestSenderIdRequest($requestSenderIdInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -31358,7 +31358,7 @@ protected function requestSenderIdRequest($requestSenderIdInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -31627,7 +31627,7 @@ protected function searchChatsRequest($page = '1', $limit = '10', $query = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -31647,7 +31647,7 @@ protected function searchChatsRequest($page = '1', $limit = '10', $query = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -31920,7 +31920,7 @@ protected function searchChatsByIdsRequest($page = '1', $limit = '10', $ids = nu } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -31940,7 +31940,7 @@ protected function searchChatsByIdsRequest($page = '1', $limit = '10', $ids = nu $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -32218,7 +32218,7 @@ protected function searchChatsByReceipentRequest($page = '1', $limit = '10', $qu } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -32238,7 +32238,7 @@ protected function searchChatsByReceipentRequest($page = '1', $limit = '10', $qu $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -32592,7 +32592,7 @@ protected function searchContactsRequest($page = '1', $limit = '10', $shared = ' } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -32612,7 +32612,7 @@ protected function searchContactsRequest($page = '1', $limit = '10', $shared = ' $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -32929,7 +32929,7 @@ protected function searchInboundMessagesRequest($page = '1', $limit = '10', $ids } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -32949,7 +32949,7 @@ protected function searchInboundMessagesRequest($page = '1', $limit = '10', $ids $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -33271,7 +33271,7 @@ protected function searchListsRequest($page = '1', $limit = '10', $ids = null, $ } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -33291,7 +33291,7 @@ protected function searchListsRequest($page = '1', $limit = '10', $ids = null, $ $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -33617,7 +33617,7 @@ protected function searchOutboundMessagesRequest($page = '1', $limit = '10', $la } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -33637,7 +33637,7 @@ protected function searchOutboundMessagesRequest($page = '1', $limit = '10', $la $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -33954,7 +33954,7 @@ protected function searchScheduledMessagesRequest($page = '1', $limit = '10', $q } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -33974,7 +33974,7 @@ protected function searchScheduledMessagesRequest($page = '1', $limit = '10', $q $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -34261,7 +34261,7 @@ protected function searchTemplatesRequest($page = '1', $limit = '10', $ids = nul } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -34281,7 +34281,7 @@ protected function searchTemplatesRequest($page = '1', $limit = '10', $ids = nul $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -34545,7 +34545,7 @@ protected function sendMessageRequest($sendMessageInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -34565,7 +34565,7 @@ protected function sendMessageRequest($sendMessageInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -34829,7 +34829,7 @@ protected function sendPhoneVerificationCodeTFARequest($sendPhoneVerificationCod } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -34849,7 +34849,7 @@ protected function sendPhoneVerificationCodeTFARequest($sendPhoneVerificationCod $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -35113,7 +35113,7 @@ protected function setChatStatusRequest($setChatStatusInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -35133,7 +35133,7 @@ protected function setChatStatusRequest($setChatStatusInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -35368,7 +35368,7 @@ protected function unblockContactRequest($unblockContactInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -35388,7 +35388,7 @@ protected function unblockContactRequest($unblockContactInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -35623,7 +35623,7 @@ protected function unblockContactsBulkRequest($unblockContactsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -35643,7 +35643,7 @@ protected function unblockContactsBulkRequest($unblockContactsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -35870,7 +35870,7 @@ protected function unmuteChatsBulkRequest($unmuteChatsBulkInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -35890,7 +35890,7 @@ protected function unmuteChatsBulkRequest($unmuteChatsBulkInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -36162,7 +36162,7 @@ protected function unsubscribeContactRequest($unsubscribeContactInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -36182,7 +36182,7 @@ protected function unsubscribeContactRequest($unsubscribeContactInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -36409,7 +36409,7 @@ protected function updateBalanceNotificationSettingsRequest($updateBalanceNotifi } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -36429,7 +36429,7 @@ protected function updateBalanceNotificationSettingsRequest($updateBalanceNotifi $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -36656,7 +36656,7 @@ protected function updateCallbackSettingsRequest($updateCallbackSettingsInputObj } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -36676,7 +36676,7 @@ protected function updateCallbackSettingsRequest($updateCallbackSettingsInputObj $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -36903,7 +36903,7 @@ protected function updateChatDesktopNotificationSettingsRequest($updateChatDeskt } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -36923,7 +36923,7 @@ protected function updateChatDesktopNotificationSettingsRequest($updateChatDeskt $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -37214,7 +37214,7 @@ protected function updateContactRequest($updateContactInputObject, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -37234,7 +37234,7 @@ protected function updateContactRequest($updateContactInputObject, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -37525,7 +37525,7 @@ protected function updateContactNoteRequest($updateContactNoteInputObject, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -37545,7 +37545,7 @@ protected function updateContactNoteRequest($updateContactNoteInputObject, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -37809,7 +37809,7 @@ protected function updateCurrentUserRequest($updateCurrentUserInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -37829,7 +37829,7 @@ protected function updateCurrentUserRequest($updateCurrentUserInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -38120,7 +38120,7 @@ protected function updateCustomFieldRequest($updateCustomFieldInputObject, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -38140,7 +38140,7 @@ protected function updateCustomFieldRequest($updateCustomFieldInputObject, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -38431,7 +38431,7 @@ protected function updateCustomFieldValueRequest($updateCustomFieldValueInputObj } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -38451,7 +38451,7 @@ protected function updateCustomFieldValueRequest($updateCustomFieldValueInputObj $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -38678,7 +38678,7 @@ protected function updateInboundMessagesNotificationSettingsRequest($updateInbou } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -38698,7 +38698,7 @@ protected function updateInboundMessagesNotificationSettingsRequest($updateInbou $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -38959,7 +38959,7 @@ protected function updateListRequest($id, $updateListObject = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -38979,7 +38979,7 @@ protected function updateListRequest($id, $updateListObject = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -39214,7 +39214,7 @@ protected function updateSenderSettingRequest($updateSenderSettingInputObject) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -39234,7 +39234,7 @@ protected function updateSenderSettingRequest($updateSenderSettingInputObject) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -39517,7 +39517,7 @@ protected function updateTemplateRequest($updateTemplateInputObject, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -39537,7 +39537,7 @@ protected function updateTemplateRequest($updateTemplateInputObject, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -39766,7 +39766,7 @@ protected function uploadAvatarRequest($image) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -39786,7 +39786,7 @@ protected function uploadAvatarRequest($image) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -40079,7 +40079,7 @@ protected function uploadContactAvatarRequest($image, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -40099,7 +40099,7 @@ protected function uploadContactAvatarRequest($image, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -40392,7 +40392,7 @@ protected function uploadListAvatarRequest($image, $id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -40412,7 +40412,7 @@ protected function uploadListAvatarRequest($image, $id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -40678,7 +40678,7 @@ protected function uploadMessageAttachmentRequest($file) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -40698,7 +40698,7 @@ protected function uploadMessageAttachmentRequest($file) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -40964,7 +40964,7 @@ protected function uploadMessageMMSAttachmentRequest($file) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = http_build_query($formParams); } } @@ -40984,7 +40984,7 @@ protected function uploadMessageMMSAttachmentRequest($file) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = http_build_query($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),