diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 68ddd02..187d492 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -18,6 +18,8 @@ docs/Model/ApplicationResult.md
docs/Model/AvailableNumber.md
docs/Model/AvailableNumberList.md
docs/Model/BargeInReason.md
+docs/Model/BlobListResponse.md
+docs/Model/BlobResult.md
docs/Model/BuyIncomingNumberRequest.md
docs/Model/CallControlWebhook.md
docs/Model/CallDirection.md
@@ -37,6 +39,7 @@ docs/Model/ConferenceRecordingStatusWebhook.md
docs/Model/ConferenceResult.md
docs/Model/ConferenceStatus.md
docs/Model/ConferenceStatusWebhook.md
+docs/Model/CreateBlobRequest.md
docs/Model/CreateConference.md
docs/Model/CreateConferenceRequest.md
docs/Model/CreateConferenceWebhook.md
@@ -82,6 +85,7 @@ docs/Model/MessageResult.md
docs/Model/MessageStatus.md
docs/Model/MessageStatusWebhook.md
docs/Model/MessagesList.md
+docs/Model/ModifyBlobRequest.md
docs/Model/MutableResourceModel.md
docs/Model/OutDial.md
docs/Model/OutDialApiConnectWebhook.md
@@ -92,6 +96,7 @@ docs/Model/Park.md
docs/Model/Pause.md
docs/Model/PerclCommand.md
docs/Model/PerclScript.md
+docs/Model/PlatformError.md
docs/Model/Play.md
docs/Model/PlayBeep.md
docs/Model/PlayEarlyMedia.md
@@ -112,6 +117,7 @@ docs/Model/RedirectWebhook.md
docs/Model/Reject.md
docs/Model/RemoveFromConference.md
docs/Model/RemoveFromQueueNotificationWebhook.md
+docs/Model/ReplaceBlobRequest.md
docs/Model/RequestType.md
docs/Model/SMSTenDLCBrand.md
docs/Model/SMSTenDLCBrandAltBusinessIdType.md
@@ -139,6 +145,8 @@ docs/Model/Sms.md
docs/Model/StartRecordCall.md
docs/Model/TFN.md
docs/Model/TFNCampaign.md
+docs/Model/TTSEngine.md
+docs/Model/TTSEngineName.md
docs/Model/TerminateConference.md
docs/Model/TranscribeReason.md
docs/Model/TranscribeTermReason.md
@@ -171,6 +179,8 @@ lib/Model/ApplicationResult.php
lib/Model/AvailableNumber.php
lib/Model/AvailableNumberList.php
lib/Model/BargeInReason.php
+lib/Model/BlobListResponse.php
+lib/Model/BlobResult.php
lib/Model/BuyIncomingNumberRequest.php
lib/Model/CallControlWebhook.php
lib/Model/CallDirection.php
@@ -190,6 +200,7 @@ lib/Model/ConferenceRecordingStatusWebhook.php
lib/Model/ConferenceResult.php
lib/Model/ConferenceStatus.php
lib/Model/ConferenceStatusWebhook.php
+lib/Model/CreateBlobRequest.php
lib/Model/CreateConference.php
lib/Model/CreateConferenceRequest.php
lib/Model/CreateConferenceWebhook.php
@@ -236,6 +247,7 @@ lib/Model/MessageStatus.php
lib/Model/MessageStatusWebhook.php
lib/Model/MessagesList.php
lib/Model/ModelInterface.php
+lib/Model/ModifyBlobRequest.php
lib/Model/MutableResourceModel.php
lib/Model/OutDial.php
lib/Model/OutDialApiConnectWebhook.php
@@ -246,6 +258,7 @@ lib/Model/Park.php
lib/Model/Pause.php
lib/Model/PerclCommand.php
lib/Model/PerclScript.php
+lib/Model/PlatformError.php
lib/Model/Play.php
lib/Model/PlayBeep.php
lib/Model/PlayEarlyMedia.php
@@ -266,6 +279,7 @@ lib/Model/RedirectWebhook.php
lib/Model/Reject.php
lib/Model/RemoveFromConference.php
lib/Model/RemoveFromQueueNotificationWebhook.php
+lib/Model/ReplaceBlobRequest.php
lib/Model/RequestType.php
lib/Model/SMSTenDLCBrand.php
lib/Model/SMSTenDLCBrandAltBusinessIdType.php
@@ -293,6 +307,8 @@ lib/Model/Sms.php
lib/Model/StartRecordCall.php
lib/Model/TFN.php
lib/Model/TFNCampaign.php
+lib/Model/TTSEngine.php
+lib/Model/TTSEngineName.php
lib/Model/TerminateConference.php
lib/Model/TranscribeReason.php
lib/Model/TranscribeTermReason.php
@@ -323,6 +339,8 @@ test/Model/ApplicationResultTest.php
test/Model/AvailableNumberListTest.php
test/Model/AvailableNumberTest.php
test/Model/BargeInReasonTest.php
+test/Model/BlobListResponseTest.php
+test/Model/BlobResultTest.php
test/Model/BuyIncomingNumberRequestTest.php
test/Model/CallControlWebhookTest.php
test/Model/CallDirectionTest.php
@@ -342,6 +360,7 @@ test/Model/ConferenceRecordingStatusWebhookTest.php
test/Model/ConferenceResultTest.php
test/Model/ConferenceStatusTest.php
test/Model/ConferenceStatusWebhookTest.php
+test/Model/CreateBlobRequestTest.php
test/Model/CreateConferenceRequestTest.php
test/Model/CreateConferenceTest.php
test/Model/CreateConferenceWebhookTest.php
@@ -387,6 +406,7 @@ test/Model/MessageResultTest.php
test/Model/MessageStatusTest.php
test/Model/MessageStatusWebhookTest.php
test/Model/MessagesListTest.php
+test/Model/ModifyBlobRequestTest.php
test/Model/MutableResourceModelTest.php
test/Model/OutDialApiConnectWebhookTest.php
test/Model/OutDialConnectWebhookTest.php
@@ -397,6 +417,7 @@ test/Model/ParkTest.php
test/Model/PauseTest.php
test/Model/PerclCommandTest.php
test/Model/PerclScriptTest.php
+test/Model/PlatformErrorTest.php
test/Model/PlayBeepTest.php
test/Model/PlayEarlyMediaTest.php
test/Model/PlayTest.php
@@ -417,6 +438,7 @@ test/Model/RedirectWebhookTest.php
test/Model/RejectTest.php
test/Model/RemoveFromConferenceTest.php
test/Model/RemoveFromQueueNotificationWebhookTest.php
+test/Model/ReplaceBlobRequestTest.php
test/Model/RequestTypeTest.php
test/Model/SMSTenDLCBrandAltBusinessIdTypeTest.php
test/Model/SMSTenDLCBrandEntityTypeTest.php
@@ -444,6 +466,8 @@ test/Model/SmsTest.php
test/Model/StartRecordCallTest.php
test/Model/TFNCampaignTest.php
test/Model/TFNTest.php
+test/Model/TTSEngineNameTest.php
+test/Model/TTSEngineTest.php
test/Model/TerminateConferenceTest.php
test/Model/TranscribeReasonTest.php
test/Model/TranscribeTermReasonTest.php
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03f1290..b344bb8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,15 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
None
+
+
+## [5.3.0] - 2025-10-21
+
+### Added
+
+- Add models for new TTS models and engine setup
+- Add models and default api methods for Blob API
+
## [5.2.0] - 2025-09-23
diff --git a/README.md b/README.md
index dfe54bf..6f5e9d8 100644
--- a/README.md
+++ b/README.md
@@ -125,12 +125,14 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**createAConference**](docs/Api/DefaultApi.md#createaconference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference
*DefaultApi* | [**createAQueue**](docs/Api/DefaultApi.md#createaqueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue
*DefaultApi* | [**createAnApplication**](docs/Api/DefaultApi.md#createanapplication) | **POST** /Accounts/{accountId}/Applications | Create an application
+*DefaultApi* | [**createBlob**](docs/Api/DefaultApi.md#createblob) | **POST** /Accounts/{accountId}/Blobs | Create a Blob
*DefaultApi* | [**createExport**](docs/Api/DefaultApi.md#createexport) | **POST** /Accounts/{accountId}/Exports | Create an Export
*DefaultApi* | [**createKnowledgeBaseCompletion**](docs/Api/DefaultApi.md#createknowledgebasecompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base
*DefaultApi* | [**deleteARecording**](docs/Api/DefaultApi.md#deletearecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording
*DefaultApi* | [**deleteAnApplication**](docs/Api/DefaultApi.md#deleteanapplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application
*DefaultApi* | [**deleteAnExport**](docs/Api/DefaultApi.md#deleteanexport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export
*DefaultApi* | [**deleteAnIncomingNumber**](docs/Api/DefaultApi.md#deleteanincomingnumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number
+*DefaultApi* | [**deleteBlob**](docs/Api/DefaultApi.md#deleteblob) | **DELETE** /Accounts/{accountId}/Blobs/{blobId} | Delete Blob
*DefaultApi* | [**dequeueAMember**](docs/Api/DefaultApi.md#dequeueamember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member
*DefaultApi* | [**dequeueHeadMember**](docs/Api/DefaultApi.md#dequeueheadmember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member
*DefaultApi* | [**downloadARecordingFile**](docs/Api/DefaultApi.md#downloadarecordingfile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File
@@ -147,6 +149,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**getAnExport**](docs/Api/DefaultApi.md#getanexport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export
*DefaultApi* | [**getAnIncomingNumber**](docs/Api/DefaultApi.md#getanincomingnumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number
*DefaultApi* | [**getAnSmsMessage**](docs/Api/DefaultApi.md#getansmsmessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message
+*DefaultApi* | [**getBlob**](docs/Api/DefaultApi.md#getblob) | **GET** /Accounts/{accountId}/Blobs/{blobId} | Get Blob
*DefaultApi* | [**getHeadMember**](docs/Api/DefaultApi.md#getheadmember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member
*DefaultApi* | [**getTenDLCSmsBrand**](docs/Api/DefaultApi.md#gettendlcsmsbrand) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands/{brandId} | Get a 10DLC SMS Brand
*DefaultApi* | [**getTenDLCSmsBrands**](docs/Api/DefaultApi.md#gettendlcsmsbrands) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands | Get list of SMS 10DLC Brands
@@ -160,6 +163,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**listAllAccountLogs**](docs/Api/DefaultApi.md#listallaccountlogs) | **GET** /Accounts/{accountId}/Logs | List All Account Logs
*DefaultApi* | [**listApplications**](docs/Api/DefaultApi.md#listapplications) | **GET** /Accounts/{accountId}/Applications | List applications
*DefaultApi* | [**listAvailableNumbers**](docs/Api/DefaultApi.md#listavailablenumbers) | **GET** /AvailablePhoneNumbers | List available numbers
+*DefaultApi* | [**listBlobs**](docs/Api/DefaultApi.md#listblobs) | **GET** /Accounts/{accountId}/Blobs | List Blobs belonging to an account.
*DefaultApi* | [**listCallLogs**](docs/Api/DefaultApi.md#listcalllogs) | **GET** /Accounts/{accountId}/Calls/{callId}/Logs | List Call Logs
*DefaultApi* | [**listCallRecordings**](docs/Api/DefaultApi.md#listcallrecordings) | **GET** /Accounts/{accountId}/Calls/{callId}/Recordings | List Call Recordings
*DefaultApi* | [**listCalls**](docs/Api/DefaultApi.md#listcalls) | **GET** /Accounts/{accountId}/Calls | List Calls
@@ -173,7 +177,9 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**listSmsMessages**](docs/Api/DefaultApi.md#listsmsmessages) | **GET** /Accounts/{accountId}/Messages | List SMS Messages
*DefaultApi* | [**makeACall**](docs/Api/DefaultApi.md#makeacall) | **POST** /Accounts/{accountId}/Calls | Make a Call
*DefaultApi* | [**makeAWebrtcJwt**](docs/Api/DefaultApi.md#makeawebrtcjwt) | **POST** /Accounts/{accountId}/Calls/WebRTC/Token | Make a JWT for WebRTC calling
+*DefaultApi* | [**modifyBlob**](docs/Api/DefaultApi.md#modifyblob) | **PATCH** /Accounts/{accountId}/Blobs/{blobId} | Modify Blob
*DefaultApi* | [**removeAParticipant**](docs/Api/DefaultApi.md#removeaparticipant) | **DELETE** /Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId} | Remove a Participant
+*DefaultApi* | [**replaceBlob**](docs/Api/DefaultApi.md#replaceblob) | **PUT** /Accounts/{accountId}/Blobs/{blobId} | Replace Blob
*DefaultApi* | [**sendAnSmsMessage**](docs/Api/DefaultApi.md#sendansmsmessage) | **POST** /Accounts/{accountId}/Messages | Send an SMS Message
*DefaultApi* | [**streamARecordingFile**](docs/Api/DefaultApi.md#streamarecordingfile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Stream | Stream a Recording File
*DefaultApi* | [**updateAConference**](docs/Api/DefaultApi.md#updateaconference) | **POST** /Accounts/{accountId}/Conferences/{conferenceId} | Update a Conference
@@ -200,6 +206,8 @@ Class | Method | HTTP request | Description
- [AvailableNumber](docs/Model/AvailableNumber.md)
- [AvailableNumberList](docs/Model/AvailableNumberList.md)
- [BargeInReason](docs/Model/BargeInReason.md)
+- [BlobListResponse](docs/Model/BlobListResponse.md)
+- [BlobResult](docs/Model/BlobResult.md)
- [BuyIncomingNumberRequest](docs/Model/BuyIncomingNumberRequest.md)
- [CallControlWebhook](docs/Model/CallControlWebhook.md)
- [CallDirection](docs/Model/CallDirection.md)
@@ -219,6 +227,7 @@ Class | Method | HTTP request | Description
- [ConferenceResult](docs/Model/ConferenceResult.md)
- [ConferenceStatus](docs/Model/ConferenceStatus.md)
- [ConferenceStatusWebhook](docs/Model/ConferenceStatusWebhook.md)
+- [CreateBlobRequest](docs/Model/CreateBlobRequest.md)
- [CreateConference](docs/Model/CreateConference.md)
- [CreateConferenceRequest](docs/Model/CreateConferenceRequest.md)
- [CreateConferenceWebhook](docs/Model/CreateConferenceWebhook.md)
@@ -264,6 +273,7 @@ Class | Method | HTTP request | Description
- [MessageStatus](docs/Model/MessageStatus.md)
- [MessageStatusWebhook](docs/Model/MessageStatusWebhook.md)
- [MessagesList](docs/Model/MessagesList.md)
+- [ModifyBlobRequest](docs/Model/ModifyBlobRequest.md)
- [MutableResourceModel](docs/Model/MutableResourceModel.md)
- [OutDial](docs/Model/OutDial.md)
- [OutDialApiConnectWebhook](docs/Model/OutDialApiConnectWebhook.md)
@@ -274,6 +284,7 @@ Class | Method | HTTP request | Description
- [Pause](docs/Model/Pause.md)
- [PerclCommand](docs/Model/PerclCommand.md)
- [PerclScript](docs/Model/PerclScript.md)
+- [PlatformError](docs/Model/PlatformError.md)
- [Play](docs/Model/Play.md)
- [PlayBeep](docs/Model/PlayBeep.md)
- [PlayEarlyMedia](docs/Model/PlayEarlyMedia.md)
@@ -294,6 +305,7 @@ Class | Method | HTTP request | Description
- [Reject](docs/Model/Reject.md)
- [RemoveFromConference](docs/Model/RemoveFromConference.md)
- [RemoveFromQueueNotificationWebhook](docs/Model/RemoveFromQueueNotificationWebhook.md)
+- [ReplaceBlobRequest](docs/Model/ReplaceBlobRequest.md)
- [RequestType](docs/Model/RequestType.md)
- [SMSTenDLCBrand](docs/Model/SMSTenDLCBrand.md)
- [SMSTenDLCBrandAltBusinessIdType](docs/Model/SMSTenDLCBrandAltBusinessIdType.md)
@@ -321,6 +333,8 @@ Class | Method | HTTP request | Description
- [StartRecordCall](docs/Model/StartRecordCall.md)
- [TFN](docs/Model/TFN.md)
- [TFNCampaign](docs/Model/TFNCampaign.md)
+- [TTSEngine](docs/Model/TTSEngine.md)
+- [TTSEngineName](docs/Model/TTSEngineName.md)
- [TerminateConference](docs/Model/TerminateConference.md)
- [TranscribeReason](docs/Model/TranscribeReason.md)
- [TranscribeTermReason](docs/Model/TranscribeTermReason.md)
@@ -360,6 +374,6 @@ support@freeclimb.com
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: `1.0.0`
- - Package version: `5.2.0`
+ - Package version: `5.3.0`
- Generator version: `7.9.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
diff --git a/composer.json b/composer.json
index a073361..a6e6a27 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
"name": "freeclimbapi/php-sdk",
- "version": "5.2.0",
+ "version": "5.3.0",
"description": "FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.",
"keywords": [
"openapitools",
diff --git a/composer.lock b/composer.lock
index a99a2d4..da221c5 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "d7fed7cb060bb4b0eaeffb063b0dbde5",
+ "content-hash": "24af19a245afebf1e7149f8e4f5e9f1a",
"packages": [
{
"name": "guzzlehttp/guzzle",
@@ -1070,16 +1070,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v3.87.2",
+ "version": "v3.89.1",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
- "reference": "da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992"
+ "reference": "f34967da2866ace090a2b447de1f357356474573"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992",
- "reference": "da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/f34967da2866ace090a2b447de1f357356474573",
+ "reference": "f34967da2866ace090a2b447de1f357356474573",
"shasum": ""
},
"require": {
@@ -1094,7 +1094,6 @@
"php": "^7.4 || ^8.0",
"react/child-process": "^0.6.6",
"react/event-loop": "^1.5",
- "react/promise": "^3.3",
"react/socket": "^1.16",
"react/stream": "^1.4",
"sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0",
@@ -1106,12 +1105,13 @@
"symfony/polyfill-mbstring": "^1.33",
"symfony/polyfill-php80": "^1.33",
"symfony/polyfill-php81": "^1.33",
+ "symfony/polyfill-php84": "^1.33",
"symfony/process": "^5.4.47 || ^6.4.24 || ^7.2",
"symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0"
},
"require-dev": {
"facile-it/paraunit": "^1.3.1 || ^2.7",
- "infection/infection": "^0.29.14",
+ "infection/infection": "^0.31.0",
"justinrainbow/json-schema": "^6.5",
"keradus/cli-executor": "^2.2",
"mikey179/vfsstream": "^1.6.12",
@@ -1119,7 +1119,6 @@
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6",
"phpunit/phpunit": "^9.6.25 || ^10.5.53 || ^11.5.34",
- "symfony/polyfill-php84": "^1.33",
"symfony/var-dumper": "^5.4.48 || ^6.4.24 || ^7.3.2",
"symfony/yaml": "^5.4.45 || ^6.4.24 || ^7.3.2"
},
@@ -1162,7 +1161,7 @@
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
- "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.87.2"
+ "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.89.1"
},
"funding": [
{
@@ -1170,7 +1169,7 @@
"type": "github"
}
],
- "time": "2025-09-10T09:51:40+00:00"
+ "time": "2025-10-24T12:05:10+00:00"
},
{
"name": "myclabs/deep-copy",
@@ -1234,16 +1233,16 @@
},
{
"name": "nikic/php-parser",
- "version": "v5.6.1",
+ "version": "v5.6.2",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2"
+ "reference": "3a454ca033b9e06b63282ce19562e892747449bb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2",
- "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb",
+ "reference": "3a454ca033b9e06b63282ce19562e892747449bb",
"shasum": ""
},
"require": {
@@ -1286,9 +1285,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2"
},
- "time": "2025-08-13T20:13:15+00:00"
+ "time": "2025-10-21T19:32:17+00:00"
},
{
"name": "phar-io/manifest",
@@ -1729,16 +1728,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "9.6.28",
+ "version": "9.6.29",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "a8017241a554a259997a5285eee5d10c69ff7187"
+ "reference": "9ecfec57835a5581bc888ea7e13b51eb55ab9dd3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a8017241a554a259997a5285eee5d10c69ff7187",
- "reference": "a8017241a554a259997a5285eee5d10c69ff7187",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9ecfec57835a5581bc888ea7e13b51eb55ab9dd3",
+ "reference": "9ecfec57835a5581bc888ea7e13b51eb55ab9dd3",
"shasum": ""
},
"require": {
@@ -1763,7 +1762,7 @@
"sebastian/comparator": "^4.0.9",
"sebastian/diff": "^4.0.6",
"sebastian/environment": "^5.1.5",
- "sebastian/exporter": "^4.0.7",
+ "sebastian/exporter": "^4.0.8",
"sebastian/global-state": "^5.0.8",
"sebastian/object-enumerator": "^4.0.4",
"sebastian/resource-operations": "^3.0.4",
@@ -1812,7 +1811,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.28"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.29"
},
"funding": [
{
@@ -1836,7 +1835,7 @@
"type": "tidelift"
}
],
- "time": "2025-09-23T06:20:12+00:00"
+ "time": "2025-09-24T06:29:11+00:00"
},
{
"name": "psr/container",
@@ -2958,16 +2957,16 @@
},
{
"name": "sebastian/exporter",
- "version": "4.0.7",
+ "version": "4.0.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "eb49b981ef0817890129cb70f774506bebe57740"
+ "reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/eb49b981ef0817890129cb70f774506bebe57740",
- "reference": "eb49b981ef0817890129cb70f774506bebe57740",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/14c6ba52f95a36c3d27c835d65efc7123c446e8c",
+ "reference": "14c6ba52f95a36c3d27c835d65efc7123c446e8c",
"shasum": ""
},
"require": {
@@ -3023,7 +3022,7 @@
],
"support": {
"issues": "https://github.com/sebastianbergmann/exporter/issues",
- "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.7"
+ "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.8"
},
"funding": [
{
@@ -3043,7 +3042,7 @@
"type": "tidelift"
}
],
- "time": "2025-09-22T05:18:21+00:00"
+ "time": "2025-09-24T06:03:27+00:00"
},
{
"name": "sebastian/global-state",
@@ -3530,16 +3529,16 @@
},
{
"name": "symfony/console",
- "version": "v7.3.3",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7"
+ "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7",
- "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7",
+ "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db",
+ "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db",
"shasum": ""
},
"require": {
@@ -3604,7 +3603,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v7.3.3"
+ "source": "https://github.com/symfony/console/tree/v7.3.4"
},
"funding": [
{
@@ -3624,7 +3623,7 @@
"type": "tidelift"
}
],
- "time": "2025-08-25T06:35:40+00:00"
+ "time": "2025-09-22T15:31:00+00:00"
},
{
"name": "symfony/event-dispatcher",
@@ -4494,18 +4493,98 @@
],
"time": "2024-09-09T11:45:10+00:00"
},
+ {
+ "name": "symfony/polyfill-php84",
+ "version": "v1.33.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-php84.git",
+ "reference": "d8ced4d875142b6a7426000426b8abc631d6b191"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191",
+ "reference": "d8ced4d875142b6a7426000426b8abc631d6b191",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2"
+ },
+ "type": "library",
+ "extra": {
+ "thanks": {
+ "url": "https://github.com/symfony/polyfill",
+ "name": "symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Php84\\": ""
+ },
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-06-24T13:30:11+00:00"
+ },
{
"name": "symfony/process",
- "version": "v7.3.3",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "32241012d521e2e8a9d713adb0812bb773b907f1"
+ "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/32241012d521e2e8a9d713adb0812bb773b907f1",
- "reference": "32241012d521e2e8a9d713adb0812bb773b907f1",
+ "url": "https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b",
+ "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b",
"shasum": ""
},
"require": {
@@ -4537,7 +4616,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v7.3.3"
+ "source": "https://github.com/symfony/process/tree/v7.3.4"
},
"funding": [
{
@@ -4557,7 +4636,7 @@
"type": "tidelift"
}
],
- "time": "2025-08-18T09:42:54+00:00"
+ "time": "2025-09-11T10:12:26+00:00"
},
{
"name": "symfony/service-contracts",
@@ -4706,16 +4785,16 @@
},
{
"name": "symfony/string",
- "version": "v7.3.3",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c"
+ "reference": "f96476035142921000338bad71e5247fbc138872"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/17a426cce5fd1f0901fefa9b2a490d0038fd3c9c",
- "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c",
+ "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872",
+ "reference": "f96476035142921000338bad71e5247fbc138872",
"shasum": ""
},
"require": {
@@ -4730,7 +4809,6 @@
},
"require-dev": {
"symfony/emoji": "^7.1",
- "symfony/error-handler": "^6.4|^7.0",
"symfony/http-client": "^6.4|^7.0",
"symfony/intl": "^6.4|^7.0",
"symfony/translation-contracts": "^2.5|^3.0",
@@ -4773,7 +4851,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v7.3.3"
+ "source": "https://github.com/symfony/string/tree/v7.3.4"
},
"funding": [
{
@@ -4793,7 +4871,7 @@
"type": "tidelift"
}
],
- "time": "2025-08-25T06:35:40+00:00"
+ "time": "2025-09-11T14:36:48+00:00"
},
{
"name": "theseer/tokenizer",
diff --git a/docs/Api/DefaultApi.md b/docs/Api/DefaultApi.md
index 4608db5..5a2af51 100644
--- a/docs/Api/DefaultApi.md
+++ b/docs/Api/DefaultApi.md
@@ -8,12 +8,14 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper
| [**createAConference()**](DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference |
| [**createAQueue()**](DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue |
| [**createAnApplication()**](DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application |
+| [**createBlob()**](DefaultApi.md#createBlob) | **POST** /Accounts/{accountId}/Blobs | Create a Blob |
| [**createExport()**](DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export |
| [**createKnowledgeBaseCompletion()**](DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base |
| [**deleteARecording()**](DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording |
| [**deleteAnApplication()**](DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application |
| [**deleteAnExport()**](DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export |
| [**deleteAnIncomingNumber()**](DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number |
+| [**deleteBlob()**](DefaultApi.md#deleteBlob) | **DELETE** /Accounts/{accountId}/Blobs/{blobId} | Delete Blob |
| [**dequeueAMember()**](DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member |
| [**dequeueHeadMember()**](DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member |
| [**downloadARecordingFile()**](DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File |
@@ -30,6 +32,7 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper
| [**getAnExport()**](DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export |
| [**getAnIncomingNumber()**](DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number |
| [**getAnSmsMessage()**](DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message |
+| [**getBlob()**](DefaultApi.md#getBlob) | **GET** /Accounts/{accountId}/Blobs/{blobId} | Get Blob |
| [**getHeadMember()**](DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member |
| [**getTenDLCSmsBrand()**](DefaultApi.md#getTenDLCSmsBrand) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands/{brandId} | Get a 10DLC SMS Brand |
| [**getTenDLCSmsBrands()**](DefaultApi.md#getTenDLCSmsBrands) | **GET** /Accounts/{accountId}/Messages/10DLC/Brands | Get list of SMS 10DLC Brands |
@@ -43,6 +46,7 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper
| [**listAllAccountLogs()**](DefaultApi.md#listAllAccountLogs) | **GET** /Accounts/{accountId}/Logs | List All Account Logs |
| [**listApplications()**](DefaultApi.md#listApplications) | **GET** /Accounts/{accountId}/Applications | List applications |
| [**listAvailableNumbers()**](DefaultApi.md#listAvailableNumbers) | **GET** /AvailablePhoneNumbers | List available numbers |
+| [**listBlobs()**](DefaultApi.md#listBlobs) | **GET** /Accounts/{accountId}/Blobs | List Blobs belonging to an account. |
| [**listCallLogs()**](DefaultApi.md#listCallLogs) | **GET** /Accounts/{accountId}/Calls/{callId}/Logs | List Call Logs |
| [**listCallRecordings()**](DefaultApi.md#listCallRecordings) | **GET** /Accounts/{accountId}/Calls/{callId}/Recordings | List Call Recordings |
| [**listCalls()**](DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls |
@@ -56,7 +60,9 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper
| [**listSmsMessages()**](DefaultApi.md#listSmsMessages) | **GET** /Accounts/{accountId}/Messages | List SMS Messages |
| [**makeACall()**](DefaultApi.md#makeACall) | **POST** /Accounts/{accountId}/Calls | Make a Call |
| [**makeAWebrtcJwt()**](DefaultApi.md#makeAWebrtcJwt) | **POST** /Accounts/{accountId}/Calls/WebRTC/Token | Make a JWT for WebRTC calling |
+| [**modifyBlob()**](DefaultApi.md#modifyBlob) | **PATCH** /Accounts/{accountId}/Blobs/{blobId} | Modify Blob |
| [**removeAParticipant()**](DefaultApi.md#removeAParticipant) | **DELETE** /Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId} | Remove a Participant |
+| [**replaceBlob()**](DefaultApi.md#replaceBlob) | **PUT** /Accounts/{accountId}/Blobs/{blobId} | Replace Blob |
| [**sendAnSmsMessage()**](DefaultApi.md#sendAnSmsMessage) | **POST** /Accounts/{accountId}/Messages | Send an SMS Message |
| [**streamARecordingFile()**](DefaultApi.md#streamARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Stream | Stream a Recording File |
| [**updateAConference()**](DefaultApi.md#updateAConference) | **POST** /Accounts/{accountId}/Conferences/{conferenceId} | Update a Conference |
@@ -308,6 +314,68 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `createBlob()`
+
+```php
+createBlob($create_blob_request): \FreeClimb\Api\Model\BlobResult
+```
+
+Create a Blob
+
+Create a new Blob belonging to the requesting account.
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+$create_blob_request = {"blob":{}}; // \FreeClimb\Api\Model\CreateBlobRequest | An object defining a new blob. A request body must be provided but the blob may be empty.
+
+try {
+ $result = $apiInstance->createBlob($create_blob_request);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->createBlob: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **create_blob_request** | [**\FreeClimb\Api\Model\CreateBlobRequest**](../Model/CreateBlobRequest.md)| An object defining a new blob. A request body must be provided but the blob may be empty. | |
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobResult**](../Model/BlobResult.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### 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)
+
## `createExport()`
```php
@@ -666,6 +734,68 @@ void (empty response body)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `deleteBlob()`
+
+```php
+deleteBlob($blob_id): \FreeClimb\Api\Model\BlobResult
+```
+
+Delete Blob
+
+Deletes a blob or specific keys from a blob. If no keys are specified in the request body, the entire blob is deleted (returns 204). If specific keys are provided, only those keys are removed and the remaining blob is returned (returns 200).
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+$blob_id = 'blob_id_example'; // string | String that uniquely identifies this Blob resource.
+
+try {
+ $result = $apiInstance->deleteBlob($blob_id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->deleteBlob: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **blob_id** | **string**| String that uniquely identifies this Blob resource. | |
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobResult**](../Model/BlobResult.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **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)
+
## `dequeueAMember()`
```php
@@ -842,7 +972,7 @@ try {
### HTTP request headers
- **Content-Type**: Not defined
-- **Accept**: `audio/x-wav`
+- **Accept**: `audio/wav`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
@@ -1629,6 +1759,68 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `getBlob()`
+
+```php
+getBlob($blob_id): \FreeClimb\Api\Model\BlobResult
+```
+
+Get Blob
+
+Retrieves a specified blob
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+$blob_id = 'blob_id_example'; // string | String that uniquely identifies this Blob resource.
+
+try {
+ $result = $apiInstance->getBlob($blob_id);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->getBlob: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **blob_id** | **string**| String that uniquely identifies this Blob resource. | |
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobResult**](../Model/BlobResult.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **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)
+
## `getHeadMember()`
```php
@@ -2418,6 +2610,65 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `listBlobs()`
+
+```php
+listBlobs(): \FreeClimb\Api\Model\BlobListResponse
+```
+
+List Blobs belonging to an account.
+
+List Blobs belonging to an account. Results are returned in paginated lists mirroring other listing features in the API.
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+
+try {
+ $result = $apiInstance->listBlobs();
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->listBlobs: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobListResponse**](../Model/BlobListResponse.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **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)
+
## `listCallLogs()`
```php
@@ -2813,7 +3064,7 @@ try {
## `listIncomingNumbers()`
```php
-listIncomingNumbers($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet): \FreeClimb\Api\Model\IncomingNumberList
+listIncomingNumbers($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet): \FreeClimb\Api\Model\IncomingNumberList
```
List Incoming Numbers
@@ -2843,8 +3094,6 @@ $region = 'region_example'; // string | State or province of this phone number.
$country = 'country_example'; // string | Country of this phone number.
$application_id = 'application_id_example'; // string | ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId.
$has_application = false; // bool | Indication of whether the phone number has an application linked to it.
-$voice_enabled = true; // bool | Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
-$sms_enabled = true; // bool | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
$has_campaign = True; // bool | Indication of whether the phone number has a campaign associated with it
$capabilities_voice = True; // bool |
$capabilities_sms = True; // bool |
@@ -2855,7 +3104,7 @@ $tfn_campaign_id = 'tfn_campaign_id_example'; // string | Only show incoming pho
$offnet = True; // bool | Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource.
try {
- $result = $apiInstance->listIncomingNumbers($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet);
+ $result = $apiInstance->listIncomingNumbers($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listIncomingNumbers: ', $e->getMessage(), PHP_EOL;
@@ -2872,8 +3121,6 @@ try {
| **country** | **string**| Country of this phone number. | [optional] |
| **application_id** | **string**| ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. | [optional] |
| **has_application** | **bool**| Indication of whether the phone number has an application linked to it. | [optional] [default to false] |
-| **voice_enabled** | **bool**| Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional] [default to true] |
-| **sms_enabled** | **bool**| Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional] [default to true] |
| **has_campaign** | **bool**| Indication of whether the phone number has a campaign associated with it | [optional] |
| **capabilities_voice** | **bool**| | [optional] |
| **capabilities_sms** | **bool**| | [optional] |
@@ -3284,6 +3531,70 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `modifyBlob()`
+
+```php
+modifyBlob($blob_id, $modify_blob_request): \FreeClimb\Api\Model\BlobResult
+```
+
+Modify Blob
+
+Modifys a pre existing blob by either adding new fields, or modifying existing fields
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+$blob_id = 'blob_id_example'; // string | String that uniquely identifies this Blob resource.
+$modify_blob_request = {"alias":"new_conversation_id","blob":{"field0":"value0_redux","field4":"value4"}}; // \FreeClimb\Api\Model\ModifyBlobRequest | Request body to specify keys to modify. Or new keys to add onto the already existing blob
+
+try {
+ $result = $apiInstance->modifyBlob($blob_id, $modify_blob_request);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->modifyBlob: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **blob_id** | **string**| String that uniquely identifies this Blob resource. | |
+| **modify_blob_request** | [**\FreeClimb\Api\Model\ModifyBlobRequest**](../Model/ModifyBlobRequest.md)| Request body to specify keys to modify. Or new keys to add onto the already existing blob | |
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobResult**](../Model/BlobResult.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### 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)
+
## `removeAParticipant()`
```php
@@ -3345,6 +3656,70 @@ void (empty response body)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
+## `replaceBlob()`
+
+```php
+replaceBlob($blob_id, $replace_blob_request): \FreeClimb\Api\Model\BlobResult
+```
+
+Replace Blob
+
+Replaces the blob content with the provided values.
+
+### Example
+
+```php
+setUsername('YOUR_ACCOUNT_ID')
+ ->setPassword('YOUR_API_KEY');
+
+
+$apiInstance = new FreeClimb\Api\Api\DefaultApi(
+ // 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
+);
+$blob_id = 'blob_id_example'; // string | String that uniquely identifies this Blob resource.
+$replace_blob_request = {"blob":{"field0":"value0_redux","field4":"value4"}}; // \FreeClimb\Api\Model\ReplaceBlobRequest | JSON object containing blob key the contents of which will be used to override the enitre blob contents.
+
+try {
+ $result = $apiInstance->replaceBlob($blob_id, $replace_blob_request);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DefaultApi->replaceBlob: ', $e->getMessage(), PHP_EOL;
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+| **blob_id** | **string**| String that uniquely identifies this Blob resource. | |
+| **replace_blob_request** | [**\FreeClimb\Api\Model\ReplaceBlobRequest**](../Model/ReplaceBlobRequest.md)| JSON object containing blob key the contents of which will be used to override the enitre blob contents. | |
+
+### Return type
+
+[**\FreeClimb\Api\Model\BlobResult**](../Model/BlobResult.md)
+
+### Authorization
+
+[fc](../../README.md#fc)
+
+### 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)
+
## `sendAnSmsMessage()`
```php
@@ -3459,7 +3834,7 @@ try {
### HTTP request headers
- **Content-Type**: Not defined
-- **Accept**: `audio/x-wav`
+- **Accept**: `audio/wav`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
diff --git a/docs/Model/AvailableNumber.md b/docs/Model/AvailableNumber.md
index fa51024..c704296 100644
--- a/docs/Model/AvailableNumber.md
+++ b/docs/Model/AvailableNumber.md
@@ -7,8 +7,6 @@ Name | Type | Description | Notes
**capabilities** | [**\FreeClimb\Api\Model\Capabilities**](Capabilities.md) | | [optional]
**campaign_id** | **string** | The campaign ID generated by the campaign registry | [optional]
**phone_number** | **string** | The phone number, in E.164 format (+ country code and phone number: +18003608245). | [optional]
-**voice_enabled** | **bool** | Typically set to true for all numbers. | [optional]
-**sms_enabled** | **bool** | Indicates whether the phone number can send and receive SMS messages. | [optional]
**region** | **string** | The state or province of this phone number. | [optional]
**country** | **string** | The country of this phone number. | [optional]
diff --git a/docs/Model/BlobListResponse.md b/docs/Model/BlobListResponse.md
new file mode 100644
index 0000000..b5224c3
--- /dev/null
+++ b/docs/Model/BlobListResponse.md
@@ -0,0 +1,16 @@
+# # BlobListResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**total** | **int** | Total amount of requested resource. | [optional]
+**start** | **int** | Resource index at start of current page | [optional]
+**end** | **int** | Resource index at end of current page | [optional]
+**page** | **int** | Current page | [optional]
+**num_pages** | **int** | Total number of pages | [optional]
+**page_size** | **int** | Number of items per page | [optional]
+**next_page_uri** | **string** | Uri to retrieve the next page of items | [optional]
+**blobs** | [**\FreeClimb\Api\Model\BlobResult[]**](BlobResult.md) | | [optional]
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/BlobResult.md b/docs/Model/BlobResult.md
new file mode 100644
index 0000000..91be2a0
--- /dev/null
+++ b/docs/Model/BlobResult.md
@@ -0,0 +1,16 @@
+# # BlobResult
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**blob_id** | **string** | Identifier which can be used to reference this blob in future interations. | [optional]
+**account_id** | **string** | | [optional]
+**alias** | **string** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided in the creation request. | [optional]
+**revision** | **int** | | [optional]
+**date_created** | **\DateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time this blob was created. | [optional]
+**date_updated** | **\DateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time this blob was last modified, which at creation will always equal dateCreated. | [optional]
+**expires_at** | **\DateTime** | An RFC3339 timestamp with millisecond resolution. It represents the time at which this blob will expire and self delete. | [optional]
+**blob** | **object** | Blob content | [optional]
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/CreateBlobRequest.md b/docs/Model/CreateBlobRequest.md
new file mode 100644
index 0000000..bbd59ac
--- /dev/null
+++ b/docs/Model/CreateBlobRequest.md
@@ -0,0 +1,11 @@
+# # CreateBlobRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**alias** | **string** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. | [optional]
+**expires_at** | **string** | An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which this blob will delete itself. It must not be more than 48 hours in the future and will default to 9 hours in the future if not provided. | [optional]
+**blob** | **object** | |
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/IncomingNumberResult.md b/docs/Model/IncomingNumberResult.md
index 895777f..fe6f140 100644
--- a/docs/Model/IncomingNumberResult.md
+++ b/docs/Model/IncomingNumberResult.md
@@ -17,8 +17,6 @@ Name | Type | Description | Notes
**alias** | **string** | Description for this phone number. Typically the conventionally-formatted version of the phone number. | [optional]
**region** | **string** | State or province of this phone number. | [optional]
**country** | **string** | Country of this phone number. | [optional]
-**voice_enabled** | **bool** | Indicates whether the phone number can handle Calls. Typically set to true for all numbers. | [optional]
-**sms_enabled** | **bool** | Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. | [optional]
**offnet** | **bool** | The offnet field is a boolean representing whether the number is offnet registered or not. This field will be rendered only for requests to the IncomingPhone number resource. | [optional]
**tfn** | [**\FreeClimb\Api\Model\TFN**](TFN.md) | | [optional]
diff --git a/docs/Model/ModifyBlobRequest.md b/docs/Model/ModifyBlobRequest.md
new file mode 100644
index 0000000..d6eccec
--- /dev/null
+++ b/docs/Model/ModifyBlobRequest.md
@@ -0,0 +1,10 @@
+# # ModifyBlobRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**blob** | **object** | |
+**alias** | **string** | Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided. | [optional]
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/PlatformError.md b/docs/Model/PlatformError.md
new file mode 100644
index 0000000..afab6f7
--- /dev/null
+++ b/docs/Model/PlatformError.md
@@ -0,0 +1,12 @@
+# # PlatformError
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **int** | | [optional]
+**call** | **string** | | [optional]
+**url** | **string** | | [optional]
+**details** | **object** | | [optional]
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/ReplaceBlobRequest.md b/docs/Model/ReplaceBlobRequest.md
new file mode 100644
index 0000000..647505e
--- /dev/null
+++ b/docs/Model/ReplaceBlobRequest.md
@@ -0,0 +1,9 @@
+# # ReplaceBlobRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**blob** | **object** | |
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/Say.md b/docs/Model/Say.md
index d6ea9ef..9142216 100644
--- a/docs/Model/Say.md
+++ b/docs/Model/Say.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**text** | **string** | The message to be played to the caller using TTS. The size of the string is limited to 4 KB (or 4,096 bytes). An empty string will cause the command to be skipped. |
**language** | **string** | Language and (by implication) the locale to use. This implies the accent and pronunciations to be usde for the TTS. The complete list of valid values for the language attribute is shown below. | [optional]
+**engine** | [**\FreeClimb\Api\Model\TTSEngine**](TTSEngine.md) | | [optional]
**loop** | **int** | Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up. | [optional] [default to 1]
**privacy_mode** | **bool** | Parameter `privacyMode` will not log the `text` as required by PCI compliance. | [optional]
diff --git a/docs/Model/TTSEngine.md b/docs/Model/TTSEngine.md
new file mode 100644
index 0000000..b6a9e5e
--- /dev/null
+++ b/docs/Model/TTSEngine.md
@@ -0,0 +1,10 @@
+# # TTSEngine
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | [**\FreeClimb\Api\Model\TTSEngineName**](TTSEngineName.md) | | [optional]
+**parameters** | **array** | Parameters for the TTS engine. The parameters are specific to the engine and are documented in the engine's documentation. | [optional]
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/docs/Model/TTSEngineName.md b/docs/Model/TTSEngineName.md
new file mode 100644
index 0000000..5575618
--- /dev/null
+++ b/docs/Model/TTSEngineName.md
@@ -0,0 +1,8 @@
+# # TTSEngineName
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
diff --git a/lib/Api/DefaultApi.php b/lib/Api/DefaultApi.php
index 0204b76..c5063db 100644
--- a/lib/Api/DefaultApi.php
+++ b/lib/Api/DefaultApi.php
@@ -85,6 +85,9 @@ class DefaultApi
'createAnApplication' => [
'application/json',
],
+ 'createBlob' => [
+ 'application/json',
+ ],
'createExport' => [
'application/json',
],
@@ -103,6 +106,9 @@ class DefaultApi
'deleteAnIncomingNumber' => [
'application/json',
],
+ 'deleteBlob' => [
+ 'application/json',
+ ],
'dequeueAMember' => [
'application/json',
],
@@ -151,6 +157,9 @@ class DefaultApi
'getAnSmsMessage' => [
'application/json',
],
+ 'getBlob' => [
+ 'application/json',
+ ],
'getHeadMember' => [
'application/json',
],
@@ -190,6 +199,9 @@ class DefaultApi
'listAvailableNumbers' => [
'application/json',
],
+ 'listBlobs' => [
+ 'application/json',
+ ],
'listCallLogs' => [
'application/json',
],
@@ -229,9 +241,15 @@ class DefaultApi
'makeAWebrtcJwt' => [
'application/json',
],
+ 'modifyBlob' => [
+ 'application/json',
+ ],
'removeAParticipant' => [
'application/json',
],
+ 'replaceBlob' => [
+ 'application/json',
+ ],
'sendAnSmsMessage' => [
'application/json',
],
@@ -1610,41 +1628,41 @@ public function createAnApplicationRequest($application_request = null, string $
}
/**
- * Operation createExport
+ * Operation createBlob
*
- * Create an Export
+ * Create a Blob
*
- * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
+ * @param \FreeClimb\Api\Model\CreateBlobRequest $create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ExportResult
+ * @return \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function createExport($export_request = null, string $contentType = self::contentTypes['createExport'][0])
+ public function createBlob($create_blob_request, string $contentType = self::contentTypes['createBlob'][0])
{
- list($response) = $this->createExportWithHttpInfo($export_request, $contentType);
+ list($response) = $this->createBlobWithHttpInfo($create_blob_request, $contentType);
return $response;
}
/**
- * Operation createExportWithHttpInfo
+ * Operation createBlobWithHttpInfo
*
- * Create an Export
+ * Create a Blob
*
- * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
+ * @param \FreeClimb\Api\Model\CreateBlobRequest $create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function createExportWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0])
+ public function createBlobWithHttpInfo($create_blob_request, string $contentType = self::contentTypes['createBlob'][0])
{
- $request = $this->createExportRequest($export_request, $contentType);
+ $request = $this->createBlobRequest($create_blob_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -1670,12 +1688,12 @@ public function createExportWithHttpInfo($export_request = null, string $content
switch ($statusCode) {
- case 200:
- if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') {
+ case 201:
+ if ('\FreeClimb\Api\Model\BlobResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ExportResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\BlobResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -1693,7 +1711,142 @@ public function createExportWithHttpInfo($export_request = null, string $content
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 409:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 413:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -1712,7 +1865,7 @@ public function createExportWithHttpInfo($export_request = null, string $content
);
}
- $returnType = '\FreeClimb\Api\Model\ExportResult';
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -1742,10 +1895,50 @@ public function createExportWithHttpInfo($export_request = null, string $content
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 200:
+ case 201:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ExportResult',
+ '\FreeClimb\Api\Model\BlobResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 409:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 413:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -1756,21 +1949,21 @@ public function createExportWithHttpInfo($export_request = null, string $content
}
/**
- * Operation createExportAsync
+ * Operation createBlobAsync
*
- * Create an Export
+ * Create a Blob
*
- * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
+ * @param \FreeClimb\Api\Model\CreateBlobRequest $create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function createExportAsync($export_request = null, string $contentType = self::contentTypes['createExport'][0])
+ public function createBlobAsync($create_blob_request, string $contentType = self::contentTypes['createBlob'][0])
{
- return $this->createExportAsyncWithHttpInfo($export_request, $contentType)
+ return $this->createBlobAsyncWithHttpInfo($create_blob_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -1779,22 +1972,22 @@ function ($response) {
}
/**
- * Operation createExportAsyncWithHttpInfo
+ * Operation createBlobAsyncWithHttpInfo
*
- * Create an Export
+ * Create a Blob
*
- * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
+ * @param \FreeClimb\Api\Model\CreateBlobRequest $create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function createExportAsyncWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0])
+ public function createBlobAsyncWithHttpInfo($create_blob_request, string $contentType = self::contentTypes['createBlob'][0])
{
- $returnType = '\FreeClimb\Api\Model\ExportResult';
- $request = $this->createExportRequest($export_request, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ $request = $this->createBlobRequest($create_blob_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -1833,24 +2026,30 @@ function ($exception) {
}
/**
- * Create request for operation 'createExport'
+ * Create request for operation 'createBlob'
*
- * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
+ * @param \FreeClimb\Api\Model\CreateBlobRequest $create_blob_request An object defining a new blob. A request body must be provided but the blob may be empty. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function createExportRequest($export_request = null, string $contentType = self::contentTypes['createExport'][0])
+ public function createBlobRequest($create_blob_request, string $contentType = self::contentTypes['createBlob'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'create_blob_request' is set
+ if ($create_blob_request === null || (is_array($create_blob_request) && count($create_blob_request) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $create_blob_request when calling createBlob'
+ );
+ }
- $resourcePath = '/Accounts/{accountId}/Exports';
+ $resourcePath = '/Accounts/{accountId}/Blobs';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -1876,12 +2075,12 @@ public function createExportRequest($export_request = null, string $contentType
);
// for model (json/xml)
- if (isset($export_request)) {
+ if (isset($create_blob_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
- $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($export_request));
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_blob_request));
} else {
- $httpBody = $export_request;
+ $httpBody = $create_blob_request;
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -1934,45 +2133,41 @@ public function createExportRequest($export_request = null, string $contentType
}
/**
- * Operation createKnowledgeBaseCompletion
+ * Operation createExport
*
- * Query the knowledge base
+ * Create an Export
*
- * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
-
- * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+ * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\CompletionResult
+ * @return \FreeClimb\Api\Model\ExportResult
*/
- public function createKnowledgeBaseCompletion($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
+ public function createExport($export_request = null, string $contentType = self::contentTypes['createExport'][0])
{
- list($response) = $this->createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request, $contentType);
+ list($response) = $this->createExportWithHttpInfo($export_request, $contentType);
return $response;
}
/**
- * Operation createKnowledgeBaseCompletionWithHttpInfo
+ * Operation createExportWithHttpInfo
*
- * Query the knowledge base
+ * Create an Export
*
- * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
-
- * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+ * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\CompletionResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
+ public function createExportWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0])
{
- $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType);
+ $request = $this->createExportRequest($export_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -1999,11 +2194,11 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\CompletionResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\CompletionResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\ExportResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -2021,7 +2216,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CompletionResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -2040,7 +2235,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c
);
}
- $returnType = '\FreeClimb\Api\Model\CompletionResult';
+ $returnType = '\FreeClimb\Api\Model\ExportResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -2073,7 +2268,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\CompletionResult',
+ '\FreeClimb\Api\Model\ExportResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -2084,23 +2279,21 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c
}
/**
- * Operation createKnowledgeBaseCompletionAsync
+ * Operation createExportAsync
*
- * Query the knowledge base
+ * Create an Export
*
- * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
-
- * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+ * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function createKnowledgeBaseCompletionAsync($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
+ public function createExportAsync($export_request = null, string $contentType = self::contentTypes['createExport'][0])
{
- return $this->createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request, $contentType)
+ return $this->createExportAsyncWithHttpInfo($export_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -2109,24 +2302,22 @@ function ($response) {
}
/**
- * Operation createKnowledgeBaseCompletionAsyncWithHttpInfo
+ * Operation createExportAsyncWithHttpInfo
*
- * Query the knowledge base
+ * Create an Export
*
- * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
-
- * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+ * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
+ public function createExportAsyncWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0])
{
- $returnType = '\FreeClimb\Api\Model\CompletionResult';
- $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ExportResult';
+ $request = $this->createExportRequest($export_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -2165,33 +2356,24 @@ function ($exception) {
}
/**
- * Create request for operation 'createKnowledgeBaseCompletion'
+ * Create request for operation 'createExport'
*
- * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
-
- * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+ * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
+ public function createExportRequest($export_request = null, string $contentType = self::contentTypes['createExport'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'knowledge_base_id' is set
- if ($knowledge_base_id === null || (is_array($knowledge_base_id) && count($knowledge_base_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $knowledge_base_id when calling createKnowledgeBaseCompletion'
- );
- }
-
- $resourcePath = '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion';
+ $resourcePath = '/Accounts/{accountId}/Exports';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -2208,14 +2390,6 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple
$resourcePath
);
}
- // path params
- if ($knowledge_base_id !== null) {
- $resourcePath = str_replace(
- '{' . 'knowledgeBaseId' . '}',
- ObjectSerializer::toPathValue($knowledge_base_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -2225,12 +2399,12 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple
);
// for model (json/xml)
- if (isset($completion_request)) {
+ if (isset($export_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
- $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($completion_request));
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($export_request));
} else {
- $httpBody = $completion_request;
+ $httpBody = $export_request;
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -2283,40 +2457,45 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple
}
/**
- * Operation deleteARecording
+ * Operation createKnowledgeBaseCompletion
*
- * Delete a Recording
+ * Query the knowledge base
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return void
+ * @return \FreeClimb\Api\Model\CompletionResult
*/
- public function deleteARecording($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ public function createKnowledgeBaseCompletion($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
{
- $this->deleteARecordingWithHttpInfo($recording_id, $contentType);
+ list($response) = $this->createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request, $contentType);
+ return $response;
}
/**
- * Operation deleteARecordingWithHttpInfo
+ * Operation createKnowledgeBaseCompletionWithHttpInfo
*
- * Delete a Recording
+ * Query the knowledge base
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\CompletionResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function deleteARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
{
- $request = $this->deleteARecordingRequest($recording_id, $contentType);
+ $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -2341,31 +2520,110 @@ public function deleteARecordingWithHttpInfo($recording_id, string $contentType
$statusCode = $response->getStatusCode();
- return [null, $statusCode, $response->getHeaders()];
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\CompletionResult' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\CompletionResult' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CompletionResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\CompletionResult';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
} catch (ApiException $e) {
switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\CompletionResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
}
throw $e;
}
}
/**
- * Operation deleteARecordingAsync
+ * Operation createKnowledgeBaseCompletionAsync
*
- * Delete a Recording
+ * Query the knowledge base
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function deleteARecordingAsync($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ public function createKnowledgeBaseCompletionAsync($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
{
- return $this->deleteARecordingAsyncWithHttpInfo($recording_id, $contentType)
+ return $this->createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -2374,28 +2632,43 @@ function ($response) {
}
/**
- * Operation deleteARecordingAsyncWithHttpInfo
+ * Operation createKnowledgeBaseCompletionAsyncWithHttpInfo
*
- * Delete a Recording
+ * Query the knowledge base
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function deleteARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ public function createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
{
- $returnType = '';
- $request = $this->deleteARecordingRequest($recording_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\CompletionResult';
+ $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
- return [null, $response->getStatusCode(), $response->getHeaders()];
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
},
function ($exception) {
$response = $exception->getResponse();
@@ -2415,30 +2688,33 @@ function ($exception) {
}
/**
- * Create request for operation 'deleteARecording'
+ * Create request for operation 'createKnowledgeBaseCompletion'
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function deleteARecordingRequest($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'recording_id' is set
- if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
+ // verify the required parameter 'knowledge_base_id' is set
+ if ($knowledge_base_id === null || (is_array($knowledge_base_id) && count($knowledge_base_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $recording_id when calling deleteARecording'
+ 'Missing the required parameter $knowledge_base_id when calling createKnowledgeBaseCompletion'
);
}
- $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}';
+
+ $resourcePath = '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -2456,23 +2732,30 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel
);
}
// path params
- if ($recording_id !== null) {
+ if ($knowledge_base_id !== null) {
$resourcePath = str_replace(
- '{' . 'recordingId' . '}',
- ObjectSerializer::toPathValue($recording_id),
+ '{' . 'knowledgeBaseId' . '}',
+ ObjectSerializer::toPathValue($knowledge_base_id),
$resourcePath
);
}
$headers = $this->headerSelector->selectHeaders(
- [],
+ ['application/json', ],
$contentType,
$multipart
);
// for model (json/xml)
- if (count($formParams) > 0) {
+ if (isset($completion_request)) {
+ if (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the body
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($completion_request));
+ } else {
+ $httpBody = $completion_request;
+ }
+ } elseif (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -2515,7 +2798,7 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'DELETE',
+ 'POST',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -2523,14 +2806,254 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel
}
/**
- * Operation deleteAnApplication
+ * Operation deleteARecording
*
- * Delete an application
+ * Delete a Recording
*
- * @param string $application_id String that uniquely identifies this application resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public function deleteARecording($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ {
+ $this->deleteARecordingWithHttpInfo($recording_id, $contentType);
+ }
+ /**
+ * Operation deleteARecordingWithHttpInfo
+ *
+ * Delete a Recording
+ *
+
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function deleteARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ {
+ $request = $this->deleteARecordingRequest($recording_id, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ return [null, $statusCode, $response->getHeaders()];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation deleteARecordingAsync
+ *
+ * Delete a Recording
+ *
+
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function deleteARecordingAsync($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ {
+ return $this->deleteARecordingAsyncWithHttpInfo($recording_id, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation deleteARecordingAsyncWithHttpInfo
+ *
+ * Delete a Recording
+ *
+
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function deleteARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ {
+ $returnType = '';
+ $request = $this->deleteARecordingRequest($recording_id, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ return [null, $response->getStatusCode(), $response->getHeaders()];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'deleteARecording'
+ *
+
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function deleteARecordingRequest($recording_id, string $contentType = self::contentTypes['deleteARecording'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+ // verify the required parameter 'recording_id' is set
+ if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $recording_id when calling deleteARecording'
+ );
+ }
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($recording_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'recordingId' . '}',
+ ObjectSerializer::toPathValue($recording_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ [],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'DELETE',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation deleteAnApplication
+ *
+ * Delete an application
+ *
+
+ * @param string $application_id String that uniquely identifies this application resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
@@ -3243,45 +3766,41 @@ public function deleteAnIncomingNumberRequest($phone_number_id, string $contentT
}
/**
- * Operation dequeueAMember
+ * Operation deleteBlob
*
- * Dequeue a Member
+ * Delete Blob
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID if the Call that the Member belongs to (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueMember
+ * @return \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function dequeueAMember($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
+ public function deleteBlob($blob_id, string $contentType = self::contentTypes['deleteBlob'][0])
{
- list($response) = $this->dequeueAMemberWithHttpInfo($queue_id, $call_id, $contentType);
+ list($response) = $this->deleteBlobWithHttpInfo($blob_id, $contentType);
return $response;
}
/**
- * Operation dequeueAMemberWithHttpInfo
+ * Operation deleteBlobWithHttpInfo
*
- * Dequeue a Member
+ * Delete Blob
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID if the Call that the Member belongs to (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
+ public function deleteBlobWithHttpInfo($blob_id, string $contentType = self::contentTypes['deleteBlob'][0])
{
- $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType);
+ $request = $this->deleteBlobRequest($blob_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -3307,12 +3826,12 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT
switch ($statusCode) {
- case 202:
- if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
+ case 200:
+ if ('\FreeClimb\Api\Model\BlobResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
+ if ('\FreeClimb\Api\Model\BlobResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -3330,7 +3849,115 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 422:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 504:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -3349,7 +3976,7 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT
);
}
- $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -3379,10 +4006,42 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 202:
+ case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueMember',
+ '\FreeClimb\Api\Model\BlobResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 422:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 504:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -3393,23 +4052,21 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT
}
/**
- * Operation dequeueAMemberAsync
+ * Operation deleteBlobAsync
*
- * Dequeue a Member
+ * Delete Blob
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID if the Call that the Member belongs to (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function dequeueAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
+ public function deleteBlobAsync($blob_id, string $contentType = self::contentTypes['deleteBlob'][0])
{
- return $this->dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType)
+ return $this->deleteBlobAsyncWithHttpInfo($blob_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -3418,24 +4075,22 @@ function ($response) {
}
/**
- * Operation dequeueAMemberAsyncWithHttpInfo
+ * Operation deleteBlobAsyncWithHttpInfo
*
- * Dequeue a Member
+ * Delete Blob
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID if the Call that the Member belongs to (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
+ public function deleteBlobAsyncWithHttpInfo($blob_id, string $contentType = self::contentTypes['deleteBlob'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueMember';
- $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ $request = $this->deleteBlobRequest($blob_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -3474,39 +4129,33 @@ function ($exception) {
}
/**
- * Create request for operation 'dequeueAMember'
+ * Create request for operation 'deleteBlob'
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID if the Call that the Member belongs to (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
+ public function deleteBlobRequest($blob_id, string $contentType = self::contentTypes['deleteBlob'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'queue_id' is set
- if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
+ // verify the required parameter 'blob_id' is set
+ if ($blob_id === null || (is_array($blob_id) && count($blob_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling dequeueAMember'
+ 'Missing the required parameter $blob_id when calling deleteBlob'
);
}
-
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling dequeueAMember'
- );
+ if (!preg_match("/BL[0-9a-fA-F]{40}/", $blob_id)) {
+ throw new \InvalidArgumentException("invalid value for \"blob_id\" when calling DefaultApi.deleteBlob, must conform to the pattern /BL[0-9a-fA-F]{40}/.");
}
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}';
+ $resourcePath = '/Accounts/{accountId}/Blobs/{blobId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -3524,18 +4173,10 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType =
);
}
// path params
- if ($queue_id !== null) {
- $resourcePath = str_replace(
- '{' . 'queueId' . '}',
- ObjectSerializer::toPathValue($queue_id),
- $resourcePath
- );
- }
- // path params
- if ($call_id !== null) {
+ if ($blob_id !== null) {
$resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
+ '{' . 'blobId' . '}',
+ ObjectSerializer::toPathValue($blob_id),
$resourcePath
);
}
@@ -3591,7 +4232,7 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType =
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'POST',
+ 'DELETE',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -3599,41 +4240,45 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType =
}
/**
- * Operation dequeueHeadMember
+ * Operation dequeueAMember
*
- * Dequeue Head Member
+ * Dequeue a Member
*
- * @param string $queue_id String that uniquely identifies this queue resource. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
+ * @param string $call_id ID if the Call that the Member belongs to (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \FreeClimb\Api\Model\QueueMember
*/
- public function dequeueHeadMember($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
+ public function dequeueAMember($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
{
- list($response) = $this->dequeueHeadMemberWithHttpInfo($queue_id, $contentType);
+ list($response) = $this->dequeueAMemberWithHttpInfo($queue_id, $call_id, $contentType);
return $response;
}
/**
- * Operation dequeueHeadMemberWithHttpInfo
+ * Operation dequeueAMemberWithHttpInfo
*
- * Dequeue Head Member
+ * Dequeue a Member
*
- * @param string $queue_id String that uniquely identifies this queue resource. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
+ * @param string $call_id ID if the Call that the Member belongs to (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
*/
- public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
+ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
{
- $request = $this->dequeueHeadMemberRequest($queue_id, $contentType);
+ $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -3745,21 +4390,23 @@ public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = s
}
/**
- * Operation dequeueHeadMemberAsync
+ * Operation dequeueAMemberAsync
*
- * Dequeue Head Member
+ * Dequeue a Member
*
- * @param string $queue_id String that uniquely identifies this queue resource. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
+ * @param string $call_id ID if the Call that the Member belongs to (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function dequeueHeadMemberAsync($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
+ public function dequeueAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
{
- return $this->dequeueHeadMemberAsyncWithHttpInfo($queue_id, $contentType)
+ return $this->dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -3768,22 +4415,24 @@ function ($response) {
}
/**
- * Operation dequeueHeadMemberAsyncWithHttpInfo
+ * Operation dequeueAMemberAsyncWithHttpInfo
*
- * Dequeue Head Member
+ * Dequeue a Member
*
- * @param string $queue_id String that uniquely identifies this queue resource. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
+ * @param string $call_id ID if the Call that the Member belongs to (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function dequeueHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
+ public function dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
{
$returnType = '\FreeClimb\Api\Model\QueueMember';
- $request = $this->dequeueHeadMemberRequest($queue_id, $contentType);
+ $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -3822,30 +4471,39 @@ function ($exception) {
}
/**
- * Create request for operation 'dequeueHeadMember'
+ * Create request for operation 'dequeueAMember'
*
- * @param string $queue_id String that uniquely identifies this queue resource. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
+ * @param string $call_id ID if the Call that the Member belongs to (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function dequeueHeadMemberRequest($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
+ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0])
{
$account_id = $this->config->getUsername();
// verify the required parameter 'queue_id' is set
if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling dequeueHeadMember'
+ 'Missing the required parameter $queue_id when calling dequeueAMember'
);
}
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $call_id when calling dequeueAMember'
+ );
+ }
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front';
+
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -3870,12 +4528,20 @@ public function dequeueHeadMemberRequest($queue_id, string $contentType = self::
$resourcePath
);
}
-
-
- $headers = $this->headerSelector->selectHeaders(
- ['application/json', ],
- $contentType,
- $multipart
+ // path params
+ if ($call_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
);
// for model (json/xml)
@@ -3930,41 +4596,41 @@ public function dequeueHeadMemberRequest($queue_id, string $contentType = self::
}
/**
- * Operation downloadARecordingFile
+ * Operation dequeueHeadMember
*
- * Download a Recording File
+ * Dequeue Head Member
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id String that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \SplFileObject
+ * @return \FreeClimb\Api\Model\QueueMember
*/
- public function downloadARecordingFile($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
+ public function dequeueHeadMember($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
{
- list($response) = $this->downloadARecordingFileWithHttpInfo($recording_id, $contentType);
+ list($response) = $this->dequeueHeadMemberWithHttpInfo($queue_id, $contentType);
return $response;
}
/**
- * Operation downloadARecordingFileWithHttpInfo
+ * Operation dequeueHeadMemberWithHttpInfo
*
- * Download a Recording File
+ * Dequeue Head Member
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id String that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
*/
- public function downloadARecordingFileWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
+ public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
{
- $request = $this->downloadARecordingFileRequest($recording_id, $contentType);
+ $request = $this->dequeueHeadMemberRequest($queue_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -3990,12 +4656,12 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten
switch ($statusCode) {
- case 200:
- if ('\SplFileObject' === '\SplFileObject') {
+ case 202:
+ if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\SplFileObject' !== 'string') {
+ if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -4013,7 +4679,7 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten
}
return [
- ObjectSerializer::deserialize($content, '\SplFileObject', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -4032,7 +4698,7 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten
);
}
- $returnType = '\SplFileObject';
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -4062,10 +4728,10 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 200:
+ case 202:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\SplFileObject',
+ '\FreeClimb\Api\Model\QueueMember',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -4076,21 +4742,21 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten
}
/**
- * Operation downloadARecordingFileAsync
+ * Operation dequeueHeadMemberAsync
*
- * Download a Recording File
+ * Dequeue Head Member
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id String that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function downloadARecordingFileAsync($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
+ public function dequeueHeadMemberAsync($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
{
- return $this->downloadARecordingFileAsyncWithHttpInfo($recording_id, $contentType)
+ return $this->dequeueHeadMemberAsyncWithHttpInfo($queue_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -4099,22 +4765,22 @@ function ($response) {
}
/**
- * Operation downloadARecordingFileAsyncWithHttpInfo
+ * Operation dequeueHeadMemberAsyncWithHttpInfo
*
- * Download a Recording File
+ * Dequeue Head Member
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id String that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function downloadARecordingFileAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
+ public function dequeueHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
{
- $returnType = '\SplFileObject';
- $request = $this->downloadARecordingFileRequest($recording_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $request = $this->dequeueHeadMemberRequest($queue_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -4153,30 +4819,30 @@ function ($exception) {
}
/**
- * Create request for operation 'downloadARecordingFile'
+ * Create request for operation 'dequeueHeadMember'
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id String that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function downloadARecordingFileRequest($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
+ public function dequeueHeadMemberRequest($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'recording_id' is set
- if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
+ // verify the required parameter 'queue_id' is set
+ if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $recording_id when calling downloadARecordingFile'
+ 'Missing the required parameter $queue_id when calling dequeueHeadMember'
);
}
- $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}/Download';
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -4194,17 +4860,17 @@ public function downloadARecordingFileRequest($recording_id, string $contentType
);
}
// path params
- if ($recording_id !== null) {
+ if ($queue_id !== null) {
$resourcePath = str_replace(
- '{' . 'recordingId' . '}',
- ObjectSerializer::toPathValue($recording_id),
+ '{' . 'queueId' . '}',
+ ObjectSerializer::toPathValue($queue_id),
$resourcePath
);
}
$headers = $this->headerSelector->selectHeaders(
- ['audio/x-wav', ],
+ ['application/json', ],
$contentType,
$multipart
);
@@ -4253,7 +4919,7 @@ public function downloadARecordingFileRequest($recording_id, string $contentType
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'GET',
+ 'POST',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -4261,41 +4927,41 @@ public function downloadARecordingFileRequest($recording_id, string $contentType
}
/**
- * Operation downloadAnExport
+ * Operation downloadARecordingFile
*
- * Download an Export
+ * Download a Recording File
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return string
+ * @return \SplFileObject
*/
- public function downloadAnExport($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
+ public function downloadARecordingFile($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
{
- list($response) = $this->downloadAnExportWithHttpInfo($export_id, $contentType);
+ list($response) = $this->downloadARecordingFileWithHttpInfo($recording_id, $contentType);
return $response;
}
/**
- * Operation downloadAnExportWithHttpInfo
+ * Operation downloadARecordingFileWithHttpInfo
*
- * Download an Export
+ * Download a Recording File
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of string, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
*/
- public function downloadAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
+ public function downloadARecordingFileWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
{
- $request = $this->downloadAnExportRequest($export_id, $contentType);
+ $request = $this->downloadARecordingFileRequest($recording_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -4322,11 +4988,11 @@ public function downloadAnExportWithHttpInfo($export_id, string $contentType = s
switch ($statusCode) {
case 200:
- if ('string' === '\SplFileObject') {
+ if ('\SplFileObject' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('string' !== 'string') {
+ if ('\SplFileObject' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -4344,7 +5010,7 @@ public function downloadAnExportWithHttpInfo($export_id, string $contentType = s
}
return [
- ObjectSerializer::deserialize($content, 'string', []),
+ ObjectSerializer::deserialize($content, '\SplFileObject', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -4363,7 +5029,7 @@ public function downloadAnExportWithHttpInfo($export_id, string $contentType = s
);
}
- $returnType = 'string';
+ $returnType = '\SplFileObject';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -4396,7 +5062,7 @@ public function downloadAnExportWithHttpInfo($export_id, string $contentType = s
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- 'string',
+ '\SplFileObject',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -4407,21 +5073,21 @@ public function downloadAnExportWithHttpInfo($export_id, string $contentType = s
}
/**
- * Operation downloadAnExportAsync
+ * Operation downloadARecordingFileAsync
*
- * Download an Export
+ * Download a Recording File
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function downloadAnExportAsync($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
+ public function downloadARecordingFileAsync($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
{
- return $this->downloadAnExportAsyncWithHttpInfo($export_id, $contentType)
+ return $this->downloadARecordingFileAsyncWithHttpInfo($recording_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -4430,22 +5096,22 @@ function ($response) {
}
/**
- * Operation downloadAnExportAsyncWithHttpInfo
+ * Operation downloadARecordingFileAsyncWithHttpInfo
*
- * Download an Export
+ * Download a Recording File
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function downloadAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
+ public function downloadARecordingFileAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
{
- $returnType = 'string';
- $request = $this->downloadAnExportRequest($export_id, $contentType);
+ $returnType = '\SplFileObject';
+ $request = $this->downloadARecordingFileRequest($recording_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -4484,30 +5150,30 @@ function ($exception) {
}
/**
- * Create request for operation 'downloadAnExport'
+ * Create request for operation 'downloadARecordingFile'
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function downloadAnExportRequest($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
+ public function downloadARecordingFileRequest($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'export_id' is set
- if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) {
+ // verify the required parameter 'recording_id' is set
+ if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $export_id when calling downloadAnExport'
+ 'Missing the required parameter $recording_id when calling downloadARecordingFile'
);
}
- $resourcePath = '/Accounts/{accountId}/Exports/{exportId}/Download';
+ $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}/Download';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -4525,17 +5191,17 @@ public function downloadAnExportRequest($export_id, string $contentType = self::
);
}
// path params
- if ($export_id !== null) {
+ if ($recording_id !== null) {
$resourcePath = str_replace(
- '{' . 'exportId' . '}',
- ObjectSerializer::toPathValue($export_id),
+ '{' . 'recordingId' . '}',
+ ObjectSerializer::toPathValue($recording_id),
$resourcePath
);
}
$headers = $this->headerSelector->selectHeaders(
- ['text/csv', ],
+ ['audio/wav', ],
$contentType,
$multipart
);
@@ -4592,41 +5258,41 @@ public function downloadAnExportRequest($export_id, string $contentType = self::
}
/**
- * Operation filterLogs
+ * Operation downloadAnExport
*
- * Filter Logs
+ * Download an Export
*
- * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\LogList
+ * @return string
*/
- public function filterLogs($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
+ public function downloadAnExport($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
{
- list($response) = $this->filterLogsWithHttpInfo($filter_logs_request, $contentType);
+ list($response) = $this->downloadAnExportWithHttpInfo($export_id, $contentType);
return $response;
}
/**
- * Operation filterLogsWithHttpInfo
+ * Operation downloadAnExportWithHttpInfo
*
- * Filter Logs
+ * Download an Export
*
- * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
- public function filterLogsWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
+ public function downloadAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
{
- $request = $this->filterLogsRequest($filter_logs_request, $contentType);
+ $request = $this->downloadAnExportRequest($export_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -4653,11 +5319,11 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
+ if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\LogList' !== 'string') {
+ if ('string' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -4675,7 +5341,7 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
+ ObjectSerializer::deserialize($content, 'string', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -4694,7 +5360,7 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType
);
}
- $returnType = '\FreeClimb\Api\Model\LogList';
+ $returnType = 'string';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -4727,7 +5393,7 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\LogList',
+ 'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -4738,21 +5404,21 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType
}
/**
- * Operation filterLogsAsync
+ * Operation downloadAnExportAsync
*
- * Filter Logs
+ * Download an Export
*
- * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function filterLogsAsync($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
+ public function downloadAnExportAsync($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
{
- return $this->filterLogsAsyncWithHttpInfo($filter_logs_request, $contentType)
+ return $this->downloadAnExportAsyncWithHttpInfo($export_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -4761,22 +5427,22 @@ function ($response) {
}
/**
- * Operation filterLogsAsyncWithHttpInfo
+ * Operation downloadAnExportAsyncWithHttpInfo
*
- * Filter Logs
+ * Download an Export
*
- * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function filterLogsAsyncWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
+ public function downloadAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
{
- $returnType = '\FreeClimb\Api\Model\LogList';
- $request = $this->filterLogsRequest($filter_logs_request, $contentType);
+ $returnType = 'string';
+ $request = $this->downloadAnExportRequest($export_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -4815,30 +5481,30 @@ function ($exception) {
}
/**
- * Create request for operation 'filterLogs'
+ * Create request for operation 'downloadAnExport'
*
- * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function filterLogsRequest($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
+ public function downloadAnExportRequest($export_id, string $contentType = self::contentTypes['downloadAnExport'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'filter_logs_request' is set
- if ($filter_logs_request === null || (is_array($filter_logs_request) && count($filter_logs_request) === 0)) {
+ // verify the required parameter 'export_id' is set
+ if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $filter_logs_request when calling filterLogs'
+ 'Missing the required parameter $export_id when calling downloadAnExport'
);
}
- $resourcePath = '/Accounts/{accountId}/Logs';
+ $resourcePath = '/Accounts/{accountId}/Exports/{exportId}/Download';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -4855,23 +5521,24 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se
$resourcePath
);
}
+ // path params
+ if ($export_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'exportId' . '}',
+ ObjectSerializer::toPathValue($export_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
- ['application/json', ],
+ ['text/csv', ],
$contentType,
$multipart
);
// for model (json/xml)
- if (isset($filter_logs_request)) {
- if (stripos($headers['Content-Type'], 'application/json') !== false) {
- # if Content-Type contains "application/json", json_encode the body
- $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($filter_logs_request));
- } else {
- $httpBody = $filter_logs_request;
- }
- } elseif (count($formParams) > 0) {
+ if (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -4914,7 +5581,7 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'POST',
+ 'GET',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -4922,41 +5589,41 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se
}
/**
- * Operation getACall
+ * Operation filterLogs
*
- * Get a Call
+ * Filter Logs
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\CallResult
+ * @return \FreeClimb\Api\Model\LogList
*/
- public function getACall($call_id, string $contentType = self::contentTypes['getACall'][0])
+ public function filterLogs($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
{
- list($response) = $this->getACallWithHttpInfo($call_id, $contentType);
+ list($response) = $this->filterLogsWithHttpInfo($filter_logs_request, $contentType);
return $response;
}
/**
- * Operation getACallWithHttpInfo
+ * Operation filterLogsWithHttpInfo
*
- * Get a Call
+ * Filter Logs
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
*/
- public function getACallWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0])
+ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
{
- $request = $this->getACallRequest($call_id, $contentType);
+ $request = $this->filterLogsRequest($filter_logs_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -4983,11 +5650,11 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\CallResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\LogList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -5005,7 +5672,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -5024,7 +5691,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte
);
}
- $returnType = '\FreeClimb\Api\Model\CallResult';
+ $returnType = '\FreeClimb\Api\Model\LogList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -5057,7 +5724,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\CallResult',
+ '\FreeClimb\Api\Model\LogList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -5068,21 +5735,21 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte
}
/**
- * Operation getACallAsync
+ * Operation filterLogsAsync
*
- * Get a Call
+ * Filter Logs
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getACallAsync($call_id, string $contentType = self::contentTypes['getACall'][0])
+ public function filterLogsAsync($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
{
- return $this->getACallAsyncWithHttpInfo($call_id, $contentType)
+ return $this->filterLogsAsyncWithHttpInfo($filter_logs_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -5091,22 +5758,22 @@ function ($response) {
}
/**
- * Operation getACallAsyncWithHttpInfo
+ * Operation filterLogsAsyncWithHttpInfo
*
- * Get a Call
+ * Filter Logs
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getACallAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0])
+ public function filterLogsAsyncWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
{
- $returnType = '\FreeClimb\Api\Model\CallResult';
- $request = $this->getACallRequest($call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\LogList';
+ $request = $this->filterLogsRequest($filter_logs_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -5145,30 +5812,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getACall'
+ * Create request for operation 'filterLogs'
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getACallRequest($call_id, string $contentType = self::contentTypes['getACall'][0])
+ public function filterLogsRequest($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ // verify the required parameter 'filter_logs_request' is set
+ if ($filter_logs_request === null || (is_array($filter_logs_request) && count($filter_logs_request) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling getACall'
+ 'Missing the required parameter $filter_logs_request when calling filterLogs'
);
}
- $resourcePath = '/Accounts/{accountId}/Calls/{callId}';
+ $resourcePath = '/Accounts/{accountId}/Logs';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -5185,14 +5852,6 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp
$resourcePath
);
}
- // path params
- if ($call_id !== null) {
- $resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -5202,7 +5861,14 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp
);
// for model (json/xml)
- if (count($formParams) > 0) {
+ if (isset($filter_logs_request)) {
+ if (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the body
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($filter_logs_request));
+ } else {
+ $httpBody = $filter_logs_request;
+ }
+ } elseif (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -5245,7 +5911,7 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'GET',
+ 'POST',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -5253,41 +5919,41 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp
}
/**
- * Operation getAConference
+ * Operation getACall
*
- * Get a Conference
+ * Get a Call
*
- * @param string $conference_id A string that uniquely identifies this conference resource. (required)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ConferenceResult
+ * @return \FreeClimb\Api\Model\CallResult
*/
- public function getAConference($conference_id, string $contentType = self::contentTypes['getAConference'][0])
+ public function getACall($call_id, string $contentType = self::contentTypes['getACall'][0])
{
- list($response) = $this->getAConferenceWithHttpInfo($conference_id, $contentType);
+ list($response) = $this->getACallWithHttpInfo($call_id, $contentType);
return $response;
}
/**
- * Operation getAConferenceWithHttpInfo
+ * Operation getACallWithHttpInfo
*
- * Get a Conference
+ * Get a Call
*
- * @param string $conference_id A string that uniquely identifies this conference resource. (required)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ConferenceResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAConferenceWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0])
+ public function getACallWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0])
{
- $request = $this->getAConferenceRequest($conference_id, $contentType);
+ $request = $this->getACallRequest($call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -5314,11 +5980,11 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType =
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ConferenceResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ConferenceResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\CallResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -5336,7 +6002,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType =
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -5355,7 +6021,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType =
);
}
- $returnType = '\FreeClimb\Api\Model\ConferenceResult';
+ $returnType = '\FreeClimb\Api\Model\CallResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -5388,7 +6054,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType =
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ConferenceResult',
+ '\FreeClimb\Api\Model\CallResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -5399,21 +6065,21 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType =
}
/**
- * Operation getAConferenceAsync
+ * Operation getACallAsync
*
- * Get a Conference
+ * Get a Call
*
- * @param string $conference_id A string that uniquely identifies this conference resource. (required)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAConferenceAsync($conference_id, string $contentType = self::contentTypes['getAConference'][0])
+ public function getACallAsync($call_id, string $contentType = self::contentTypes['getACall'][0])
{
- return $this->getAConferenceAsyncWithHttpInfo($conference_id, $contentType)
+ return $this->getACallAsyncWithHttpInfo($call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -5422,22 +6088,22 @@ function ($response) {
}
/**
- * Operation getAConferenceAsyncWithHttpInfo
+ * Operation getACallAsyncWithHttpInfo
*
- * Get a Conference
+ * Get a Call
*
- * @param string $conference_id A string that uniquely identifies this conference resource. (required)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAConferenceAsyncWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0])
+ public function getACallAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0])
{
- $returnType = '\FreeClimb\Api\Model\ConferenceResult';
- $request = $this->getAConferenceRequest($conference_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\CallResult';
+ $request = $this->getACallRequest($call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -5476,30 +6142,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAConference'
+ * Create request for operation 'getACall'
*
- * @param string $conference_id A string that uniquely identifies this conference resource. (required)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAConferenceRequest($conference_id, string $contentType = self::contentTypes['getAConference'][0])
+ public function getACallRequest($call_id, string $contentType = self::contentTypes['getACall'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'conference_id' is set
- if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $conference_id when calling getAConference'
+ 'Missing the required parameter $call_id when calling getACall'
);
}
- $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}';
+ $resourcePath = '/Accounts/{accountId}/Calls/{callId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -5517,10 +6183,10 @@ public function getAConferenceRequest($conference_id, string $contentType = self
);
}
// path params
- if ($conference_id !== null) {
+ if ($call_id !== null) {
$resourcePath = str_replace(
- '{' . 'conferenceId' . '}',
- ObjectSerializer::toPathValue($conference_id),
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
$resourcePath
);
}
@@ -5584,45 +6250,41 @@ public function getAConferenceRequest($conference_id, string $contentType = self
}
/**
- * Operation getAMember
+ * Operation getAConference
*
- * Get a Member
+ * Get a Conference
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID of the Call that the Member belongs to (required)
+ * @param string $conference_id A string that uniquely identifies this conference resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueMember
+ * @return \FreeClimb\Api\Model\ConferenceResult
*/
- public function getAMember($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
+ public function getAConference($conference_id, string $contentType = self::contentTypes['getAConference'][0])
{
- list($response) = $this->getAMemberWithHttpInfo($queue_id, $call_id, $contentType);
+ list($response) = $this->getAConferenceWithHttpInfo($conference_id, $contentType);
return $response;
}
/**
- * Operation getAMemberWithHttpInfo
+ * Operation getAConferenceWithHttpInfo
*
- * Get a Member
+ * Get a Conference
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID of the Call that the Member belongs to (required)
+ * @param string $conference_id A string that uniquely identifies this conference resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ConferenceResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
+ public function getAConferenceWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0])
{
- $request = $this->getAMemberRequest($queue_id, $call_id, $contentType);
+ $request = $this->getAConferenceRequest($conference_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -5649,11 +6311,11 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ConferenceResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
+ if ('\FreeClimb\Api\Model\ConferenceResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -5671,7 +6333,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -5690,7 +6352,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType
);
}
- $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $returnType = '\FreeClimb\Api\Model\ConferenceResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -5723,7 +6385,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueMember',
+ '\FreeClimb\Api\Model\ConferenceResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -5734,23 +6396,21 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType
}
/**
- * Operation getAMemberAsync
+ * Operation getAConferenceAsync
*
- * Get a Member
+ * Get a Conference
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID of the Call that the Member belongs to (required)
+ * @param string $conference_id A string that uniquely identifies this conference resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
+ public function getAConferenceAsync($conference_id, string $contentType = self::contentTypes['getAConference'][0])
{
- return $this->getAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType)
+ return $this->getAConferenceAsyncWithHttpInfo($conference_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -5759,24 +6419,22 @@ function ($response) {
}
/**
- * Operation getAMemberAsyncWithHttpInfo
+ * Operation getAConferenceAsyncWithHttpInfo
*
- * Get a Member
+ * Get a Conference
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID of the Call that the Member belongs to (required)
+ * @param string $conference_id A string that uniquely identifies this conference resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
+ public function getAConferenceAsyncWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueMember';
- $request = $this->getAMemberRequest($queue_id, $call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ConferenceResult';
+ $request = $this->getAConferenceRequest($conference_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -5815,39 +6473,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAMember'
+ * Create request for operation 'getAConference'
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
-
- * @param string $call_id ID of the Call that the Member belongs to (required)
+ * @param string $conference_id A string that uniquely identifies this conference resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
+ public function getAConferenceRequest($conference_id, string $contentType = self::contentTypes['getAConference'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'queue_id' is set
- if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling getAMember'
- );
- }
-
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ // verify the required parameter 'conference_id' is set
+ if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling getAMember'
+ 'Missing the required parameter $conference_id when calling getAConference'
);
}
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}';
+ $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -5865,18 +6514,10 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel
);
}
// path params
- if ($queue_id !== null) {
- $resourcePath = str_replace(
- '{' . 'queueId' . '}',
- ObjectSerializer::toPathValue($queue_id),
- $resourcePath
- );
- }
- // path params
- if ($call_id !== null) {
+ if ($conference_id !== null) {
$resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
+ '{' . 'conferenceId' . '}',
+ ObjectSerializer::toPathValue($conference_id),
$resourcePath
);
}
@@ -5940,45 +6581,45 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel
}
/**
- * Operation getAParticipant
+ * Operation getAMember
*
- * Get a Participant
+ * Get a Member
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param string $call_id ID of the Call that the Member belongs to (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ConferenceParticipantResult
+ * @return \FreeClimb\Api\Model\QueueMember
*/
- public function getAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
+ public function getAMember($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
{
- list($response) = $this->getAParticipantWithHttpInfo($conference_id, $call_id, $contentType);
+ list($response) = $this->getAMemberWithHttpInfo($queue_id, $call_id, $contentType);
return $response;
}
/**
- * Operation getAParticipantWithHttpInfo
+ * Operation getAMemberWithHttpInfo
*
- * Get a Participant
+ * Get a Member
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param string $call_id ID of the Call that the Member belongs to (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ConferenceParticipantResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
+ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
{
- $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType);
+ $request = $this->getAMemberRequest($queue_id, $call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -6005,11 +6646,11 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ConferenceParticipantResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ConferenceParticipantResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -6027,7 +6668,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -6046,7 +6687,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co
);
}
- $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult';
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -6079,7 +6720,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ConferenceParticipantResult',
+ '\FreeClimb\Api\Model\QueueMember',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -6090,23 +6731,23 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co
}
/**
- * Operation getAParticipantAsync
+ * Operation getAMemberAsync
*
- * Get a Participant
+ * Get a Member
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param string $call_id ID of the Call that the Member belongs to (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
+ public function getAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
{
- return $this->getAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType)
+ return $this->getAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -6115,24 +6756,24 @@ function ($response) {
}
/**
- * Operation getAParticipantAsyncWithHttpInfo
+ * Operation getAMemberAsyncWithHttpInfo
*
- * Get a Participant
+ * Get a Member
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param string $call_id ID of the Call that the Member belongs to (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
+ public function getAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
{
- $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult';
- $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $request = $this->getAMemberRequest($queue_id, $call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -6171,39 +6812,39 @@ function ($exception) {
}
/**
- * Create request for operation 'getAParticipant'
+ * Create request for operation 'getAMember'
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param string $call_id ID of the Call that the Member belongs to (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
+ public function getAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'conference_id' is set
- if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ // verify the required parameter 'queue_id' is set
+ if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $conference_id when calling getAParticipant'
+ 'Missing the required parameter $queue_id when calling getAMember'
);
}
// verify the required parameter 'call_id' is set
if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling getAParticipant'
+ 'Missing the required parameter $call_id when calling getAMember'
);
}
- $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}';
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -6221,10 +6862,10 @@ public function getAParticipantRequest($conference_id, $call_id, string $content
);
}
// path params
- if ($conference_id !== null) {
+ if ($queue_id !== null) {
$resourcePath = str_replace(
- '{' . 'conferenceId' . '}',
- ObjectSerializer::toPathValue($conference_id),
+ '{' . 'queueId' . '}',
+ ObjectSerializer::toPathValue($queue_id),
$resourcePath
);
}
@@ -6296,41 +6937,45 @@ public function getAParticipantRequest($conference_id, $call_id, string $content
}
/**
- * Operation getAQueue
+ * Operation getAParticipant
*
- * Get a Queue
+ * Get a Participant
*
- * @param string $queue_id A string that uniquely identifies this queue resource. (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueResult
+ * @return \FreeClimb\Api\Model\ConferenceParticipantResult
*/
- public function getAQueue($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
+ public function getAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
{
- list($response) = $this->getAQueueWithHttpInfo($queue_id, $contentType);
+ list($response) = $this->getAParticipantWithHttpInfo($conference_id, $call_id, $contentType);
return $response;
}
/**
- * Operation getAQueueWithHttpInfo
+ * Operation getAParticipantWithHttpInfo
*
- * Get a Queue
+ * Get a Participant
*
- * @param string $queue_id A string that uniquely identifies this queue resource. (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ConferenceParticipantResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAQueueWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
+ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
{
- $request = $this->getAQueueRequest($queue_id, $contentType);
+ $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -6357,11 +7002,11 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\QueueResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ConferenceParticipantResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\ConferenceParticipantResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -6379,7 +7024,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -6398,7 +7043,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con
);
}
- $returnType = '\FreeClimb\Api\Model\QueueResult';
+ $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -6431,7 +7076,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueResult',
+ '\FreeClimb\Api\Model\ConferenceParticipantResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -6442,21 +7087,23 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con
}
/**
- * Operation getAQueueAsync
+ * Operation getAParticipantAsync
*
- * Get a Queue
+ * Get a Participant
*
- * @param string $queue_id A string that uniquely identifies this queue resource. (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAQueueAsync($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
+ public function getAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
{
- return $this->getAQueueAsyncWithHttpInfo($queue_id, $contentType)
+ return $this->getAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -6465,22 +7112,24 @@ function ($response) {
}
/**
- * Operation getAQueueAsyncWithHttpInfo
+ * Operation getAParticipantAsyncWithHttpInfo
*
- * Get a Queue
+ * Get a Participant
*
- * @param string $queue_id A string that uniquely identifies this queue resource. (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAQueueAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
+ public function getAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueResult';
- $request = $this->getAQueueRequest($queue_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult';
+ $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -6519,30 +7168,39 @@ function ($exception) {
}
/**
- * Create request for operation 'getAQueue'
+ * Create request for operation 'getAParticipant'
*
- * @param string $queue_id A string that uniquely identifies this queue resource. (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
- *
- * @throws \InvalidArgumentException
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAQueueRequest($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
+ public function getAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'queue_id' is set
- if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
+ // verify the required parameter 'conference_id' is set
+ if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling getAQueue'
+ 'Missing the required parameter $conference_id when calling getAParticipant'
+ );
+ }
+
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $call_id when calling getAParticipant'
);
}
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}';
+ $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -6560,10 +7218,18 @@ public function getAQueueRequest($queue_id, string $contentType = self::contentT
);
}
// path params
- if ($queue_id !== null) {
+ if ($conference_id !== null) {
$resourcePath = str_replace(
- '{' . 'queueId' . '}',
- ObjectSerializer::toPathValue($queue_id),
+ '{' . 'conferenceId' . '}',
+ ObjectSerializer::toPathValue($conference_id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($call_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
$resourcePath
);
}
@@ -6627,41 +7293,41 @@ public function getAQueueRequest($queue_id, string $contentType = self::contentT
}
/**
- * Operation getARecording
+ * Operation getAQueue
*
- * Get a Recording
+ * Get a Queue
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id A string that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\RecordingResult
+ * @return \FreeClimb\Api\Model\QueueResult
*/
- public function getARecording($recording_id, string $contentType = self::contentTypes['getARecording'][0])
+ public function getAQueue($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
{
- list($response) = $this->getARecordingWithHttpInfo($recording_id, $contentType);
+ list($response) = $this->getAQueueWithHttpInfo($queue_id, $contentType);
return $response;
}
/**
- * Operation getARecordingWithHttpInfo
+ * Operation getAQueueWithHttpInfo
*
- * Get a Recording
+ * Get a Queue
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id A string that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\RecordingResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\QueueResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0])
+ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
{
- $request = $this->getARecordingRequest($recording_id, $contentType);
+ $request = $this->getAQueueRequest($queue_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -6688,11 +7354,11 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\RecordingResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\QueueResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\RecordingResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\QueueResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -6710,7 +7376,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -6729,7 +7395,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s
);
}
- $returnType = '\FreeClimb\Api\Model\RecordingResult';
+ $returnType = '\FreeClimb\Api\Model\QueueResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -6762,7 +7428,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\RecordingResult',
+ '\FreeClimb\Api\Model\QueueResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -6773,21 +7439,21 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s
}
/**
- * Operation getARecordingAsync
+ * Operation getAQueueAsync
*
- * Get a Recording
+ * Get a Queue
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id A string that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getARecordingAsync($recording_id, string $contentType = self::contentTypes['getARecording'][0])
+ public function getAQueueAsync($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
{
- return $this->getARecordingAsyncWithHttpInfo($recording_id, $contentType)
+ return $this->getAQueueAsyncWithHttpInfo($queue_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -6796,22 +7462,22 @@ function ($response) {
}
/**
- * Operation getARecordingAsyncWithHttpInfo
+ * Operation getAQueueAsyncWithHttpInfo
*
- * Get a Recording
+ * Get a Queue
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id A string that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0])
+ public function getAQueueAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
{
- $returnType = '\FreeClimb\Api\Model\RecordingResult';
- $request = $this->getARecordingRequest($recording_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\QueueResult';
+ $request = $this->getAQueueRequest($queue_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -6850,30 +7516,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getARecording'
+ * Create request for operation 'getAQueue'
*
- * @param string $recording_id String that uniquely identifies this recording resource. (required)
+ * @param string $queue_id A string that uniquely identifies this queue resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getARecordingRequest($recording_id, string $contentType = self::contentTypes['getARecording'][0])
+ public function getAQueueRequest($queue_id, string $contentType = self::contentTypes['getAQueue'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'recording_id' is set
- if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
+ // verify the required parameter 'queue_id' is set
+ if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $recording_id when calling getARecording'
+ 'Missing the required parameter $queue_id when calling getAQueue'
);
}
- $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}';
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -6891,10 +7557,10 @@ public function getARecordingRequest($recording_id, string $contentType = self::
);
}
// path params
- if ($recording_id !== null) {
+ if ($queue_id !== null) {
$resourcePath = str_replace(
- '{' . 'recordingId' . '}',
- ObjectSerializer::toPathValue($recording_id),
+ '{' . 'queueId' . '}',
+ ObjectSerializer::toPathValue($queue_id),
$resourcePath
);
}
@@ -6958,37 +7624,41 @@ public function getARecordingRequest($recording_id, string $contentType = self::
}
/**
- * Operation getAnAccount
+ * Operation getARecording
*
- * Get an Account
+ * Get a Recording
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\AccountResult
+ * @return \FreeClimb\Api\Model\RecordingResult
*/
- public function getAnAccount(string $contentType = self::contentTypes['getAnAccount'][0])
+ public function getARecording($recording_id, string $contentType = self::contentTypes['getARecording'][0])
{
- list($response) = $this->getAnAccountWithHttpInfo($contentType);
+ list($response) = $this->getARecordingWithHttpInfo($recording_id, $contentType);
return $response;
}
/**
- * Operation getAnAccountWithHttpInfo
+ * Operation getARecordingWithHttpInfo
*
- * Get an Account
+ * Get a Recording
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\AccountResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\RecordingResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAnAccountWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0])
+ public function getARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0])
{
- $request = $this->getAnAccountRequest($contentType);
+ $request = $this->getARecordingRequest($recording_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -7015,11 +7685,11 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\AccountResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\RecordingResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\AccountResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\RecordingResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -7037,7 +7707,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AccountResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -7056,7 +7726,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType
);
}
- $returnType = '\FreeClimb\Api\Model\AccountResult';
+ $returnType = '\FreeClimb\Api\Model\RecordingResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -7089,7 +7759,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\AccountResult',
+ '\FreeClimb\Api\Model\RecordingResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -7100,19 +7770,21 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType
}
/**
- * Operation getAnAccountAsync
+ * Operation getARecordingAsync
*
- * Get an Account
+ * Get a Recording
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnAccountAsync(string $contentType = self::contentTypes['getAnAccount'][0])
+ public function getARecordingAsync($recording_id, string $contentType = self::contentTypes['getARecording'][0])
{
- return $this->getAnAccountAsyncWithHttpInfo($contentType)
+ return $this->getARecordingAsyncWithHttpInfo($recording_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -7121,20 +7793,22 @@ function ($response) {
}
/**
- * Operation getAnAccountAsyncWithHttpInfo
+ * Operation getARecordingAsyncWithHttpInfo
*
- * Get an Account
+ * Get a Recording
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnAccountAsyncWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0])
+ public function getARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0])
{
- $returnType = '\FreeClimb\Api\Model\AccountResult';
- $request = $this->getAnAccountRequest($contentType);
+ $returnType = '\FreeClimb\Api\Model\RecordingResult';
+ $request = $this->getARecordingRequest($recording_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -7173,21 +7847,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAnAccount'
+ * Create request for operation 'getARecording'
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
+ * @param string $recording_id String that uniquely identifies this recording resource. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAnAccountRequest(string $contentType = self::contentTypes['getAnAccount'][0])
+ public function getARecordingRequest($recording_id, string $contentType = self::contentTypes['getARecording'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'recording_id' is set
+ if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $recording_id when calling getARecording'
+ );
+ }
+
- $resourcePath = '/Accounts/{accountId}';
+ $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -7204,6 +7887,14 @@ public function getAnAccountRequest(string $contentType = self::contentTypes['ge
$resourcePath
);
}
+ // path params
+ if ($recording_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'recordingId' . '}',
+ ObjectSerializer::toPathValue($recording_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -7264,41 +7955,37 @@ public function getAnAccountRequest(string $contentType = self::contentTypes['ge
}
/**
- * Operation getAnApplication
+ * Operation getAnAccount
*
- * Get an Application
+ * Get an Account
*
- * @param string $application_id A string that uniquely identifies this application resource. (required)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ApplicationResult
+ * @return \FreeClimb\Api\Model\AccountResult
*/
- public function getAnApplication($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
+ public function getAnAccount(string $contentType = self::contentTypes['getAnAccount'][0])
{
- list($response) = $this->getAnApplicationWithHttpInfo($application_id, $contentType);
+ list($response) = $this->getAnAccountWithHttpInfo($contentType);
return $response;
}
/**
- * Operation getAnApplicationWithHttpInfo
+ * Operation getAnAccountWithHttpInfo
*
- * Get an Application
+ * Get an Account
*
- * @param string $application_id A string that uniquely identifies this application resource. (required)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ApplicationResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\AccountResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
+ public function getAnAccountWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0])
{
- $request = $this->getAnApplicationRequest($application_id, $contentType);
+ $request = $this->getAnAccountRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -7325,11 +8012,11 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ApplicationResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\AccountResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ApplicationResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\AccountResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -7347,7 +8034,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AccountResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -7366,7 +8053,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp
);
}
- $returnType = '\FreeClimb\Api\Model\ApplicationResult';
+ $returnType = '\FreeClimb\Api\Model\AccountResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -7399,7 +8086,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ApplicationResult',
+ '\FreeClimb\Api\Model\AccountResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -7410,21 +8097,19 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp
}
/**
- * Operation getAnApplicationAsync
+ * Operation getAnAccountAsync
*
- * Get an Application
+ * Get an Account
*
- * @param string $application_id A string that uniquely identifies this application resource. (required)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnApplicationAsync($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
+ public function getAnAccountAsync(string $contentType = self::contentTypes['getAnAccount'][0])
{
- return $this->getAnApplicationAsyncWithHttpInfo($application_id, $contentType)
+ return $this->getAnAccountAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -7433,22 +8118,20 @@ function ($response) {
}
/**
- * Operation getAnApplicationAsyncWithHttpInfo
+ * Operation getAnAccountAsyncWithHttpInfo
*
- * Get an Application
+ * Get an Account
*
- * @param string $application_id A string that uniquely identifies this application resource. (required)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
+ public function getAnAccountAsyncWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0])
{
- $returnType = '\FreeClimb\Api\Model\ApplicationResult';
- $request = $this->getAnApplicationRequest($application_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\AccountResult';
+ $request = $this->getAnAccountRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -7487,30 +8170,21 @@ function ($exception) {
}
/**
- * Create request for operation 'getAnApplication'
+ * Create request for operation 'getAnAccount'
*
- * @param string $application_id A string that uniquely identifies this application resource. (required)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAnApplicationRequest($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
+ public function getAnAccountRequest(string $contentType = self::contentTypes['getAnAccount'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'application_id' is set
- if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $application_id when calling getAnApplication'
- );
- }
-
- $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}';
+ $resourcePath = '/Accounts/{accountId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -7527,14 +8201,6 @@ public function getAnApplicationRequest($application_id, string $contentType = s
$resourcePath
);
}
- // path params
- if ($application_id !== null) {
- $resourcePath = str_replace(
- '{' . 'applicationId' . '}',
- ObjectSerializer::toPathValue($application_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -7595,41 +8261,41 @@ public function getAnApplicationRequest($application_id, string $contentType = s
}
/**
- * Operation getAnExport
+ * Operation getAnApplication
*
- * Get an Export
+ * Get an Application
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $application_id A string that uniquely identifies this application resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ExportResult
+ * @return \FreeClimb\Api\Model\ApplicationResult
*/
- public function getAnExport($export_id, string $contentType = self::contentTypes['getAnExport'][0])
+ public function getAnApplication($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
{
- list($response) = $this->getAnExportWithHttpInfo($export_id, $contentType);
+ list($response) = $this->getAnApplicationWithHttpInfo($application_id, $contentType);
return $response;
}
/**
- * Operation getAnExportWithHttpInfo
+ * Operation getAnApplicationWithHttpInfo
*
- * Get an Export
+ * Get an Application
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $application_id A string that uniquely identifies this application resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ApplicationResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0])
+ public function getAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
{
- $request = $this->getAnExportRequest($export_id, $contentType);
+ $request = $this->getAnApplicationRequest($application_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -7656,11 +8322,11 @@ public function getAnExportWithHttpInfo($export_id, string $contentType = self::
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ApplicationResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ExportResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\ApplicationResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -7678,7 +8344,7 @@ public function getAnExportWithHttpInfo($export_id, string $contentType = self::
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -7697,7 +8363,7 @@ public function getAnExportWithHttpInfo($export_id, string $contentType = self::
);
}
- $returnType = '\FreeClimb\Api\Model\ExportResult';
+ $returnType = '\FreeClimb\Api\Model\ApplicationResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -7730,7 +8396,7 @@ public function getAnExportWithHttpInfo($export_id, string $contentType = self::
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ExportResult',
+ '\FreeClimb\Api\Model\ApplicationResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -7741,21 +8407,21 @@ public function getAnExportWithHttpInfo($export_id, string $contentType = self::
}
/**
- * Operation getAnExportAsync
+ * Operation getAnApplicationAsync
*
- * Get an Export
+ * Get an Application
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $application_id A string that uniquely identifies this application resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnExportAsync($export_id, string $contentType = self::contentTypes['getAnExport'][0])
+ public function getAnApplicationAsync($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
{
- return $this->getAnExportAsyncWithHttpInfo($export_id, $contentType)
+ return $this->getAnApplicationAsyncWithHttpInfo($application_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -7764,22 +8430,22 @@ function ($response) {
}
/**
- * Operation getAnExportAsyncWithHttpInfo
+ * Operation getAnApplicationAsyncWithHttpInfo
*
- * Get an Export
+ * Get an Application
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $application_id A string that uniquely identifies this application resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0])
+ public function getAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
{
- $returnType = '\FreeClimb\Api\Model\ExportResult';
- $request = $this->getAnExportRequest($export_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ApplicationResult';
+ $request = $this->getAnApplicationRequest($application_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -7818,30 +8484,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAnExport'
+ * Create request for operation 'getAnApplication'
*
- * @param string $export_id A string that uniquely identifies this export resource. (required)
+ * @param string $application_id A string that uniquely identifies this application resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAnExportRequest($export_id, string $contentType = self::contentTypes['getAnExport'][0])
+ public function getAnApplicationRequest($application_id, string $contentType = self::contentTypes['getAnApplication'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'export_id' is set
- if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) {
+ // verify the required parameter 'application_id' is set
+ if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $export_id when calling getAnExport'
+ 'Missing the required parameter $application_id when calling getAnApplication'
);
}
- $resourcePath = '/Accounts/{accountId}/Exports/{exportId}';
+ $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -7859,10 +8525,10 @@ public function getAnExportRequest($export_id, string $contentType = self::conte
);
}
// path params
- if ($export_id !== null) {
+ if ($application_id !== null) {
$resourcePath = str_replace(
- '{' . 'exportId' . '}',
- ObjectSerializer::toPathValue($export_id),
+ '{' . 'applicationId' . '}',
+ ObjectSerializer::toPathValue($application_id),
$resourcePath
);
}
@@ -7926,41 +8592,41 @@ public function getAnExportRequest($export_id, string $contentType = self::conte
}
/**
- * Operation getAnIncomingNumber
+ * Operation getAnExport
*
- * Get an Incoming Number
+ * Get an Export
*
- * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\IncomingNumberResult
+ * @return \FreeClimb\Api\Model\ExportResult
*/
- public function getAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
+ public function getAnExport($export_id, string $contentType = self::contentTypes['getAnExport'][0])
{
- list($response) = $this->getAnIncomingNumberWithHttpInfo($phone_number_id, $contentType);
+ list($response) = $this->getAnExportWithHttpInfo($export_id, $contentType);
return $response;
}
/**
- * Operation getAnIncomingNumberWithHttpInfo
+ * Operation getAnExportWithHttpInfo
*
- * Get an Incoming Number
+ * Get an Export
*
- * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\IncomingNumberResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
+ public function getAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0])
{
- $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType);
+ $request = $this->getAnExportRequest($export_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -7987,11 +8653,11 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\IncomingNumberResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\IncomingNumberResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\ExportResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -8009,7 +8675,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -8028,7 +8694,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten
);
}
- $returnType = '\FreeClimb\Api\Model\IncomingNumberResult';
+ $returnType = '\FreeClimb\Api\Model\ExportResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -8061,7 +8727,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\IncomingNumberResult',
+ '\FreeClimb\Api\Model\ExportResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -8072,21 +8738,21 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten
}
/**
- * Operation getAnIncomingNumberAsync
+ * Operation getAnExportAsync
*
- * Get an Incoming Number
+ * Get an Export
*
- * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
+ public function getAnExportAsync($export_id, string $contentType = self::contentTypes['getAnExport'][0])
{
- return $this->getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType)
+ return $this->getAnExportAsyncWithHttpInfo($export_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -8095,22 +8761,22 @@ function ($response) {
}
/**
- * Operation getAnIncomingNumberAsyncWithHttpInfo
+ * Operation getAnExportAsyncWithHttpInfo
*
- * Get an Incoming Number
+ * Get an Export
*
- * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
+ public function getAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0])
{
- $returnType = '\FreeClimb\Api\Model\IncomingNumberResult';
- $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ExportResult';
+ $request = $this->getAnExportRequest($export_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -8149,30 +8815,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAnIncomingNumber'
+ * Create request for operation 'getAnExport'
*
- * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
+ * @param string $export_id A string that uniquely identifies this export resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
+ public function getAnExportRequest($export_id, string $contentType = self::contentTypes['getAnExport'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'phone_number_id' is set
- if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) {
+ // verify the required parameter 'export_id' is set
+ if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $phone_number_id when calling getAnIncomingNumber'
+ 'Missing the required parameter $export_id when calling getAnExport'
);
}
- $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}';
+ $resourcePath = '/Accounts/{accountId}/Exports/{exportId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -8190,10 +8856,10 @@ public function getAnIncomingNumberRequest($phone_number_id, string $contentType
);
}
// path params
- if ($phone_number_id !== null) {
+ if ($export_id !== null) {
$resourcePath = str_replace(
- '{' . 'phoneNumberId' . '}',
- ObjectSerializer::toPathValue($phone_number_id),
+ '{' . 'exportId' . '}',
+ ObjectSerializer::toPathValue($export_id),
$resourcePath
);
}
@@ -8257,41 +8923,41 @@ public function getAnIncomingNumberRequest($phone_number_id, string $contentType
}
/**
- * Operation getAnSmsMessage
+ * Operation getAnIncomingNumber
*
- * Get an SMS Message
+ * Get an Incoming Number
*
- * @param string $message_id String that uniquely identifies this Message resource. (required)
+ * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\MessageResult
+ * @return \FreeClimb\Api\Model\IncomingNumberResult
*/
- public function getAnSmsMessage($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
+ public function getAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
{
- list($response) = $this->getAnSmsMessageWithHttpInfo($message_id, $contentType);
+ list($response) = $this->getAnIncomingNumberWithHttpInfo($phone_number_id, $contentType);
return $response;
}
/**
- * Operation getAnSmsMessageWithHttpInfo
+ * Operation getAnIncomingNumberWithHttpInfo
*
- * Get an SMS Message
+ * Get an Incoming Number
*
- * @param string $message_id String that uniquely identifies this Message resource. (required)
+ * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\MessageResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\IncomingNumberResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
+ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
{
- $request = $this->getAnSmsMessageRequest($message_id, $contentType);
+ $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -8318,11 +8984,11 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\MessageResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\IncomingNumberResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\MessageResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\IncomingNumberResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -8340,7 +9006,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessageResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -8359,7 +9025,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s
);
}
- $returnType = '\FreeClimb\Api\Model\MessageResult';
+ $returnType = '\FreeClimb\Api\Model\IncomingNumberResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -8392,7 +9058,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\MessageResult',
+ '\FreeClimb\Api\Model\IncomingNumberResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -8403,21 +9069,21 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s
}
/**
- * Operation getAnSmsMessageAsync
+ * Operation getAnIncomingNumberAsync
*
- * Get an SMS Message
+ * Get an Incoming Number
*
- * @param string $message_id String that uniquely identifies this Message resource. (required)
+ * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnSmsMessageAsync($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
+ public function getAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
{
- return $this->getAnSmsMessageAsyncWithHttpInfo($message_id, $contentType)
+ return $this->getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -8426,22 +9092,22 @@ function ($response) {
}
/**
- * Operation getAnSmsMessageAsyncWithHttpInfo
+ * Operation getAnIncomingNumberAsyncWithHttpInfo
*
- * Get an SMS Message
+ * Get an Incoming Number
*
- * @param string $message_id String that uniquely identifies this Message resource. (required)
+ * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getAnSmsMessageAsyncWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
+ public function getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
{
- $returnType = '\FreeClimb\Api\Model\MessageResult';
- $request = $this->getAnSmsMessageRequest($message_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\IncomingNumberResult';
+ $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -8480,30 +9146,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getAnSmsMessage'
+ * Create request for operation 'getAnIncomingNumber'
*
- * @param string $message_id String that uniquely identifies this Message resource. (required)
+ * @param string $phone_number_id String that uniquely identifies this phone number resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getAnSmsMessageRequest($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
+ public function getAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'message_id' is set
- if ($message_id === null || (is_array($message_id) && count($message_id) === 0)) {
+ // verify the required parameter 'phone_number_id' is set
+ if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $message_id when calling getAnSmsMessage'
+ 'Missing the required parameter $phone_number_id when calling getAnIncomingNumber'
);
}
- $resourcePath = '/Accounts/{accountId}/Messages/{messageId}';
+ $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -8521,10 +9187,10 @@ public function getAnSmsMessageRequest($message_id, string $contentType = self::
);
}
// path params
- if ($message_id !== null) {
+ if ($phone_number_id !== null) {
$resourcePath = str_replace(
- '{' . 'messageId' . '}',
- ObjectSerializer::toPathValue($message_id),
+ '{' . 'phoneNumberId' . '}',
+ ObjectSerializer::toPathValue($phone_number_id),
$resourcePath
);
}
@@ -8588,41 +9254,41 @@ public function getAnSmsMessageRequest($message_id, string $contentType = self::
}
/**
- * Operation getHeadMember
+ * Operation getAnSmsMessage
*
- * Get Head Member
+ * Get an SMS Message
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $message_id String that uniquely identifies this Message resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueMember
+ * @return \FreeClimb\Api\Model\MessageResult
*/
- public function getHeadMember($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
+ public function getAnSmsMessage($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
{
- list($response) = $this->getHeadMemberWithHttpInfo($queue_id, $contentType);
+ list($response) = $this->getAnSmsMessageWithHttpInfo($message_id, $contentType);
return $response;
}
/**
- * Operation getHeadMemberWithHttpInfo
+ * Operation getAnSmsMessageWithHttpInfo
*
- * Get Head Member
+ * Get an SMS Message
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $message_id String that uniquely identifies this Message resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\MessageResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
+ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
{
- $request = $this->getHeadMemberRequest($queue_id, $contentType);
+ $request = $this->getAnSmsMessageRequest($message_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -8649,11 +9315,11 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self:
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\MessageResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
+ if ('\FreeClimb\Api\Model\MessageResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -8671,7 +9337,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self:
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessageResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -8690,7 +9356,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self:
);
}
- $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $returnType = '\FreeClimb\Api\Model\MessageResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -8723,7 +9389,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self:
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueMember',
+ '\FreeClimb\Api\Model\MessageResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -8734,21 +9400,21 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self:
}
/**
- * Operation getHeadMemberAsync
+ * Operation getAnSmsMessageAsync
*
- * Get Head Member
+ * Get an SMS Message
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $message_id String that uniquely identifies this Message resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getHeadMemberAsync($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
+ public function getAnSmsMessageAsync($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
{
- return $this->getHeadMemberAsyncWithHttpInfo($queue_id, $contentType)
+ return $this->getAnSmsMessageAsyncWithHttpInfo($message_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -8757,22 +9423,22 @@ function ($response) {
}
/**
- * Operation getHeadMemberAsyncWithHttpInfo
+ * Operation getAnSmsMessageAsyncWithHttpInfo
*
- * Get Head Member
+ * Get an SMS Message
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $message_id String that uniquely identifies this Message resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
+ public function getAnSmsMessageAsyncWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueMember';
- $request = $this->getHeadMemberRequest($queue_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\MessageResult';
+ $request = $this->getAnSmsMessageRequest($message_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -8811,30 +9477,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getHeadMember'
+ * Create request for operation 'getAnSmsMessage'
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $message_id String that uniquely identifies this Message resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getHeadMemberRequest($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
+ public function getAnSmsMessageRequest($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'queue_id' is set
- if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
+ // verify the required parameter 'message_id' is set
+ if ($message_id === null || (is_array($message_id) && count($message_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling getHeadMember'
+ 'Missing the required parameter $message_id when calling getAnSmsMessage'
);
}
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front';
+ $resourcePath = '/Accounts/{accountId}/Messages/{messageId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -8852,10 +9518,10 @@ public function getHeadMemberRequest($queue_id, string $contentType = self::cont
);
}
// path params
- if ($queue_id !== null) {
+ if ($message_id !== null) {
$resourcePath = str_replace(
- '{' . 'queueId' . '}',
- ObjectSerializer::toPathValue($queue_id),
+ '{' . 'messageId' . '}',
+ ObjectSerializer::toPathValue($message_id),
$resourcePath
);
}
@@ -8919,41 +9585,41 @@ public function getHeadMemberRequest($queue_id, string $contentType = self::cont
}
/**
- * Operation getTenDLCSmsBrand
+ * Operation getBlob
*
- * Get a 10DLC SMS Brand
+ * Get Blob
*
- * @param string $brand_id String that uniquely identifies this brand resource. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCBrand
+ * @return \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function getTenDLCSmsBrand($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
+ public function getBlob($blob_id, string $contentType = self::contentTypes['getBlob'][0])
{
- list($response) = $this->getTenDLCSmsBrandWithHttpInfo($brand_id, $contentType);
+ list($response) = $this->getBlobWithHttpInfo($blob_id, $contentType);
return $response;
}
/**
- * Operation getTenDLCSmsBrandWithHttpInfo
+ * Operation getBlobWithHttpInfo
*
- * Get a 10DLC SMS Brand
+ * Get Blob
*
- * @param string $brand_id String that uniquely identifies this brand resource. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCBrand, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
+ public function getBlobWithHttpInfo($blob_id, string $contentType = self::contentTypes['getBlob'][0])
{
- $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType);
+ $request = $this->getBlobRequest($blob_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -8980,11 +9646,11 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCBrand' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\BlobResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCBrand' !== 'string') {
+ if ('\FreeClimb\Api\Model\BlobResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -9002,7 +9668,88 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrand', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 504:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -9021,7 +9768,7 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand';
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -9054,7 +9801,31 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCBrand',
+ '\FreeClimb\Api\Model\BlobResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 504:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -9065,21 +9836,21 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s
}
/**
- * Operation getTenDLCSmsBrandAsync
+ * Operation getBlobAsync
*
- * Get a 10DLC SMS Brand
+ * Get Blob
*
- * @param string $brand_id String that uniquely identifies this brand resource. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsBrandAsync($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
+ public function getBlobAsync($blob_id, string $contentType = self::contentTypes['getBlob'][0])
{
- return $this->getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, $contentType)
+ return $this->getBlobAsyncWithHttpInfo($blob_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -9088,22 +9859,22 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsBrandAsyncWithHttpInfo
+ * Operation getBlobAsyncWithHttpInfo
*
- * Get a 10DLC SMS Brand
+ * Get Blob
*
- * @param string $brand_id String that uniquely identifies this brand resource. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
+ public function getBlobAsyncWithHttpInfo($blob_id, string $contentType = self::contentTypes['getBlob'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand';
- $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ $request = $this->getBlobRequest($blob_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -9142,30 +9913,33 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsBrand'
+ * Create request for operation 'getBlob'
*
- * @param string $brand_id String that uniquely identifies this brand resource. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
+ public function getBlobRequest($blob_id, string $contentType = self::contentTypes['getBlob'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'brand_id' is set
- if ($brand_id === null || (is_array($brand_id) && count($brand_id) === 0)) {
+ // verify the required parameter 'blob_id' is set
+ if ($blob_id === null || (is_array($blob_id) && count($blob_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $brand_id when calling getTenDLCSmsBrand'
+ 'Missing the required parameter $blob_id when calling getBlob'
);
}
+ if (!preg_match("/BL[0-9a-fA-F]{40}/", $blob_id)) {
+ throw new \InvalidArgumentException("invalid value for \"blob_id\" when calling DefaultApi.getBlob, must conform to the pattern /BL[0-9a-fA-F]{40}/.");
+ }
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}';
+ $resourcePath = '/Accounts/{accountId}/Blobs/{blobId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -9183,10 +9957,10 @@ public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::
);
}
// path params
- if ($brand_id !== null) {
+ if ($blob_id !== null) {
$resourcePath = str_replace(
- '{' . 'brandId' . '}',
- ObjectSerializer::toPathValue($brand_id),
+ '{' . 'blobId' . '}',
+ ObjectSerializer::toPathValue($blob_id),
$resourcePath
);
}
@@ -9250,37 +10024,41 @@ public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::
}
/**
- * Operation getTenDLCSmsBrands
+ * Operation getHeadMember
*
- * Get list of SMS 10DLC Brands
+ * Get Head Member
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCBrandsListResult
+ * @return \FreeClimb\Api\Model\QueueMember
*/
- public function getTenDLCSmsBrands(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
+ public function getHeadMember($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
{
- list($response) = $this->getTenDLCSmsBrandsWithHttpInfo($contentType);
+ list($response) = $this->getHeadMemberWithHttpInfo($queue_id, $contentType);
return $response;
}
/**
- * Operation getTenDLCSmsBrandsWithHttpInfo
+ * Operation getHeadMemberWithHttpInfo
*
- * Get list of SMS 10DLC Brands
+ * Get Head Member
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCBrandsListResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
+ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
{
- $request = $this->getTenDLCSmsBrandsRequest($contentType);
+ $request = $this->getHeadMemberRequest($queue_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -9307,11 +10085,11 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\QueueMember' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -9329,7 +10107,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -9348,7 +10126,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult';
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -9381,7 +10159,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult',
+ '\FreeClimb\Api\Model\QueueMember',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -9392,19 +10170,21 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte
}
/**
- * Operation getTenDLCSmsBrandsAsync
+ * Operation getHeadMemberAsync
*
- * Get list of SMS 10DLC Brands
+ * Get Head Member
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsBrandsAsync(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
+ public function getHeadMemberAsync($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
{
- return $this->getTenDLCSmsBrandsAsyncWithHttpInfo($contentType)
+ return $this->getHeadMemberAsyncWithHttpInfo($queue_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -9413,20 +10193,22 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsBrandsAsyncWithHttpInfo
+ * Operation getHeadMemberAsyncWithHttpInfo
*
- * Get list of SMS 10DLC Brands
+ * Get Head Member
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsBrandsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
+ public function getHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult';
- $request = $this->getTenDLCSmsBrandsRequest($contentType);
+ $returnType = '\FreeClimb\Api\Model\QueueMember';
+ $request = $this->getHeadMemberRequest($queue_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -9465,21 +10247,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsBrands'
+ * Create request for operation 'getHeadMember'
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
+ public function getHeadMemberRequest($queue_id, string $contentType = self::contentTypes['getHeadMember'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'queue_id' is set
+ if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $queue_id when calling getHeadMember'
+ );
+ }
+
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands';
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -9496,6 +10287,14 @@ public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTyp
$resourcePath
);
}
+ // path params
+ if ($queue_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'queueId' . '}',
+ ObjectSerializer::toPathValue($queue_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -9556,41 +10355,41 @@ public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTyp
}
/**
- * Operation getTenDLCSmsCampaign
+ * Operation getTenDLCSmsBrand
*
- * Get a 10DLC SMS Campaign
+ * Get a 10DLC SMS Brand
*
- * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
+ * @param string $brand_id String that uniquely identifies this brand resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCCampaign
+ * @return \FreeClimb\Api\Model\SMSTenDLCBrand
*/
- public function getTenDLCSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
+ public function getTenDLCSmsBrand($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
{
- list($response) = $this->getTenDLCSmsCampaignWithHttpInfo($campaign_id, $contentType);
+ list($response) = $this->getTenDLCSmsBrandWithHttpInfo($brand_id, $contentType);
return $response;
}
/**
- * Operation getTenDLCSmsCampaignWithHttpInfo
+ * Operation getTenDLCSmsBrandWithHttpInfo
*
- * Get a 10DLC SMS Campaign
+ * Get a 10DLC SMS Brand
*
- * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
+ * @param string $brand_id String that uniquely identifies this brand resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaign, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCBrand, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
+ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
{
- $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType);
+ $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -9617,11 +10416,11 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCBrand' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCBrand' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -9639,7 +10438,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaign', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrand', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -9658,7 +10457,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -9691,7 +10490,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCCampaign',
+ '\FreeClimb\Api\Model\SMSTenDLCBrand',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -9702,21 +10501,21 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy
}
/**
- * Operation getTenDLCSmsCampaignAsync
+ * Operation getTenDLCSmsBrandAsync
*
- * Get a 10DLC SMS Campaign
+ * Get a 10DLC SMS Brand
*
- * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
+ * @param string $brand_id String that uniquely identifies this brand resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
+ public function getTenDLCSmsBrandAsync($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
{
- return $this->getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType)
+ return $this->getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -9725,22 +10524,22 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsCampaignAsyncWithHttpInfo
+ * Operation getTenDLCSmsBrandAsyncWithHttpInfo
*
- * Get a 10DLC SMS Campaign
+ * Get a 10DLC SMS Brand
*
- * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
+ * @param string $brand_id String that uniquely identifies this brand resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
+ public function getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign';
- $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand';
+ $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -9779,30 +10578,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsCampaign'
+ * Create request for operation 'getTenDLCSmsBrand'
*
- * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
+ * @param string $brand_id String that uniquely identifies this brand resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
+ public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'campaign_id' is set
- if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) {
+ // verify the required parameter 'brand_id' is set
+ if ($brand_id === null || (is_array($brand_id) && count($brand_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $campaign_id when calling getTenDLCSmsCampaign'
+ 'Missing the required parameter $brand_id when calling getTenDLCSmsBrand'
);
}
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}';
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -9820,10 +10619,10 @@ public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType =
);
}
// path params
- if ($campaign_id !== null) {
+ if ($brand_id !== null) {
$resourcePath = str_replace(
- '{' . 'campaignId' . '}',
- ObjectSerializer::toPathValue($campaign_id),
+ '{' . 'brandId' . '}',
+ ObjectSerializer::toPathValue($brand_id),
$resourcePath
);
}
@@ -9887,41 +10686,37 @@ public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType =
}
/**
- * Operation getTenDLCSmsCampaigns
+ * Operation getTenDLCSmsBrands
*
- * Get list of SMS 10DLC Campaigns
+ * Get list of SMS 10DLC Brands
*
- * @param string $brand_id The unique identifier for a brand (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult
+ * @return \FreeClimb\Api\Model\SMSTenDLCBrandsListResult
*/
- public function getTenDLCSmsCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
+ public function getTenDLCSmsBrands(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
{
- list($response) = $this->getTenDLCSmsCampaignsWithHttpInfo($brand_id, $contentType);
+ list($response) = $this->getTenDLCSmsBrandsWithHttpInfo($contentType);
return $response;
}
/**
- * Operation getTenDLCSmsCampaignsWithHttpInfo
+ * Operation getTenDLCSmsBrandsWithHttpInfo
*
- * Get list of SMS 10DLC Campaigns
+ * Get list of SMS 10DLC Brands
*
- * @param string $brand_id The unique identifier for a brand (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCBrandsListResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
+ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
{
- $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType);
+ $request = $this->getTenDLCSmsBrandsRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -9948,11 +10743,11 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -9970,7 +10765,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -9989,7 +10784,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -10022,7 +10817,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult',
+ '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -10033,21 +10828,19 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont
}
/**
- * Operation getTenDLCSmsCampaignsAsync
+ * Operation getTenDLCSmsBrandsAsync
*
- * Get list of SMS 10DLC Campaigns
+ * Get list of SMS 10DLC Brands
*
- * @param string $brand_id The unique identifier for a brand (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
+ public function getTenDLCSmsBrandsAsync(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
{
- return $this->getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id, $contentType)
+ return $this->getTenDLCSmsBrandsAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -10056,22 +10849,20 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsCampaignsAsyncWithHttpInfo
+ * Operation getTenDLCSmsBrandsAsyncWithHttpInfo
*
- * Get list of SMS 10DLC Campaigns
+ * Get list of SMS 10DLC Brands
*
- * @param string $brand_id The unique identifier for a brand (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
+ public function getTenDLCSmsBrandsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult';
- $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult';
+ $request = $this->getTenDLCSmsBrandsRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -10110,39 +10901,27 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsCampaigns'
+ * Create request for operation 'getTenDLCSmsBrands'
*
- * @param string $brand_id The unique identifier for a brand (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
+ public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0])
{
$account_id = $this->config->getUsername();
-
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns';
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $brand_id,
- 'brandId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -10213,41 +10992,41 @@ public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentTy
}
/**
- * Operation getTenDLCSmsPartnerCampaign
+ * Operation getTenDLCSmsCampaign
*
- * Get a 10DLC SMS Partner Campaign
+ * Get a 10DLC SMS Campaign
*
* @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign
+ * @return \FreeClimb\Api\Model\SMSTenDLCCampaign
*/
- public function getTenDLCSmsPartnerCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
+ public function getTenDLCSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
{
- list($response) = $this->getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, $contentType);
+ list($response) = $this->getTenDLCSmsCampaignWithHttpInfo($campaign_id, $contentType);
return $response;
}
/**
- * Operation getTenDLCSmsPartnerCampaignWithHttpInfo
+ * Operation getTenDLCSmsCampaignWithHttpInfo
*
- * Get a 10DLC SMS Partner Campaign
+ * Get a 10DLC SMS Campaign
*
* @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaign, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
+ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
{
- $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType);
+ $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -10274,11 +11053,11 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -10296,7 +11075,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaign', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -10315,7 +11094,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -10348,7 +11127,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign',
+ '\FreeClimb\Api\Model\SMSTenDLCCampaign',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -10359,21 +11138,21 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co
}
/**
- * Operation getTenDLCSmsPartnerCampaignAsync
+ * Operation getTenDLCSmsCampaignAsync
*
- * Get a 10DLC SMS Partner Campaign
+ * Get a 10DLC SMS Campaign
*
* @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsPartnerCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
+ public function getTenDLCSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
{
- return $this->getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, $contentType)
+ return $this->getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -10382,22 +11161,22 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsPartnerCampaignAsyncWithHttpInfo
+ * Operation getTenDLCSmsCampaignAsyncWithHttpInfo
*
- * Get a 10DLC SMS Partner Campaign
+ * Get a 10DLC SMS Campaign
*
* @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
+ public function getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign';
- $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign';
+ $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -10436,30 +11215,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsPartnerCampaign'
+ * Create request for operation 'getTenDLCSmsCampaign'
*
* @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
+ public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0])
{
$account_id = $this->config->getUsername();
// verify the required parameter 'campaign_id' is set
if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $campaign_id when calling getTenDLCSmsPartnerCampaign'
+ 'Missing the required parameter $campaign_id when calling getTenDLCSmsCampaign'
);
}
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}';
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -10544,41 +11323,41 @@ public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $content
}
/**
- * Operation getTenDLCSmsPartnerCampaigns
+ * Operation getTenDLCSmsCampaigns
*
- * Get list of SMS 10DLC Partner Campaigns
+ * Get list of SMS 10DLC Campaigns
*
* @param string $brand_id The unique identifier for a brand (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult
+ * @return \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult
*/
- public function getTenDLCSmsPartnerCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
+ public function getTenDLCSmsCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
{
- list($response) = $this->getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id, $contentType);
+ list($response) = $this->getTenDLCSmsCampaignsWithHttpInfo($brand_id, $contentType);
return $response;
}
/**
- * Operation getTenDLCSmsPartnerCampaignsWithHttpInfo
+ * Operation getTenDLCSmsCampaignsWithHttpInfo
*
- * Get list of SMS 10DLC Partner Campaigns
+ * Get list of SMS 10DLC Campaigns
*
* @param string $brand_id The unique identifier for a brand (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
+ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
{
- $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType);
+ $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -10605,11 +11384,11 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -10627,7 +11406,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -10646,7 +11425,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -10679,7 +11458,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult',
+ '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -10690,21 +11469,21 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin
}
/**
- * Operation getTenDLCSmsPartnerCampaignsAsync
+ * Operation getTenDLCSmsCampaignsAsync
*
- * Get list of SMS 10DLC Partner Campaigns
+ * Get list of SMS 10DLC Campaigns
*
* @param string $brand_id The unique identifier for a brand (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsPartnerCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
+ public function getTenDLCSmsCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
{
- return $this->getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id, $contentType)
+ return $this->getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -10713,22 +11492,22 @@ function ($response) {
}
/**
- * Operation getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo
+ * Operation getTenDLCSmsCampaignsAsyncWithHttpInfo
*
- * Get list of SMS 10DLC Partner Campaigns
+ * Get list of SMS 10DLC Campaigns
*
* @param string $brand_id The unique identifier for a brand (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
+ public function getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult';
- $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult';
+ $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -10767,24 +11546,24 @@ function ($exception) {
}
/**
- * Create request for operation 'getTenDLCSmsPartnerCampaigns'
+ * Create request for operation 'getTenDLCSmsCampaigns'
*
* @param string $brand_id The unique identifier for a brand (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
+ public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0])
{
$account_id = $this->config->getUsername();
- $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns';
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -10870,41 +11649,41 @@ public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $co
}
/**
- * Operation getTollFreeSmsCampaign
+ * Operation getTenDLCSmsPartnerCampaign
*
- * Get a TollFree SMS Campaign
+ * Get a 10DLC SMS Partner Campaign
*
- * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
+ * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTollFreeCampaign
+ * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign
*/
- public function getTollFreeSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
+ public function getTenDLCSmsPartnerCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
{
- list($response) = $this->getTollFreeSmsCampaignWithHttpInfo($campaign_id, $contentType);
+ list($response) = $this->getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, $contentType);
return $response;
}
/**
- * Operation getTollFreeSmsCampaignWithHttpInfo
+ * Operation getTenDLCSmsPartnerCampaignWithHttpInfo
*
- * Get a TollFree SMS Campaign
+ * Get a 10DLC SMS Partner Campaign
*
- * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
+ * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaign, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
+ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
{
- $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType);
+ $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -10931,11 +11710,11 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -10953,7 +11732,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaign', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -10972,7 +11751,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -11005,7 +11784,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTollFreeCampaign',
+ '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -11016,21 +11795,21 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content
}
/**
- * Operation getTollFreeSmsCampaignAsync
+ * Operation getTenDLCSmsPartnerCampaignAsync
*
- * Get a TollFree SMS Campaign
+ * Get a 10DLC SMS Partner Campaign
*
- * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
+ * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTollFreeSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
+ public function getTenDLCSmsPartnerCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
{
- return $this->getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType)
+ return $this->getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -11039,22 +11818,22 @@ function ($response) {
}
/**
- * Operation getTollFreeSmsCampaignAsyncWithHttpInfo
+ * Operation getTenDLCSmsPartnerCampaignAsyncWithHttpInfo
*
- * Get a TollFree SMS Campaign
+ * Get a 10DLC SMS Partner Campaign
*
- * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
+ * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
+ public function getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign';
- $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign';
+ $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -11093,30 +11872,30 @@ function ($exception) {
}
/**
- * Create request for operation 'getTollFreeSmsCampaign'
+ * Create request for operation 'getTenDLCSmsPartnerCampaign'
*
- * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
+ * @param string $campaign_id String that uniquely identifies this campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
+ public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0])
{
$account_id = $this->config->getUsername();
// verify the required parameter 'campaign_id' is set
if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $campaign_id when calling getTollFreeSmsCampaign'
+ 'Missing the required parameter $campaign_id when calling getTenDLCSmsPartnerCampaign'
);
}
- $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}';
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -11201,37 +11980,41 @@ public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType
}
/**
- * Operation getTollFreeSmsCampaigns
+ * Operation getTenDLCSmsPartnerCampaigns
*
- * Get list of TollFree Campaigns
+ * Get list of SMS 10DLC Partner Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
+ * @param string $brand_id The unique identifier for a brand (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult
+ * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult
*/
- public function getTollFreeSmsCampaigns(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
+ public function getTenDLCSmsPartnerCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
{
- list($response) = $this->getTollFreeSmsCampaignsWithHttpInfo($contentType);
+ list($response) = $this->getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id, $contentType);
return $response;
}
/**
- * Operation getTollFreeSmsCampaignsWithHttpInfo
+ * Operation getTenDLCSmsPartnerCampaignsWithHttpInfo
*
- * Get list of TollFree Campaigns
+ * Get list of SMS 10DLC Partner Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
+ * @param string $brand_id The unique identifier for a brand (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
+ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
{
- $request = $this->getTollFreeSmsCampaignsRequest($contentType);
+ $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -11258,11 +12041,11 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -11280,7 +12063,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -11299,7 +12082,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::
);
}
- $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult';
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -11332,7 +12115,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult',
+ '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -11343,19 +12126,21 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::
}
/**
- * Operation getTollFreeSmsCampaignsAsync
+ * Operation getTenDLCSmsPartnerCampaignsAsync
*
- * Get list of TollFree Campaigns
+ * Get list of SMS 10DLC Partner Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
+ * @param string $brand_id The unique identifier for a brand (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTollFreeSmsCampaignsAsync(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
+ public function getTenDLCSmsPartnerCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
{
- return $this->getTollFreeSmsCampaignsAsyncWithHttpInfo($contentType)
+ return $this->getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -11364,20 +12149,22 @@ function ($response) {
}
/**
- * Operation getTollFreeSmsCampaignsAsyncWithHttpInfo
+ * Operation getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo
*
- * Get list of TollFree Campaigns
+ * Get list of SMS 10DLC Partner Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
+ * @param string $brand_id The unique identifier for a brand (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function getTollFreeSmsCampaignsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
+ public function getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
{
- $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult';
- $request = $this->getTollFreeSmsCampaignsRequest($contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult';
+ $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -11416,27 +12203,39 @@ function ($exception) {
}
/**
- * Create request for operation 'getTollFreeSmsCampaigns'
+ * Create request for operation 'getTenDLCSmsPartnerCampaigns'
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
+ * @param string $brand_id The unique identifier for a brand (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function getTollFreeSmsCampaignsRequest(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
+ public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0])
{
$account_id = $this->config->getUsername();
- $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns';
+
+ $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $brand_id,
+ 'brandId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// path params
@@ -11507,41 +12306,41 @@ public function getTollFreeSmsCampaignsRequest(string $contentType = self::conte
}
/**
- * Operation listActiveQueues
+ * Operation getTollFreeSmsCampaign
*
- * List Active Queues
+ * Get a TollFree SMS Campaign
*
- * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
+ * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueList
+ * @return \FreeClimb\Api\Model\SMSTollFreeCampaign
*/
- public function listActiveQueues($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
+ public function getTollFreeSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
{
- list($response) = $this->listActiveQueuesWithHttpInfo($alias, $contentType);
+ list($response) = $this->getTollFreeSmsCampaignWithHttpInfo($campaign_id, $contentType);
return $response;
}
/**
- * Operation listActiveQueuesWithHttpInfo
+ * Operation getTollFreeSmsCampaignWithHttpInfo
*
- * List Active Queues
+ * Get a TollFree SMS Campaign
*
- * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
+ * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaign, HTTP status code, HTTP response headers (array of strings)
*/
- public function listActiveQueuesWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
+ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
{
- $request = $this->listActiveQueuesRequest($alias, $contentType);
+ $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -11568,11 +12367,11 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\QueueList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueList' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -11590,7 +12389,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaign', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -11609,7 +12408,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType
);
}
- $returnType = '\FreeClimb\Api\Model\QueueList';
+ $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -11642,7 +12441,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueList',
+ '\FreeClimb\Api\Model\SMSTollFreeCampaign',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -11653,21 +12452,21 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType
}
/**
- * Operation listActiveQueuesAsync
+ * Operation getTollFreeSmsCampaignAsync
*
- * List Active Queues
+ * Get a TollFree SMS Campaign
*
- * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
+ * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listActiveQueuesAsync($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
+ public function getTollFreeSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
{
- return $this->listActiveQueuesAsyncWithHttpInfo($alias, $contentType)
+ return $this->getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -11676,22 +12475,22 @@ function ($response) {
}
/**
- * Operation listActiveQueuesAsyncWithHttpInfo
+ * Operation getTollFreeSmsCampaignAsyncWithHttpInfo
*
- * List Active Queues
+ * Get a TollFree SMS Campaign
*
- * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
+ * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listActiveQueuesAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
+ public function getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueList';
- $request = $this->listActiveQueuesRequest($alias, $contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign';
+ $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -11730,39 +12529,36 @@ function ($exception) {
}
/**
- * Create request for operation 'listActiveQueues'
+ * Create request for operation 'getTollFreeSmsCampaign'
*
- * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
+ * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listActiveQueuesRequest($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
+ public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'campaign_id' is set
+ if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $campaign_id when calling getTollFreeSmsCampaign'
+ );
+ }
- $resourcePath = '/Accounts/{accountId}/Queues';
+ $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $alias,
- 'alias', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -11773,6 +12569,14 @@ public function listActiveQueuesRequest($alias = null, string $contentType = sel
$resourcePath
);
}
+ // path params
+ if ($campaign_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'campaignId' . '}',
+ ObjectSerializer::toPathValue($campaign_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -11833,37 +12637,37 @@ public function listActiveQueuesRequest($alias = null, string $contentType = sel
}
/**
- * Operation listAllAccountLogs
+ * Operation getTollFreeSmsCampaigns
*
- * List All Account Logs
+ * Get list of TollFree Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\LogList
+ * @return \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult
*/
- public function listAllAccountLogs(string $contentType = self::contentTypes['listAllAccountLogs'][0])
+ public function getTollFreeSmsCampaigns(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
{
- list($response) = $this->listAllAccountLogsWithHttpInfo($contentType);
+ list($response) = $this->getTollFreeSmsCampaignsWithHttpInfo($contentType);
return $response;
}
/**
- * Operation listAllAccountLogsWithHttpInfo
+ * Operation getTollFreeSmsCampaignsWithHttpInfo
*
- * List All Account Logs
+ * Get list of TollFree Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function listAllAccountLogsWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0])
+ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
{
- $request = $this->listAllAccountLogsRequest($contentType);
+ $request = $this->getTollFreeSmsCampaignsRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -11890,11 +12694,11 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\LogList' !== 'string') {
+ if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -11912,7 +12716,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -11931,7 +12735,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte
);
}
- $returnType = '\FreeClimb\Api\Model\LogList';
+ $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -11964,7 +12768,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\LogList',
+ '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -11975,19 +12779,19 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte
}
/**
- * Operation listAllAccountLogsAsync
+ * Operation getTollFreeSmsCampaignsAsync
*
- * List All Account Logs
+ * Get list of TollFree Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listAllAccountLogsAsync(string $contentType = self::contentTypes['listAllAccountLogs'][0])
+ public function getTollFreeSmsCampaignsAsync(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
{
- return $this->listAllAccountLogsAsyncWithHttpInfo($contentType)
+ return $this->getTollFreeSmsCampaignsAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -11996,20 +12800,20 @@ function ($response) {
}
/**
- * Operation listAllAccountLogsAsyncWithHttpInfo
+ * Operation getTollFreeSmsCampaignsAsyncWithHttpInfo
*
- * List All Account Logs
+ * Get list of TollFree Campaigns
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listAllAccountLogsAsyncWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0])
+ public function getTollFreeSmsCampaignsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
{
- $returnType = '\FreeClimb\Api\Model\LogList';
- $request = $this->listAllAccountLogsRequest($contentType);
+ $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult';
+ $request = $this->getTollFreeSmsCampaignsRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -12048,21 +12852,21 @@ function ($exception) {
}
/**
- * Create request for operation 'listAllAccountLogs'
+ * Create request for operation 'getTollFreeSmsCampaigns'
*
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listAllAccountLogsRequest(string $contentType = self::contentTypes['listAllAccountLogs'][0])
+ public function getTollFreeSmsCampaignsRequest(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0])
{
$account_id = $this->config->getUsername();
- $resourcePath = '/Accounts/{accountId}/Logs';
+ $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -12139,41 +12943,41 @@ public function listAllAccountLogsRequest(string $contentType = self::contentTyp
}
/**
- * Operation listApplications
+ * Operation listActiveQueues
*
- * List applications
+ * List Active Queues
*
- * @param string $alias Return only applications with aliases that exactly match this value. (optional)
+ * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ApplicationList
+ * @return \FreeClimb\Api\Model\QueueList
*/
- public function listApplications($alias = null, string $contentType = self::contentTypes['listApplications'][0])
+ public function listActiveQueues($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
{
- list($response) = $this->listApplicationsWithHttpInfo($alias, $contentType);
+ list($response) = $this->listActiveQueuesWithHttpInfo($alias, $contentType);
return $response;
}
/**
- * Operation listApplicationsWithHttpInfo
+ * Operation listActiveQueuesWithHttpInfo
*
- * List applications
+ * List Active Queues
*
- * @param string $alias Return only applications with aliases that exactly match this value. (optional)
+ * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ApplicationList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\QueueList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listApplicationsWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0])
+ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
{
- $request = $this->listApplicationsRequest($alias, $contentType);
+ $request = $this->listActiveQueuesRequest($alias, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -12200,11 +13004,11 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ApplicationList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\QueueList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ApplicationList' !== 'string') {
+ if ('\FreeClimb\Api\Model\QueueList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -12222,7 +13026,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -12241,7 +13045,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType
);
}
- $returnType = '\FreeClimb\Api\Model\ApplicationList';
+ $returnType = '\FreeClimb\Api\Model\QueueList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -12274,7 +13078,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ApplicationList',
+ '\FreeClimb\Api\Model\QueueList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -12285,21 +13089,21 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType
}
/**
- * Operation listApplicationsAsync
+ * Operation listActiveQueuesAsync
*
- * List applications
+ * List Active Queues
*
- * @param string $alias Return only applications with aliases that exactly match this value. (optional)
+ * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listApplicationsAsync($alias = null, string $contentType = self::contentTypes['listApplications'][0])
+ public function listActiveQueuesAsync($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
{
- return $this->listApplicationsAsyncWithHttpInfo($alias, $contentType)
+ return $this->listActiveQueuesAsyncWithHttpInfo($alias, $contentType)
->then(
function ($response) {
return $response[0];
@@ -12308,22 +13112,22 @@ function ($response) {
}
/**
- * Operation listApplicationsAsyncWithHttpInfo
+ * Operation listActiveQueuesAsyncWithHttpInfo
*
- * List applications
+ * List Active Queues
*
- * @param string $alias Return only applications with aliases that exactly match this value. (optional)
+ * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listApplicationsAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0])
+ public function listActiveQueuesAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
{
- $returnType = '\FreeClimb\Api\Model\ApplicationList';
- $request = $this->listApplicationsRequest($alias, $contentType);
+ $returnType = '\FreeClimb\Api\Model\QueueList';
+ $request = $this->listActiveQueuesRequest($alias, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -12362,24 +13166,24 @@ function ($exception) {
}
/**
- * Create request for operation 'listApplications'
+ * Create request for operation 'listActiveQueues'
*
- * @param string $alias Return only applications with aliases that exactly match this value. (optional)
+ * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listApplicationsRequest($alias = null, string $contentType = self::contentTypes['listApplications'][0])
+ public function listActiveQueuesRequest($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0])
{
$account_id = $this->config->getUsername();
- $resourcePath = '/Accounts/{accountId}/Applications';
+ $resourcePath = '/Accounts/{accountId}/Queues';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -12465,77 +13269,37 @@ public function listApplicationsRequest($alias = null, string $contentType = sel
}
/**
- * Operation listAvailableNumbers
+ * Operation listAllAccountLogs
*
- * List available numbers
+ * List All Account Logs
*
- * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\AvailableNumberList
+ * @return \FreeClimb\Api\Model\LogList
*/
- public function listAvailableNumbers($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
+ public function listAllAccountLogs(string $contentType = self::contentTypes['listAllAccountLogs'][0])
{
- list($response) = $this->listAvailableNumbersWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
+ list($response) = $this->listAllAccountLogsWithHttpInfo($contentType);
return $response;
}
/**
- * Operation listAvailableNumbersWithHttpInfo
+ * Operation listAllAccountLogsWithHttpInfo
*
- * List available numbers
+ * List All Account Logs
*
- * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\AvailableNumberList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
+ public function listAllAccountLogsWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0])
{
- $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
+ $request = $this->listAllAccountLogsRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -12562,11 +13326,11 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region =
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\AvailableNumberList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\AvailableNumberList' !== 'string') {
+ if ('\FreeClimb\Api\Model\LogList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -12584,7 +13348,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region =
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AvailableNumberList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -12603,7 +13367,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region =
);
}
- $returnType = '\FreeClimb\Api\Model\AvailableNumberList';
+ $returnType = '\FreeClimb\Api\Model\LogList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -12636,7 +13400,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region =
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\AvailableNumberList',
+ '\FreeClimb\Api\Model\LogList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -12647,39 +13411,19 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region =
}
/**
- * Operation listAvailableNumbersAsync
+ * Operation listAllAccountLogsAsync
*
- * List available numbers
+ * List All Account Logs
*
- * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listAvailableNumbersAsync($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
+ public function listAllAccountLogsAsync(string $contentType = self::contentTypes['listAllAccountLogs'][0])
{
- return $this->listAvailableNumbersAsyncWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType)
+ return $this->listAllAccountLogsAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -12688,40 +13432,20 @@ function ($response) {
}
/**
- * Operation listAvailableNumbersAsyncWithHttpInfo
+ * Operation listAllAccountLogsAsyncWithHttpInfo
*
- * List available numbers
+ * List All Account Logs
*
- * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listAvailableNumbersAsyncWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
+ public function listAllAccountLogsAsyncWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0])
{
- $returnType = '\FreeClimb\Api\Model\AvailableNumberList';
- $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
+ $returnType = '\FreeClimb\Api\Model\LogList';
+ $request = $this->listAllAccountLogsRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -12760,197 +13484,85 @@ function ($exception) {
}
/**
- * Create request for operation 'listAvailableNumbers'
+ * Create request for operation 'listAllAccountLogs'
*
- * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listAvailableNumbersRequest($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
+ public function listAllAccountLogsRequest(string $contentType = self::contentTypes['listAllAccountLogs'][0])
{
$account_id = $this->config->getUsername();
+ $resourcePath = '/Accounts/{accountId}/Logs';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
- $resourcePath = '/AvailablePhoneNumbers';
- $formParams = [];
- $queryParams = [];
- $headerParams = [];
- $httpBody = '';
- $multipart = false;
-
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $phone_number,
- 'phoneNumber', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $region,
- 'region', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $country,
- 'country', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $voice_enabled,
- 'voiceEnabled', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $sms_enabled,
- 'smsEnabled', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_voice,
- 'capabilities.voice', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_sms,
- 'capabilities.sms', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_toll_free,
- 'capabilities.tollFree', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_ten_dlc,
- 'capabilities.tenDLC', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_short_code,
- 'capabilities.shortCode', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
-
-
-
-
- $headers = $this->headerSelector->selectHeaders(
- ['application/json', ],
- $contentType,
- $multipart
- );
-
- // for model (json/xml)
- if (count($formParams) > 0) {
- if ($multipart) {
- $multipartContents = [];
- foreach ($formParams as $formParamName => $formParamValue) {
- $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
- foreach ($formParamValueItems as $formParamValueItem) {
- $multipartContents[] = [
- 'name' => $formParamName,
- 'contents' => $formParamValueItem
- ];
- }
- }
- // for HTTP post (form)
- $httpBody = new MultipartStream($multipartContents);
-
- } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
- # if Content-Type contains "application/json", json_encode the form parameters
- $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
- } else {
- // for HTTP post (form)
- $httpBody = ObjectSerializer::buildQuery($formParams);
- }
- }
-
- // this endpoint requires HTTP basic authentication
- if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
- $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
- }
-
- $defaultHeaders = [];
- if ($this->config->getUserAgent()) {
- $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
- }
-
- $headers = array_merge(
- $defaultHeaders,
- $headerParams,
- $headers
- );
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
@@ -12963,41 +13575,41 @@ public function listAvailableNumbersRequest($phone_number = null, $region = null
}
/**
- * Operation listCallLogs
+ * Operation listApplications
*
- * List Call Logs
+ * List applications
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $alias Return only applications with aliases that exactly match this value. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\LogList
+ * @return \FreeClimb\Api\Model\ApplicationList
*/
- public function listCallLogs($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
+ public function listApplications($alias = null, string $contentType = self::contentTypes['listApplications'][0])
{
- list($response) = $this->listCallLogsWithHttpInfo($call_id, $contentType);
+ list($response) = $this->listApplicationsWithHttpInfo($alias, $contentType);
return $response;
}
/**
- * Operation listCallLogsWithHttpInfo
+ * Operation listApplicationsWithHttpInfo
*
- * List Call Logs
+ * List applications
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $alias Return only applications with aliases that exactly match this value. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\ApplicationList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listCallLogsWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
+ public function listApplicationsWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0])
{
- $request = $this->listCallLogsRequest($call_id, $contentType);
+ $request = $this->listApplicationsRequest($alias, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -13024,11 +13636,11 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\ApplicationList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\LogList' !== 'string') {
+ if ('\FreeClimb\Api\Model\ApplicationList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -13046,7 +13658,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -13065,7 +13677,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c
);
}
- $returnType = '\FreeClimb\Api\Model\LogList';
+ $returnType = '\FreeClimb\Api\Model\ApplicationList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -13098,7 +13710,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\LogList',
+ '\FreeClimb\Api\Model\ApplicationList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -13109,21 +13721,21 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c
}
/**
- * Operation listCallLogsAsync
+ * Operation listApplicationsAsync
*
- * List Call Logs
+ * List applications
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $alias Return only applications with aliases that exactly match this value. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallLogsAsync($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
+ public function listApplicationsAsync($alias = null, string $contentType = self::contentTypes['listApplications'][0])
{
- return $this->listCallLogsAsyncWithHttpInfo($call_id, $contentType)
+ return $this->listApplicationsAsyncWithHttpInfo($alias, $contentType)
->then(
function ($response) {
return $response[0];
@@ -13132,22 +13744,22 @@ function ($response) {
}
/**
- * Operation listCallLogsAsyncWithHttpInfo
+ * Operation listApplicationsAsyncWithHttpInfo
*
- * List Call Logs
+ * List applications
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $alias Return only applications with aliases that exactly match this value. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallLogsAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
+ public function listApplicationsAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0])
{
- $returnType = '\FreeClimb\Api\Model\LogList';
- $request = $this->listCallLogsRequest($call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\ApplicationList';
+ $request = $this->listApplicationsRequest($alias, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -13186,36 +13798,39 @@ function ($exception) {
}
/**
- * Create request for operation 'listCallLogs'
+ * Create request for operation 'listApplications'
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $alias Return only applications with aliases that exactly match this value. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listCallLogsRequest($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
+ public function listApplicationsRequest($alias = null, string $contentType = self::contentTypes['listApplications'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling listCallLogs'
- );
- }
- $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Logs';
+ $resourcePath = '/Accounts/{accountId}/Applications';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $alias,
+ 'alias', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// path params
@@ -13226,14 +13841,6 @@ public function listCallLogsRequest($call_id, string $contentType = self::conten
$resourcePath
);
}
- // path params
- if ($call_id !== null) {
- $resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -13294,45 +13901,77 @@ public function listCallLogsRequest($call_id, string $contentType = self::conten
}
/**
- * Operation listCallRecordings
+ * Operation listAvailableNumbers
*
- * List Call Recordings
+ * List available numbers
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
- * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $region State or province of this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
+ * @param string $country Country of this phone number. (optional)
+
+ * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\RecordingList
+ * @return \FreeClimb\Api\Model\AvailableNumberList
*/
- public function listCallRecordings($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
+ public function listAvailableNumbers($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
{
- list($response) = $this->listCallRecordingsWithHttpInfo($call_id, $date_created, $contentType);
+ list($response) = $this->listAvailableNumbersWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
return $response;
}
/**
- * Operation listCallRecordingsWithHttpInfo
+ * Operation listAvailableNumbersWithHttpInfo
*
- * List Call Recordings
+ * List available numbers
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
- * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $region State or province of this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
+ * @param string $country Country of this phone number. (optional)
+
+ * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\AvailableNumberList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
+ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
{
- $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType);
+ $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -13359,11 +13998,11 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\AvailableNumberList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
+ if ('\FreeClimb\Api\Model\AvailableNumberList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -13381,7 +14020,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AvailableNumberList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -13400,7 +14039,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s
);
}
- $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $returnType = '\FreeClimb\Api\Model\AvailableNumberList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -13433,7 +14072,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\RecordingList',
+ '\FreeClimb\Api\Model\AvailableNumberList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -13444,23 +14083,39 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s
}
/**
- * Operation listCallRecordingsAsync
+ * Operation listAvailableNumbersAsync
*
- * List Call Recordings
+ * List available numbers
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
- * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $region State or province of this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
+ * @param string $country Country of this phone number. (optional)
+
+ * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallRecordingsAsync($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
+ public function listAvailableNumbersAsync($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
{
- return $this->listCallRecordingsAsyncWithHttpInfo($call_id, $date_created, $contentType)
+ return $this->listAvailableNumbersAsyncWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType)
->then(
function ($response) {
return $response[0];
@@ -13469,24 +14124,40 @@ function ($response) {
}
/**
- * Operation listCallRecordingsAsyncWithHttpInfo
+ * Operation listAvailableNumbersAsyncWithHttpInfo
*
- * List Call Recordings
+ * List available numbers
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
- * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $region State or province of this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
+ * @param string $country Country of this phone number. (optional)
+
+ * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallRecordingsAsyncWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
+ public function listAvailableNumbersAsyncWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
{
- $returnType = '\FreeClimb\Api\Model\RecordingList';
- $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType);
+ $returnType = '\FreeClimb\Api\Model\AvailableNumberList';
+ $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -13525,33 +14196,51 @@ function ($exception) {
}
/**
- * Create request for operation 'listCallRecordings'
+ * Create request for operation 'listAvailableNumbers'
*
- * @param string $call_id String that uniquely identifies this call resource. (required)
+ * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional)
- * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $region State or province of this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
+ * @param string $country Country of this phone number. (optional)
+
+ * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listCallRecordingsRequest($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
+ public function listAvailableNumbersRequest($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling listCallRecordings'
- );
- }
- $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Recordings';
+
+
+
+
+
+
+
+
+ $resourcePath = '/AvailablePhoneNumbers';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -13560,31 +14249,96 @@ public function listCallRecordingsRequest($call_id, $date_created = null, string
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $date_created,
- 'dateCreated', // param base name
+ $phone_number,
+ 'phoneNumber', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $region,
+ 'region', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $country,
+ 'country', // param base name
'string', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $voice_enabled,
+ 'voiceEnabled', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $sms_enabled,
+ 'smsEnabled', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_voice,
+ 'capabilities.voice', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_sms,
+ 'capabilities.sms', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_toll_free,
+ 'capabilities.tollFree', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_ten_dlc,
+ 'capabilities.tenDLC', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_short_code,
+ 'capabilities.shortCode', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
- // path params
- if ($account_id !== null) {
- $resourcePath = str_replace(
- '{' . 'accountId' . '}',
- ObjectSerializer::toPathValue($account_id),
- $resourcePath
- );
- }
- // path params
- if ($call_id !== null) {
- $resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -13645,77 +14399,37 @@ public function listCallRecordingsRequest($call_id, $date_created = null, string
}
/**
- * Operation listCalls
+ * Operation listBlobs
*
- * List Calls
+ * List Blobs belonging to an account.
*
- * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
-
- * @param string $to Only show Calls to this phone number. (optional)
-
- * @param string $from Only show Calls from this phone number. (optional)
-
- * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
-
- * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
-
- * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
-
- * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
-
- * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
-
- * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
-
- * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBlobs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\CallList
+ * @return \FreeClimb\Api\Model\BlobListResponse|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function listCalls($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
+ public function listBlobs(string $contentType = self::contentTypes['listBlobs'][0])
{
- list($response) = $this->listCallsWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
+ list($response) = $this->listBlobsWithHttpInfo($contentType);
return $response;
}
/**
- * Operation listCallsWithHttpInfo
+ * Operation listBlobsWithHttpInfo
*
- * List Calls
+ * List Blobs belonging to an account.
*
- * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
-
- * @param string $to Only show Calls to this phone number. (optional)
-
- * @param string $from Only show Calls from this phone number. (optional)
-
- * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
-
- * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
-
- * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
-
- * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
-
- * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
-
- * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
-
- * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBlobs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\CallList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobListResponse|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function listCallsWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
+ public function listBlobsWithHttpInfo(string $contentType = self::contentTypes['listBlobs'][0])
{
- $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
+ $request = $this->listBlobsRequest($contentType);
try {
$options = $this->createHttpClientOption();
@@ -13742,11 +14456,11 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null,
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\CallList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\BlobListResponse' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\CallList' !== 'string') {
+ if ('\FreeClimb\Api\Model\BlobListResponse' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -13764,7 +14478,88 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null,
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobListResponse', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 400:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 504:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -13783,7 +14578,7 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null,
);
}
- $returnType = '\FreeClimb\Api\Model\CallList';
+ $returnType = '\FreeClimb\Api\Model\BlobListResponse';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -13816,7 +14611,31 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null,
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\CallList',
+ '\FreeClimb\Api\Model\BlobListResponse',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 400:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 504:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -13827,39 +14646,19 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null,
}
/**
- * Operation listCallsAsync
+ * Operation listBlobsAsync
*
- * List Calls
+ * List Blobs belonging to an account.
*
- * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
-
- * @param string $to Only show Calls to this phone number. (optional)
-
- * @param string $from Only show Calls from this phone number. (optional)
-
- * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
-
- * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
-
- * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
-
- * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
-
- * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
-
- * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
-
- * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBlobs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallsAsync($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
+ public function listBlobsAsync(string $contentType = self::contentTypes['listBlobs'][0])
{
- return $this->listCallsAsyncWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType)
+ return $this->listBlobsAsyncWithHttpInfo($contentType)
->then(
function ($response) {
return $response[0];
@@ -13868,40 +14667,20 @@ function ($response) {
}
/**
- * Operation listCallsAsyncWithHttpInfo
+ * Operation listBlobsAsyncWithHttpInfo
*
- * List Calls
+ * List Blobs belonging to an account.
*
- * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
-
- * @param string $to Only show Calls to this phone number. (optional)
-
- * @param string $from Only show Calls from this phone number. (optional)
-
- * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
-
- * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
-
- * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
-
- * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
-
- * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
-
- * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
-
- * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBlobs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listCallsAsyncWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
+ public function listBlobsAsyncWithHttpInfo(string $contentType = self::contentTypes['listBlobs'][0])
{
- $returnType = '\FreeClimb\Api\Model\CallList';
- $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobListResponse';
+ $request = $this->listBlobsRequest($contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -13940,183 +14719,60 @@ function ($exception) {
}
/**
- * Create request for operation 'listCalls'
+ * Create request for operation 'listBlobs'
*
- * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
-
- * @param string $to Only show Calls to this phone number. (optional)
-
- * @param string $from Only show Calls from this phone number. (optional)
-
- * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
-
- * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
-
- * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
-
- * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
-
- * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
-
- * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
-
- * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBlobs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listCallsRequest($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
+ public function listBlobsRequest(string $contentType = self::contentTypes['listBlobs'][0])
{
$account_id = $this->config->getUsername();
+ $resourcePath = '/Accounts/{accountId}/Blobs';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
-
-
- if ($application_id !== null && count($application_id) > 16) {
- throw new \InvalidArgumentException('invalid value for "$application_id" when calling DefaultApi.listCalls, number of items must be less than or equal to 16.');
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
}
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
-
-
- $resourcePath = '/Accounts/{accountId}/Calls';
- $formParams = [];
- $queryParams = [];
- $headerParams = [];
- $httpBody = '';
- $multipart = false;
-
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $active,
- 'active', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $to,
- 'to', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $from,
- 'from', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $status,
- 'status', // param base name
- 'CallStatus', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $start_time,
- 'startTime', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $end_time,
- 'endTime', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $parent_call_id,
- 'parentCallId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $application_id,
- 'applicationId', // param base name
- 'array', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $risk_score_min,
- 'riskScoreMin', // param base name
- 'integer', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $risk_score_max,
- 'riskScoreMax', // param base name
- 'integer', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
-
-
- // path params
- if ($account_id !== null) {
- $resourcePath = str_replace(
- '{' . 'accountId' . '}',
- ObjectSerializer::toPathValue($account_id),
- $resourcePath
- );
- }
-
-
- $headers = $this->headerSelector->selectHeaders(
- ['application/json', ],
- $contentType,
- $multipart
- );
-
- // for model (json/xml)
- if (count($formParams) > 0) {
- if ($multipart) {
- $multipartContents = [];
- foreach ($formParams as $formParamName => $formParamValue) {
- $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
- foreach ($formParamValueItems as $formParamValueItem) {
- $multipartContents[] = [
- 'name' => $formParamName,
- 'contents' => $formParamValueItem
- ];
- }
- }
- // for HTTP post (form)
- $httpBody = new MultipartStream($multipartContents);
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
@@ -14154,49 +14810,41 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta
}
/**
- * Operation listConferenceRecordings
+ * Operation listCallLogs
*
- * List Conference Recordings
+ * List Call Logs
*
- * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
-
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\RecordingList
+ * @return \FreeClimb\Api\Model\LogList
*/
- public function listConferenceRecordings($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ public function listCallLogs($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
{
- list($response) = $this->listConferenceRecordingsWithHttpInfo($conference_id, $call_id, $date_created, $contentType);
+ list($response) = $this->listCallLogsWithHttpInfo($call_id, $contentType);
return $response;
}
/**
- * Operation listConferenceRecordingsWithHttpInfo
+ * Operation listCallLogsWithHttpInfo
*
- * List Conference Recordings
+ * List Call Logs
*
- * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
-
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
{
- $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType);
+ $request = $this->listCallLogsRequest($call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -14223,11 +14871,11 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id =
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
+ if ('\FreeClimb\Api\Model\LogList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -14245,7 +14893,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id =
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -14264,7 +14912,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id =
);
}
- $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $returnType = '\FreeClimb\Api\Model\LogList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -14297,7 +14945,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id =
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\RecordingList',
+ '\FreeClimb\Api\Model\LogList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -14308,25 +14956,21 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id =
}
/**
- * Operation listConferenceRecordingsAsync
+ * Operation listCallLogsAsync
*
- * List Conference Recordings
+ * List Call Logs
*
- * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
-
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listConferenceRecordingsAsync($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ public function listCallLogsAsync($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
{
- return $this->listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id, $date_created, $contentType)
+ return $this->listCallLogsAsyncWithHttpInfo($call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -14335,26 +14979,22 @@ function ($response) {
}
/**
- * Operation listConferenceRecordingsAsyncWithHttpInfo
+ * Operation listCallLogsAsyncWithHttpInfo
*
- * List Conference Recordings
+ * List Call Logs
*
- * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
-
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ public function listCallLogsAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
{
- $returnType = '\FreeClimb\Api\Model\RecordingList';
- $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType);
+ $returnType = '\FreeClimb\Api\Model\LogList';
+ $request = $this->listCallLogsRequest($call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -14393,60 +15033,36 @@ function ($exception) {
}
/**
- * Create request for operation 'listConferenceRecordings'
+ * Create request for operation 'listCallLogs'
*
- * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
-
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listConferenceRecordingsRequest($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ public function listCallLogsRequest($call_id, string $contentType = self::contentTypes['listCallLogs'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'conference_id' is set
- if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $conference_id when calling listConferenceRecordings'
+ 'Missing the required parameter $call_id when calling listCallLogs'
);
}
-
-
- $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings';
+ $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Logs';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $call_id,
- 'callId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $date_created,
- 'dateCreated', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -14458,10 +15074,10 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null,
);
}
// path params
- if ($conference_id !== null) {
+ if ($call_id !== null) {
$resourcePath = str_replace(
- '{' . 'conferenceId' . '}',
- ObjectSerializer::toPathValue($conference_id),
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
$resourcePath
);
}
@@ -14525,53 +15141,45 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null,
}
/**
- * Operation listConferences
+ * Operation listCallRecordings
*
- * List Conferences
+ * List Call Recordings
*
- * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
-
- * @param string $alias List Conferences whose alias exactly matches this string. (optional)
-
- * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ConferenceList
+ * @return \FreeClimb\Api\Model\RecordingList
*/
- public function listConferences($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ public function listCallRecordings($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
{
- list($response) = $this->listConferencesWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType);
+ list($response) = $this->listCallRecordingsWithHttpInfo($call_id, $date_created, $contentType);
return $response;
}
/**
- * Operation listConferencesWithHttpInfo
+ * Operation listCallRecordingsWithHttpInfo
*
- * List Conferences
+ * List Call Recordings
*
- * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
-
- * @param string $alias List Conferences whose alias exactly matches this string. (optional)
-
- * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ConferenceList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listConferencesWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
{
- $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType);
+ $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -14598,11 +15206,11 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ConferenceList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ConferenceList' !== 'string') {
+ if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -14620,7 +15228,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -14639,7 +15247,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date
);
}
- $returnType = '\FreeClimb\Api\Model\ConferenceList';
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -14672,7 +15280,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ConferenceList',
+ '\FreeClimb\Api\Model\RecordingList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -14683,27 +15291,23 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date
}
/**
- * Operation listConferencesAsync
+ * Operation listCallRecordingsAsync
*
- * List Conferences
+ * List Call Recordings
*
- * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
-
- * @param string $alias List Conferences whose alias exactly matches this string. (optional)
-
- * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listConferencesAsync($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ public function listCallRecordingsAsync($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
{
- return $this->listConferencesAsyncWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType)
+ return $this->listCallRecordingsAsyncWithHttpInfo($call_id, $date_created, $contentType)
->then(
function ($response) {
return $response[0];
@@ -14712,28 +15316,24 @@ function ($response) {
}
/**
- * Operation listConferencesAsyncWithHttpInfo
+ * Operation listCallRecordingsAsyncWithHttpInfo
*
- * List Conferences
+ * List Call Recordings
*
- * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
-
- * @param string $alias List Conferences whose alias exactly matches this string. (optional)
-
- * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listConferencesAsyncWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ public function listCallRecordingsAsyncWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
{
- $returnType = '\FreeClimb\Api\Model\ConferenceList';
- $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType);
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -14772,57 +15372,39 @@ function ($exception) {
}
/**
- * Create request for operation 'listConferences'
+ * Create request for operation 'listCallRecordings'
*
- * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
-
- * @param string $alias List Conferences whose alias exactly matches this string. (optional)
-
- * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $call_id String that uniquely identifies this call resource. (required)
- * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+ * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listConferencesRequest($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ public function listCallRecordingsRequest($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $call_id when calling listCallRecordings'
+ );
+ }
-
-
- $resourcePath = '/Accounts/{accountId}/Conferences';
+ $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Recordings';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $status,
- 'status', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $alias,
- 'alias', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$date_created,
@@ -14832,15 +15414,6 @@ public function listConferencesRequest($status = null, $alias = null, $date_crea
true, // explode
false // required
) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $date_updated,
- 'dateUpdated', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -14851,6 +15424,14 @@ public function listConferencesRequest($status = null, $alias = null, $date_crea
$resourcePath
);
}
+ // path params
+ if ($call_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -14911,45 +15492,77 @@ public function listConferencesRequest($status = null, $alias = null, $date_crea
}
/**
- * Operation listExports
+ * Operation listCalls
*
- * List Exports
+ * List Calls
*
- * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+ * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
- * @param string $cursor Used to reference pages of a list of exports (optional)
+ * @param string $to Only show Calls to this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ * @param string $from Only show Calls from this phone number. (optional)
+
+ * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
+
+ * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
+
+ * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
+
+ * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
+
+ * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
+
+ * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
+
+ * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ExportList
+ * @return \FreeClimb\Api\Model\CallList
*/
- public function listExports($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ public function listCalls($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
{
- list($response) = $this->listExportsWithHttpInfo($status, $cursor, $contentType);
+ list($response) = $this->listCallsWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
return $response;
}
/**
- * Operation listExportsWithHttpInfo
+ * Operation listCallsWithHttpInfo
*
- * List Exports
+ * List Calls
*
- * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+ * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
- * @param string $cursor Used to reference pages of a list of exports (optional)
+ * @param string $to Only show Calls to this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ * @param string $from Only show Calls from this phone number. (optional)
+
+ * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
+
+ * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
+
+ * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
+
+ * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
+
+ * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
+
+ * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
+
+ * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ExportList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\CallList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listExportsWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
{
- $request = $this->listExportsRequest($status, $cursor, $contentType);
+ $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -14976,11 +15589,11 @@ public function listExportsWithHttpInfo($status = null, $cursor = null, string $
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ExportList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\CallList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ExportList' !== 'string') {
+ if ('\FreeClimb\Api\Model\CallList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -14998,7 +15611,7 @@ public function listExportsWithHttpInfo($status = null, $cursor = null, string $
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -15017,7 +15630,7 @@ public function listExportsWithHttpInfo($status = null, $cursor = null, string $
);
}
- $returnType = '\FreeClimb\Api\Model\ExportList';
+ $returnType = '\FreeClimb\Api\Model\CallList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -15050,7 +15663,7 @@ public function listExportsWithHttpInfo($status = null, $cursor = null, string $
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ExportList',
+ '\FreeClimb\Api\Model\CallList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -15061,23 +15674,39 @@ public function listExportsWithHttpInfo($status = null, $cursor = null, string $
}
/**
- * Operation listExportsAsync
+ * Operation listCallsAsync
*
- * List Exports
+ * List Calls
*
- * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+ * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
- * @param string $cursor Used to reference pages of a list of exports (optional)
+ * @param string $to Only show Calls to this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ * @param string $from Only show Calls from this phone number. (optional)
+
+ * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
+
+ * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
+
+ * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
+
+ * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
+
+ * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
+
+ * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
+
+ * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listExportsAsync($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ public function listCallsAsync($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
{
- return $this->listExportsAsyncWithHttpInfo($status, $cursor, $contentType)
+ return $this->listCallsAsyncWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType)
->then(
function ($response) {
return $response[0];
@@ -15086,24 +15715,40 @@ function ($response) {
}
/**
- * Operation listExportsAsyncWithHttpInfo
+ * Operation listCallsAsyncWithHttpInfo
*
- * List Exports
+ * List Calls
*
- * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+ * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
- * @param string $cursor Used to reference pages of a list of exports (optional)
+ * @param string $to Only show Calls to this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
- *
+ * @param string $from Only show Calls from this phone number. (optional)
+
+ * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
+
+ * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
+
+ * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
+
+ * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
+
+ * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
+
+ * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
+
+ * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
+ *
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listExportsAsyncWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ public function listCallsAsyncWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
{
- $returnType = '\FreeClimb\Api\Model\ExportList';
- $request = $this->listExportsRequest($status, $cursor, $contentType);
+ $returnType = '\FreeClimb\Api\Model\CallList';
+ $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -15142,19 +15787,35 @@ function ($exception) {
}
/**
- * Create request for operation 'listExports'
+ * Create request for operation 'listCalls'
*
- * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+ * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false)
- * @param string $cursor Used to reference pages of a list of exports (optional)
+ * @param string $to Only show Calls to this phone number. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ * @param string $from Only show Calls from this phone number. (optional)
+
+ * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional)
+
+ * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional)
+
+ * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional)
+
+ * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional)
+
+ * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional)
+
+ * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional)
+
+ * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listExportsRequest($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ public function listCallsRequest($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0])
{
$account_id = $this->config->getUsername();
@@ -15162,31 +15823,114 @@ public function listExportsRequest($status = null, $cursor = null, string $conte
- $resourcePath = '/Accounts/{accountId}/Exports';
+
+
+
+ if ($application_id !== null && count($application_id) > 16) {
+ throw new \InvalidArgumentException('invalid value for "$application_id" when calling DefaultApi.listCalls, number of items must be less than or equal to 16.');
+ }
+
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Calls';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $active,
+ 'active', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $to,
+ 'to', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $from,
+ 'from', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$status,
'status', // param base name
- 'ExportStatus', // openApiType
+ 'CallStatus', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $cursor,
- 'cursor', // param base name
+ $start_time,
+ 'startTime', // param base name
'string', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $end_time,
+ 'endTime', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $parent_call_id,
+ 'parentCallId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $application_id,
+ 'applicationId', // param base name
+ 'array', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $risk_score_min,
+ 'riskScoreMin', // param base name
+ 'integer', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $risk_score_max,
+ 'riskScoreMax', // param base name
+ 'integer', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// path params
@@ -15257,101 +16001,49 @@ public function listExportsRequest($status = null, $cursor = null, string $conte
}
/**
- * Operation listIncomingNumbers
+ * Operation listConferenceRecordings
*
- * List Incoming Numbers
+ * List Conference Recordings
*
- * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
-
- * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
-
- * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
- * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\IncomingNumberList
+ * @return \FreeClimb\Api\Model\RecordingList
*/
- public function listIncomingNumbers($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $voice_enabled = true, $sms_enabled = true, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ public function listConferenceRecordings($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
{
- list($response) = $this->listIncomingNumbersWithHttpInfo($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+ list($response) = $this->listConferenceRecordingsWithHttpInfo($conference_id, $call_id, $date_created, $contentType);
return $response;
}
/**
- * Operation listIncomingNumbersWithHttpInfo
+ * Operation listConferenceRecordingsWithHttpInfo
*
- * List Incoming Numbers
+ * List Conference Recordings
*
- * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
-
- * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
-
- * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
- * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\IncomingNumberList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $voice_enabled = true, $sms_enabled = true, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
{
- $request = $this->listIncomingNumbersRequest($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+ $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -15378,11 +16070,11 @@ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = n
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\IncomingNumberList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\IncomingNumberList' !== 'string') {
+ if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -15400,7 +16092,7 @@ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = n
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -15419,7 +16111,7 @@ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = n
);
}
- $returnType = '\FreeClimb\Api\Model\IncomingNumberList';
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -15452,7 +16144,7 @@ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = n
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\IncomingNumberList',
+ '\FreeClimb\Api\Model\RecordingList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -15463,105 +16155,53 @@ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = n
}
/**
- * Operation listIncomingNumbersAsync
+ * Operation listConferenceRecordingsAsync
*
- * List Incoming Numbers
+ * List Conference Recordings
*
- * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
- * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $region State or province of this phone number. (optional)
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
- * @param string $country Country of this phone number. (optional)
-
- * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
-
- * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
-
- * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
-
- * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
-
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
- *
- * @throws \InvalidArgumentException
- * @return \GuzzleHttp\Promise\PromiseInterface
- */
- public function listIncomingNumbersAsync($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $voice_enabled = true, $sms_enabled = true, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
- {
- return $this->listIncomingNumbersAsyncWithHttpInfo($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType)
- ->then(
- function ($response) {
- return $response[0];
- }
- );
- }
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listConferenceRecordingsAsync($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
+ {
+ return $this->listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id, $date_created, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
/**
- * Operation listIncomingNumbersAsyncWithHttpInfo
+ * Operation listConferenceRecordingsAsyncWithHttpInfo
*
- * List Incoming Numbers
+ * List Conference Recordings
*
- * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
-
- * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
-
- * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
- * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listIncomingNumbersAsyncWithHttpInfo($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $voice_enabled = true, $sms_enabled = true, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ public function listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
{
- $returnType = '\FreeClimb\Api\Model\IncomingNumberList';
- $request = $this->listIncomingNumbersRequest($phone_number, $alias, $region, $country, $application_id, $has_application, $voice_enabled, $sms_enabled, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -15600,69 +16240,36 @@ function ($exception) {
}
/**
- * Create request for operation 'listIncomingNumbers'
+ * Create request for operation 'listConferenceRecordings'
*
- * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
-
- * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
-
- * @param string $region State or province of this phone number. (optional)
-
- * @param string $country Country of this phone number. (optional)
-
- * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
-
- * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
-
- * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) (deprecated)
-
- * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
-
- * @param bool $capabilities_voice (optional)
-
- * @param bool $capabilities_sms (optional)
-
- * @param bool $capabilities_toll_free (optional)
-
- * @param bool $capabilities_ten_dlc (optional)
-
- * @param bool $capabilities_short_code (optional)
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (required)
- * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listIncomingNumbersRequest($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $voice_enabled = true, $sms_enabled = true, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ public function listConferenceRecordingsRequest($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'conference_id' is set
+ if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $conference_id when calling listConferenceRecordings'
+ );
+ }
-
-
-
-
-
-
-
-
-
-
-
-
-
- $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers';
+ $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -15671,35 +16278,8 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $phone_number,
- 'phoneNumber', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $alias,
- 'alias', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $region,
- 'region', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $country,
- 'country', // param base name
+ $call_id,
+ 'callId', // param base name
'string', // openApiType
'form', // style
true, // explode
@@ -15707,80 +16287,2030 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $application_id,
- 'applicationId', // param base name
+ $date_created,
+ 'dateCreated', // param base name
'string', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($conference_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'conferenceId' . '}',
+ ObjectSerializer::toPathValue($conference_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'GET',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation listConferences
+ *
+ * List Conferences
+ *
+
+ * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
+
+ * @param string $alias List Conferences whose alias exactly matches this string. (optional)
+
+ * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return \FreeClimb\Api\Model\ConferenceList
+ */
+ public function listConferences($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ {
+ list($response) = $this->listConferencesWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType);
+ return $response;
+ }
+ /**
+ * Operation listConferencesWithHttpInfo
+ *
+ * List Conferences
+ *
+
+ * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
+
+ * @param string $alias List Conferences whose alias exactly matches this string. (optional)
+
+ * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of \FreeClimb\Api\Model\ConferenceList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function listConferencesWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ {
+ $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\ConferenceList' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\ConferenceList' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceList', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\ConferenceList';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\ConferenceList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation listConferencesAsync
+ *
+ * List Conferences
+ *
+
+ * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
+
+ * @param string $alias List Conferences whose alias exactly matches this string. (optional)
+
+ * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listConferencesAsync($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ {
+ return $this->listConferencesAsyncWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation listConferencesAsyncWithHttpInfo
+ *
+ * List Conferences
+ *
+
+ * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
+
+ * @param string $alias List Conferences whose alias exactly matches this string. (optional)
+
+ * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listConferencesAsyncWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ {
+ $returnType = '\FreeClimb\Api\Model\ConferenceList';
+ $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'listConferences'
+ *
+
+ * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional)
+
+ * @param string $alias List Conferences whose alias exactly matches this string. (optional)
+
+ * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function listConferencesRequest($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+
+
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Conferences';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $status,
+ 'status', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $alias,
+ 'alias', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $date_created,
+ 'dateCreated', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $date_updated,
+ 'dateUpdated', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'GET',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation listExports
+ *
+ * List Exports
+ *
+
+ * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+
+ * @param string $cursor Used to reference pages of a list of exports (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return \FreeClimb\Api\Model\ExportList
+ */
+ public function listExports($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ {
+ list($response) = $this->listExportsWithHttpInfo($status, $cursor, $contentType);
+ return $response;
+ }
+ /**
+ * Operation listExportsWithHttpInfo
+ *
+ * List Exports
+ *
+
+ * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+
+ * @param string $cursor Used to reference pages of a list of exports (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of \FreeClimb\Api\Model\ExportList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function listExportsWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ {
+ $request = $this->listExportsRequest($status, $cursor, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\ExportList' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\ExportList' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportList', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\ExportList';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\ExportList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation listExportsAsync
+ *
+ * List Exports
+ *
+
+ * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+
+ * @param string $cursor Used to reference pages of a list of exports (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listExportsAsync($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ {
+ return $this->listExportsAsyncWithHttpInfo($status, $cursor, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation listExportsAsyncWithHttpInfo
+ *
+ * List Exports
+ *
+
+ * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+
+ * @param string $cursor Used to reference pages of a list of exports (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listExportsAsyncWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ {
+ $returnType = '\FreeClimb\Api\Model\ExportList';
+ $request = $this->listExportsRequest($status, $cursor, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'listExports'
+ *
+
+ * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional)
+
+ * @param string $cursor Used to reference pages of a list of exports (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function listExportsRequest($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Exports';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $status,
+ 'status', // param base name
+ 'ExportStatus', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $cursor,
+ 'cursor', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'GET',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation listIncomingNumbers
+ *
+ * List Incoming Numbers
+ *
+
+ * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+
+ * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+
+ * @param string $region State or province of this phone number. (optional)
+
+ * @param string $country Country of this phone number. (optional)
+
+ * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
+
+ * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
+
+ * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+
+ * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return \FreeClimb\Api\Model\IncomingNumberList
+ */
+ public function listIncomingNumbers($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ {
+ list($response) = $this->listIncomingNumbersWithHttpInfo($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+ return $response;
+ }
+ /**
+ * Operation listIncomingNumbersWithHttpInfo
+ *
+ * List Incoming Numbers
+ *
+
+ * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+
+ * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+
+ * @param string $region State or province of this phone number. (optional)
+
+ * @param string $country Country of this phone number. (optional)
+
+ * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
+
+ * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
+
+ * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+
+ * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of \FreeClimb\Api\Model\IncomingNumberList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function listIncomingNumbersWithHttpInfo($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ {
+ $request = $this->listIncomingNumbersRequest($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\IncomingNumberList' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\IncomingNumberList' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberList', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\IncomingNumberList';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\IncomingNumberList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation listIncomingNumbersAsync
+ *
+ * List Incoming Numbers
+ *
+
+ * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+
+ * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+
+ * @param string $region State or province of this phone number. (optional)
+
+ * @param string $country Country of this phone number. (optional)
+
+ * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
+
+ * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
+
+ * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+
+ * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listIncomingNumbersAsync($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ {
+ return $this->listIncomingNumbersAsyncWithHttpInfo($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation listIncomingNumbersAsyncWithHttpInfo
+ *
+ * List Incoming Numbers
+ *
+
+ * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+
+ * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+
+ * @param string $region State or province of this phone number. (optional)
+
+ * @param string $country Country of this phone number. (optional)
+
+ * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
+
+ * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
+
+ * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+
+ * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listIncomingNumbersAsyncWithHttpInfo($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ {
+ $returnType = '\FreeClimb\Api\Model\IncomingNumberList';
+ $request = $this->listIncomingNumbersRequest($phone_number, $alias, $region, $country, $application_id, $has_application, $has_campaign, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $tfn_campaign_id, $offnet, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'listIncomingNumbers'
+ *
+
+ * @param string $phone_number Only show incoming phone number resources that match this PCRE-compatible regular expression. (optional)
+
+ * @param string $alias Only show incoming phone numbers with aliases that exactly match this value. (optional)
+
+ * @param string $region State or province of this phone number. (optional)
+
+ * @param string $country Country of this phone number. (optional)
+
+ * @param string $application_id ID of the Application that FreeClimb should contact if a Call or SMS arrives for this phone number or a Call from this number is placed. An incoming phone number is not useful until associated with an applicationId. (optional)
+
+ * @param bool $has_application Indication of whether the phone number has an application linked to it. (optional, default to false)
+
+ * @param bool $has_campaign Indication of whether the phone number has a campaign associated with it (optional)
+
+ * @param bool $capabilities_voice (optional)
+
+ * @param bool $capabilities_sms (optional)
+
+ * @param bool $capabilities_toll_free (optional)
+
+ * @param bool $capabilities_ten_dlc (optional)
+
+ * @param bool $capabilities_short_code (optional)
+
+ * @param string $tfn_campaign_id Only show incoming phone number resources that have been assigned to the provided TFNCampaign ID. (optional)
+
+ * @param bool $offnet Indication of whether the phone number was registered as an offnet number. This field will be rendered only for requests to the IncomingPhone number resource. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listIncomingNumbers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function listIncomingNumbersRequest($phone_number = null, $alias = null, $region = null, $country = null, $application_id = null, $has_application = false, $has_campaign = null, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, $tfn_campaign_id = null, $offnet = null, string $contentType = self::contentTypes['listIncomingNumbers'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $phone_number,
+ 'phoneNumber', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $alias,
+ 'alias', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $region,
+ 'region', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $country,
+ 'country', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $application_id,
+ 'applicationId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $has_application,
+ 'hasApplication', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $has_campaign,
+ 'hasCampaign', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_voice,
+ 'capabilities.voice', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_sms,
+ 'capabilities.sms', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_toll_free,
+ 'capabilities.tollFree', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_ten_dlc,
+ 'capabilities.tenDLC', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $capabilities_short_code,
+ 'capabilities.shortCode', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $tfn_campaign_id,
+ 'tfn.campaignId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $offnet,
+ 'offnet', // param base name
+ 'boolean', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'GET',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation listMembers
+ *
+ * List Members
+ *
+
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return \FreeClimb\Api\Model\QueueMemberList
+ */
+ public function listMembers($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ {
+ list($response) = $this->listMembersWithHttpInfo($queue_id, $contentType);
+ return $response;
+ }
+ /**
+ * Operation listMembersWithHttpInfo
+ *
+ * List Members
+ *
+
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of \FreeClimb\Api\Model\QueueMemberList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function listMembersWithHttpInfo($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ {
+ $request = $this->listMembersRequest($queue_id, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\QueueMemberList' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\QueueMemberList' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMemberList', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\QueueMemberList';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\QueueMemberList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation listMembersAsync
+ *
+ * List Members
+ *
+
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listMembersAsync($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ {
+ return $this->listMembersAsyncWithHttpInfo($queue_id, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation listMembersAsyncWithHttpInfo
+ *
+ * List Members
+ *
+
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listMembersAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ {
+ $returnType = '\FreeClimb\Api\Model\QueueMemberList';
+ $request = $this->listMembersRequest($queue_id, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'listMembers'
+ *
+
+ * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function listMembersRequest($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+ // verify the required parameter 'queue_id' is set
+ if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $queue_id when calling listMembers'
+ );
+ }
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
+
+
+ // path params
+ if ($account_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'accountId' . '}',
+ ObjectSerializer::toPathValue($account_id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($queue_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'queueId' . '}',
+ ObjectSerializer::toPathValue($queue_id),
+ $resourcePath
+ );
+ }
+
+
+ $headers = $this->headerSelector->selectHeaders(
+ ['application/json', ],
+ $contentType,
+ $multipart
+ );
+
+ // for model (json/xml)
+ if (count($formParams) > 0) {
+ if ($multipart) {
+ $multipartContents = [];
+ foreach ($formParams as $formParamName => $formParamValue) {
+ $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];
+ foreach ($formParamValueItems as $formParamValueItem) {
+ $multipartContents[] = [
+ 'name' => $formParamName,
+ 'contents' => $formParamValueItem
+ ];
+ }
+ }
+ // for HTTP post (form)
+ $httpBody = new MultipartStream($multipartContents);
+
+ } elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the form parameters
+ $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
+ } else {
+ // for HTTP post (form)
+ $httpBody = ObjectSerializer::buildQuery($formParams);
+ }
+ }
+
+ // this endpoint requires HTTP basic authentication
+ if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) {
+ $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
+ }
+
+ $defaultHeaders = [];
+ if ($this->config->getUserAgent()) {
+ $defaultHeaders['User-Agent'] = $this->config->getUserAgent();
+ }
+
+ $headers = array_merge(
+ $defaultHeaders,
+ $headerParams,
+ $headers
+ );
+
+ $operationHost = $this->config->getHost();
+ $query = ObjectSerializer::buildQuery($queryParams);
+ return new Request(
+ 'GET',
+ $operationHost . $resourcePath . ($query ? "?{$query}" : ''),
+ $headers,
+ $httpBody
+ );
+ }
+
+ /**
+ * Operation listParticipants
+ *
+ * List Participants
+ *
+
+ * @param string $conference_id ID of the conference this participant is in. (required)
+
+ * @param bool $talk Only show Participants with the talk privilege. (optional)
+
+ * @param bool $listen Only show Participants with the listen privilege. (optional)
+
+ * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return \FreeClimb\Api\Model\ConferenceParticipantList
+ */
+ public function listParticipants($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ {
+ list($response) = $this->listParticipantsWithHttpInfo($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+ return $response;
+ }
+ /**
+ * Operation listParticipantsWithHttpInfo
+ *
+ * List Participants
+ *
+
+ * @param string $conference_id ID of the conference this participant is in. (required)
+
+ * @param bool $talk Only show Participants with the talk privilege. (optional)
+
+ * @param bool $listen Only show Participants with the listen privilege. (optional)
+
+ * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ *
+ * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
+ * @throws \InvalidArgumentException
+ * @return array of \FreeClimb\Api\Model\ConferenceParticipantList, HTTP status code, HTTP response headers (array of strings)
+ */
+ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ {
+ $request = $this->listParticipantsRequest($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+
+ try {
+ $options = $this->createHttpClientOption();
+ try {
+ $response = $this->client->send($request, $options);
+ } catch (RequestException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ $e->getResponse() ? $e->getResponse()->getHeaders() : null,
+ $e->getResponse() ? (string) $e->getResponse()->getBody() : null
+ );
+ } catch (ConnectException $e) {
+ throw new ApiException(
+ "[{$e->getCode()}] {$e->getMessage()}",
+ (int) $e->getCode(),
+ null,
+ null
+ );
+ }
+
+ $statusCode = $response->getStatusCode();
+
+
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\ConferenceParticipantList' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\ConferenceParticipantList' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantList', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\ConferenceParticipantList';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+
+ } catch (ApiException $e) {
+ switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\ConferenceParticipantList',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ }
+ throw $e;
+ }
+ }
+
+ /**
+ * Operation listParticipantsAsync
+ *
+ * List Participants
+ *
+
+ * @param string $conference_id ID of the conference this participant is in. (required)
+
+ * @param bool $talk Only show Participants with the talk privilege. (optional)
+
+ * @param bool $listen Only show Participants with the listen privilege. (optional)
+
+ * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listParticipantsAsync($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ {
+ return $this->listParticipantsAsyncWithHttpInfo($conference_id, $talk, $listen, $dtmf_pass_through, $contentType)
+ ->then(
+ function ($response) {
+ return $response[0];
+ }
+ );
+ }
+
+ /**
+ * Operation listParticipantsAsyncWithHttpInfo
+ *
+ * List Participants
+ *
+
+ * @param string $conference_id ID of the conference this participant is in. (required)
+
+ * @param bool $talk Only show Participants with the talk privilege. (optional)
+
+ * @param bool $listen Only show Participants with the listen privilege. (optional)
+
+ * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Promise\PromiseInterface
+ */
+ public function listParticipantsAsyncWithHttpInfo($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ {
+ $returnType = '\FreeClimb\Api\Model\ConferenceParticipantList';
+ $request = $this->listParticipantsRequest($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+
+ return $this->client
+ ->sendAsync($request, $this->createHttpClientOption())
+ ->then(
+ function ($response) use ($returnType) {
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ },
+ function ($exception) {
+ $response = $exception->getResponse();
+ $statusCode = $response->getStatusCode();
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ $exception->getRequest()->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+ );
+ }
+
+ /**
+ * Create request for operation 'listParticipants'
+ *
+
+ * @param string $conference_id ID of the conference this participant is in. (required)
+
+ * @param bool $talk Only show Participants with the talk privilege. (optional)
+
+ * @param bool $listen Only show Participants with the listen privilege. (optional)
+
+ * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ *
+ * @throws \InvalidArgumentException
+ * @return \GuzzleHttp\Psr7\Request
+ */
+ public function listParticipantsRequest($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ {
+ $account_id = $this->config->getUsername();
+
+ // verify the required parameter 'conference_id' is set
+ if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $conference_id when calling listParticipants'
+ );
+ }
+
+
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants';
+ $formParams = [];
+ $queryParams = [];
+ $headerParams = [];
+ $httpBody = '';
+ $multipart = false;
+
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $has_application,
- 'hasApplication', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $voice_enabled,
- 'voiceEnabled', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $sms_enabled,
- 'smsEnabled', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $has_campaign,
- 'hasCampaign', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_voice,
- 'capabilities.voice', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_sms,
- 'capabilities.sms', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_toll_free,
- 'capabilities.tollFree', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_ten_dlc,
- 'capabilities.tenDLC', // param base name
+ $talk,
+ 'talk', // param base name
'boolean', // openApiType
'form', // style
true, // explode
@@ -15788,8 +18318,8 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $capabilities_short_code,
- 'capabilities.shortCode', // param base name
+ $listen,
+ 'listen', // param base name
'boolean', // openApiType
'form', // style
true, // explode
@@ -15797,17 +18327,8 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $tfn_campaign_id,
- 'tfn.campaignId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $offnet,
- 'offnet', // param base name
+ $dtmf_pass_through,
+ 'dtmfPassThrough', // param base name
'boolean', // openApiType
'form', // style
true, // explode
@@ -15823,6 +18344,14 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
$resourcePath
);
}
+ // path params
+ if ($conference_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'conferenceId' . '}',
+ ObjectSerializer::toPathValue($conference_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -15883,41 +18412,49 @@ public function listIncomingNumbersRequest($phone_number = null, $alias = null,
}
/**
- * Operation listMembers
+ * Operation listRecordings
*
- * List Members
+ * List Recordings
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
+
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\QueueMemberList
+ * @return \FreeClimb\Api\Model\RecordingList
*/
- public function listMembers($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ public function listRecordings($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
{
- list($response) = $this->listMembersWithHttpInfo($queue_id, $contentType);
+ list($response) = $this->listRecordingsWithHttpInfo($call_id, $conference_id, $date_created, $contentType);
return $response;
}
/**
- * Operation listMembersWithHttpInfo
+ * Operation listRecordingsWithHttpInfo
*
- * List Members
+ * List Recordings
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
+
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\QueueMemberList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listMembersWithHttpInfo($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
{
- $request = $this->listMembersRequest($queue_id, $contentType);
+ $request = $this->listRecordingsRequest($call_id, $conference_id, $date_created, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -15944,11 +18481,11 @@ public function listMembersWithHttpInfo($queue_id, string $contentType = self::c
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\QueueMemberList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\QueueMemberList' !== 'string') {
+ if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -15966,7 +18503,7 @@ public function listMembersWithHttpInfo($queue_id, string $contentType = self::c
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMemberList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -15985,7 +18522,7 @@ public function listMembersWithHttpInfo($queue_id, string $contentType = self::c
);
}
- $returnType = '\FreeClimb\Api\Model\QueueMemberList';
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -16018,7 +18555,7 @@ public function listMembersWithHttpInfo($queue_id, string $contentType = self::c
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\QueueMemberList',
+ '\FreeClimb\Api\Model\RecordingList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -16029,21 +18566,25 @@ public function listMembersWithHttpInfo($queue_id, string $contentType = self::c
}
/**
- * Operation listMembersAsync
+ * Operation listRecordingsAsync
*
- * List Members
+ * List Recordings
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
+
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listMembersAsync($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ public function listRecordingsAsync($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
{
- return $this->listMembersAsyncWithHttpInfo($queue_id, $contentType)
+ return $this->listRecordingsAsyncWithHttpInfo($call_id, $conference_id, $date_created, $contentType)
->then(
function ($response) {
return $response[0];
@@ -16052,22 +18593,26 @@ function ($response) {
}
/**
- * Operation listMembersAsyncWithHttpInfo
+ * Operation listRecordingsAsyncWithHttpInfo
*
- * List Members
+ * List Recordings
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
+
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listMembersAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ public function listRecordingsAsyncWithHttpInfo($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
{
- $returnType = '\FreeClimb\Api\Model\QueueMemberList';
- $request = $this->listMembersRequest($queue_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $request = $this->listRecordingsRequest($call_id, $conference_id, $date_created, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -16106,36 +18651,63 @@ function ($exception) {
}
/**
- * Create request for operation 'listMembers'
+ * Create request for operation 'listRecordings'
*
- * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required)
+ * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listMembers'] to see the possible values for this operation
+ * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
+
+ * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listMembersRequest($queue_id, string $contentType = self::contentTypes['listMembers'][0])
+ public function listRecordingsRequest($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'queue_id' is set
- if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $queue_id when calling listMembers'
- );
- }
- $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members';
+
+
+ $resourcePath = '/Accounts/{accountId}/Recordings';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $call_id,
+ 'callId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $conference_id,
+ 'conferenceId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $date_created,
+ 'dateCreated', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// path params
@@ -16146,14 +18718,6 @@ public function listMembersRequest($queue_id, string $contentType = self::conten
$resourcePath
);
}
- // path params
- if ($queue_id !== null) {
- $resourcePath = str_replace(
- '{' . 'queueId' . '}',
- ObjectSerializer::toPathValue($queue_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -16214,53 +18778,69 @@ public function listMembersRequest($queue_id, string $contentType = self::conten
}
/**
- * Operation listParticipants
+ * Operation listSmsMessages
*
- * List Participants
+ * List SMS Messages
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $to Only show Messages to this phone number. (optional)
- * @param bool $talk Only show Participants with the talk privilege. (optional)
+ * @param string $from Only show Messages from this phone number. (optional)
- * @param bool $listen Only show Participants with the listen privilege. (optional)
+ * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
- * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+ * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
+
+ * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+
+ * @param string $brand_id Only show messages associated with this brand ID (optional)
+
+ * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\ConferenceParticipantList
+ * @return \FreeClimb\Api\Model\MessagesList
*/
- public function listParticipants($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ public function listSmsMessages($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
{
- list($response) = $this->listParticipantsWithHttpInfo($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+ list($response) = $this->listSmsMessagesWithHttpInfo($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
return $response;
}
/**
- * Operation listParticipantsWithHttpInfo
+ * Operation listSmsMessagesWithHttpInfo
*
- * List Participants
+ * List SMS Messages
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $to Only show Messages to this phone number. (optional)
- * @param bool $talk Only show Participants with the talk privilege. (optional)
+ * @param string $from Only show Messages from this phone number. (optional)
- * @param bool $listen Only show Participants with the listen privilege. (optional)
+ * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
- * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+ * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
+
+ * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+
+ * @param string $brand_id Only show messages associated with this brand ID (optional)
+
+ * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\ConferenceParticipantList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\MessagesList, HTTP status code, HTTP response headers (array of strings)
*/
- public function listParticipantsWithHttpInfo($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
{
- $request = $this->listParticipantsRequest($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+ $request = $this->listSmsMessagesRequest($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -16287,11 +18867,11 @@ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $list
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\ConferenceParticipantList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\MessagesList' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\ConferenceParticipantList' !== 'string') {
+ if ('\FreeClimb\Api\Model\MessagesList' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -16309,7 +18889,7 @@ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $list
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessagesList', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -16328,7 +18908,7 @@ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $list
);
}
- $returnType = '\FreeClimb\Api\Model\ConferenceParticipantList';
+ $returnType = '\FreeClimb\Api\Model\MessagesList';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -16361,7 +18941,7 @@ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $list
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\ConferenceParticipantList',
+ '\FreeClimb\Api\Model\MessagesList',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -16372,27 +18952,35 @@ public function listParticipantsWithHttpInfo($conference_id, $talk = null, $list
}
/**
- * Operation listParticipantsAsync
+ * Operation listSmsMessagesAsync
*
- * List Participants
+ * List SMS Messages
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $to Only show Messages to this phone number. (optional)
- * @param bool $talk Only show Participants with the talk privilege. (optional)
+ * @param string $from Only show Messages from this phone number. (optional)
- * @param bool $listen Only show Participants with the listen privilege. (optional)
+ * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
- * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+ * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
+
+ * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+
+ * @param string $brand_id Only show messages associated with this brand ID (optional)
+
+ * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listParticipantsAsync($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ public function listSmsMessagesAsync($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
{
- return $this->listParticipantsAsyncWithHttpInfo($conference_id, $talk, $listen, $dtmf_pass_through, $contentType)
+ return $this->listSmsMessagesAsyncWithHttpInfo($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType)
->then(
function ($response) {
return $response[0];
@@ -16401,28 +18989,36 @@ function ($response) {
}
/**
- * Operation listParticipantsAsyncWithHttpInfo
+ * Operation listSmsMessagesAsyncWithHttpInfo
*
- * List Participants
+ * List SMS Messages
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $to Only show Messages to this phone number. (optional)
- * @param bool $talk Only show Participants with the talk privilege. (optional)
+ * @param string $from Only show Messages from this phone number. (optional)
- * @param bool $listen Only show Participants with the listen privilege. (optional)
+ * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
- * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+ * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
+
+ * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+
+ * @param string $brand_id Only show messages associated with this brand ID (optional)
+
+ * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listParticipantsAsyncWithHttpInfo($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ public function listSmsMessagesAsyncWithHttpInfo($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
{
- $returnType = '\FreeClimb\Api\Model\ConferenceParticipantList';
- $request = $this->listParticipantsRequest($conference_id, $talk, $listen, $dtmf_pass_through, $contentType);
+ $returnType = '\FreeClimb\Api\Model\MessagesList';
+ $request = $this->listSmsMessagesRequest($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -16461,39 +19057,45 @@ function ($exception) {
}
/**
- * Create request for operation 'listParticipants'
+ * Create request for operation 'listSmsMessages'
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $to Only show Messages to this phone number. (optional)
- * @param bool $talk Only show Participants with the talk privilege. (optional)
+ * @param string $from Only show Messages from this phone number. (optional)
- * @param bool $listen Only show Participants with the listen privilege. (optional)
+ * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
- * @param bool $dtmf_pass_through Only show Participants with the dtmfPassThrough privilege. (optional)
+ * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listParticipants'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
+
+ * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+
+ * @param string $brand_id Only show messages associated with this brand ID (optional)
+
+ * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listParticipantsRequest($conference_id, $talk = null, $listen = null, $dtmf_pass_through = null, string $contentType = self::contentTypes['listParticipants'][0])
+ public function listSmsMessagesRequest($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'conference_id' is set
- if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
- throw new \InvalidArgumentException(
- 'Missing the required parameter $conference_id when calling listParticipants'
- );
- }
- $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants';
+
+
+
+
+ $resourcePath = '/Accounts/{accountId}/Messages';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -16502,26 +19104,71 @@ public function listParticipantsRequest($conference_id, $talk = null, $listen =
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $talk,
- 'talk', // param base name
- 'boolean', // openApiType
+ $to,
+ 'to', // param base name
+ 'string', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $listen,
- 'listen', // param base name
- 'boolean', // openApiType
+ $from,
+ 'from', // param base name
+ 'string', // openApiType
'form', // style
true, // explode
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $dtmf_pass_through,
- 'dtmfPassThrough', // param base name
+ $begin_time,
+ 'beginTime', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $end_time,
+ 'endTime', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $direction,
+ 'direction', // param base name
+ 'MessageDirection', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $campaign_id,
+ 'campaignId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $brand_id,
+ 'brandId', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $is10_dlc,
+ 'is10DLC', // param base name
'boolean', // openApiType
'form', // style
true, // explode
@@ -16537,14 +19184,6 @@ public function listParticipantsRequest($conference_id, $talk = null, $listen =
$resourcePath
);
}
- // path params
- if ($conference_id !== null) {
- $resourcePath = str_replace(
- '{' . 'conferenceId' . '}',
- ObjectSerializer::toPathValue($conference_id),
- $resourcePath
- );
- }
$headers = $this->headerSelector->selectHeaders(
@@ -16605,49 +19244,41 @@ public function listParticipantsRequest($conference_id, $talk = null, $listen =
}
/**
- * Operation listRecordings
+ * Operation makeACall
*
- * List Recordings
+ * Make a Call
*
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\RecordingList
+ * @return \FreeClimb\Api\Model\CallResult
*/
- public function listRecordings($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
+ public function makeACall($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
{
- list($response) = $this->listRecordingsWithHttpInfo($call_id, $conference_id, $date_created, $contentType);
+ list($response) = $this->makeACallWithHttpInfo($make_call_request, $contentType);
return $response;
}
/**
- * Operation listRecordingsWithHttpInfo
+ * Operation makeACallWithHttpInfo
*
- * List Recordings
+ * Make a Call
*
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings)
*/
- public function listRecordingsWithHttpInfo($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
+ public function makeACallWithHttpInfo($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
{
- $request = $this->listRecordingsRequest($call_id, $conference_id, $date_created, $contentType);
+ $request = $this->makeACallRequest($make_call_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -16674,11 +19305,11 @@ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = nul
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\RecordingList' !== 'string') {
+ if ('\FreeClimb\Api\Model\CallResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -16696,7 +19327,7 @@ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = nul
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -16715,7 +19346,7 @@ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = nul
);
}
- $returnType = '\FreeClimb\Api\Model\RecordingList';
+ $returnType = '\FreeClimb\Api\Model\CallResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -16748,7 +19379,7 @@ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = nul
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\RecordingList',
+ '\FreeClimb\Api\Model\CallResult',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -16759,25 +19390,21 @@ public function listRecordingsWithHttpInfo($call_id = null, $conference_id = nul
}
/**
- * Operation listRecordingsAsync
+ * Operation makeACallAsync
*
- * List Recordings
+ * Make a Call
*
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listRecordingsAsync($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
+ public function makeACallAsync($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
{
- return $this->listRecordingsAsyncWithHttpInfo($call_id, $conference_id, $date_created, $contentType)
+ return $this->makeACallAsyncWithHttpInfo($make_call_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -16786,26 +19413,22 @@ function ($response) {
}
/**
- * Operation listRecordingsAsyncWithHttpInfo
+ * Operation makeACallAsyncWithHttpInfo
*
- * List Recordings
+ * Make a Call
*
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listRecordingsAsyncWithHttpInfo($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
+ public function makeACallAsyncWithHttpInfo($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
{
- $returnType = '\FreeClimb\Api\Model\RecordingList';
- $request = $this->listRecordingsRequest($call_id, $conference_id, $date_created, $contentType);
+ $returnType = '\FreeClimb\Api\Model\CallResult';
+ $request = $this->makeACallRequest($make_call_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -16844,63 +19467,30 @@ function ($exception) {
}
/**
- * Create request for operation 'listRecordings'
+ * Create request for operation 'makeACall'
*
- * @param string $call_id Show only Recordings made during the Call with this ID. (optional)
-
- * @param string $conference_id Show only Recordings made during the conference with this ID. (optional)
-
- * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional)
+ * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listRecordings'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listRecordingsRequest($call_id = null, $conference_id = null, $date_created = null, string $contentType = self::contentTypes['listRecordings'][0])
+ public function makeACallRequest($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
{
$account_id = $this->config->getUsername();
-
-
- $resourcePath = '/Accounts/{accountId}/Recordings';
+ $resourcePath = '/Accounts/{accountId}/Calls';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $call_id,
- 'callId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $conference_id,
- 'conferenceId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $date_created,
- 'dateCreated', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -16920,7 +19510,14 @@ public function listRecordingsRequest($call_id = null, $conference_id = null, $d
);
// for model (json/xml)
- if (count($formParams) > 0) {
+ if (isset($make_call_request)) {
+ if (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the body
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($make_call_request));
+ } else {
+ $httpBody = $make_call_request;
+ }
+ } elseif (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -16963,7 +19560,7 @@ public function listRecordingsRequest($call_id = null, $conference_id = null, $d
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'GET',
+ 'POST',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -16971,69 +19568,41 @@ public function listRecordingsRequest($call_id = null, $conference_id = null, $d
}
/**
- * Operation listSmsMessages
+ * Operation makeAWebrtcJwt
*
- * List SMS Messages
+ * Make a JWT for WebRTC calling
*
- * @param string $to Only show Messages to this phone number. (optional)
-
- * @param string $from Only show Messages from this phone number. (optional)
-
- * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
-
- * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
-
- * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
-
- * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
-
- * @param string $brand_id Only show messages associated with this brand ID (optional)
-
- * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+ * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\MessagesList
+ * @return string
*/
- public function listSmsMessages($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
+ public function makeAWebrtcJwt($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
{
- list($response) = $this->listSmsMessagesWithHttpInfo($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
+ list($response) = $this->makeAWebrtcJwtWithHttpInfo($create_web_rtc_token, $contentType);
return $response;
}
/**
- * Operation listSmsMessagesWithHttpInfo
+ * Operation makeAWebrtcJwtWithHttpInfo
*
- * List SMS Messages
+ * Make a JWT for WebRTC calling
*
- * @param string $to Only show Messages to this phone number. (optional)
-
- * @param string $from Only show Messages from this phone number. (optional)
-
- * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
-
- * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
-
- * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
-
- * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
-
- * @param string $brand_id Only show messages associated with this brand ID (optional)
-
- * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+ * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\MessagesList, HTTP status code, HTTP response headers (array of strings)
+ * @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
- public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
+ public function makeAWebrtcJwtWithHttpInfo($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
{
- $request = $this->listSmsMessagesRequest($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
+ $request = $this->makeAWebrtcJwtRequest($create_web_rtc_token, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -17060,11 +19629,11 @@ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_tim
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\MessagesList' === '\SplFileObject') {
+ if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\MessagesList' !== 'string') {
+ if ('string' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -17082,7 +19651,7 @@ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_tim
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessagesList', []),
+ ObjectSerializer::deserialize($content, 'string', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -17101,7 +19670,7 @@ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_tim
);
}
- $returnType = '\FreeClimb\Api\Model\MessagesList';
+ $returnType = 'string';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -17134,7 +19703,7 @@ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_tim
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\MessagesList',
+ 'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -17145,35 +19714,21 @@ public function listSmsMessagesWithHttpInfo($to = null, $from = null, $begin_tim
}
/**
- * Operation listSmsMessagesAsync
+ * Operation makeAWebrtcJwtAsync
*
- * List SMS Messages
+ * Make a JWT for WebRTC calling
*
- * @param string $to Only show Messages to this phone number. (optional)
-
- * @param string $from Only show Messages from this phone number. (optional)
-
- * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
-
- * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
-
- * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
-
- * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
-
- * @param string $brand_id Only show messages associated with this brand ID (optional)
-
- * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+ * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listSmsMessagesAsync($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
+ public function makeAWebrtcJwtAsync($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
{
- return $this->listSmsMessagesAsyncWithHttpInfo($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType)
+ return $this->makeAWebrtcJwtAsyncWithHttpInfo($create_web_rtc_token, $contentType)
->then(
function ($response) {
return $response[0];
@@ -17182,36 +19737,22 @@ function ($response) {
}
/**
- * Operation listSmsMessagesAsyncWithHttpInfo
+ * Operation makeAWebrtcJwtAsyncWithHttpInfo
*
- * List SMS Messages
+ * Make a JWT for WebRTC calling
*
- * @param string $to Only show Messages to this phone number. (optional)
-
- * @param string $from Only show Messages from this phone number. (optional)
-
- * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
-
- * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
-
- * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
-
- * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
-
- * @param string $brand_id Only show messages associated with this brand ID (optional)
-
- * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+ * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function listSmsMessagesAsyncWithHttpInfo($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
+ public function makeAWebrtcJwtAsyncWithHttpInfo($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
{
- $returnType = '\FreeClimb\Api\Model\MessagesList';
- $request = $this->listSmsMessagesRequest($to, $from, $begin_time, $end_time, $direction, $campaign_id, $brand_id, $is10_dlc, $contentType);
+ $returnType = 'string';
+ $request = $this->makeAWebrtcJwtRequest($create_web_rtc_token, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -17246,127 +19787,40 @@ function ($exception) {
(string) $response->getBody()
);
}
- );
- }
-
- /**
- * Create request for operation 'listSmsMessages'
- *
-
- * @param string $to Only show Messages to this phone number. (optional)
-
- * @param string $from Only show Messages from this phone number. (optional)
-
- * @param string $begin_time Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
-
- * @param string $end_time Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
-
- * @param \FreeClimb\Api\Model\MessageDirection $direction Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
-
- * @param string $campaign_id Only show messages associated with this campaign ID. (optional)
+ );
+ }
- * @param string $brand_id Only show messages associated with this brand ID (optional)
+ /**
+ * Create request for operation 'makeAWebrtcJwt'
+ *
- * @param bool $is10_dlc Only show messages that were sent as part of a 10DLC campaign. (optional)
+ * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSmsMessages'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function listSmsMessagesRequest($to = null, $from = null, $begin_time = null, $end_time = null, $direction = null, $campaign_id = null, $brand_id = null, $is10_dlc = null, string $contentType = self::contentTypes['listSmsMessages'][0])
+ public function makeAWebrtcJwtRequest($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'create_web_rtc_token' is set
+ if ($create_web_rtc_token === null || (is_array($create_web_rtc_token) && count($create_web_rtc_token) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $create_web_rtc_token when calling makeAWebrtcJwt'
+ );
+ }
-
-
-
-
-
-
-
- $resourcePath = '/Accounts/{accountId}/Messages';
+ $resourcePath = '/Accounts/{accountId}/Calls/WebRTC/Token';
$formParams = [];
$queryParams = [];
$headerParams = [];
$httpBody = '';
$multipart = false;
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $to,
- 'to', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $from,
- 'from', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $begin_time,
- 'beginTime', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $end_time,
- 'endTime', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $direction,
- 'direction', // param base name
- 'MessageDirection', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $campaign_id,
- 'campaignId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $brand_id,
- 'brandId', // param base name
- 'string', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
- // query params
- $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
- $is10_dlc,
- 'is10DLC', // param base name
- 'boolean', // openApiType
- 'form', // style
- true, // explode
- false // required
- ) ?? []);
// path params
@@ -17380,13 +19834,20 @@ public function listSmsMessagesRequest($to = null, $from = null, $begin_time = n
$headers = $this->headerSelector->selectHeaders(
- ['application/json', ],
+ ['text/plain', ],
$contentType,
$multipart
);
// for model (json/xml)
- if (count($formParams) > 0) {
+ if (isset($create_web_rtc_token)) {
+ if (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the body
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_web_rtc_token));
+ } else {
+ $httpBody = $create_web_rtc_token;
+ }
+ } elseif (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -17429,7 +19890,7 @@ public function listSmsMessagesRequest($to = null, $from = null, $begin_time = n
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'GET',
+ 'POST',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -17437,41 +19898,45 @@ public function listSmsMessagesRequest($to = null, $from = null, $begin_time = n
}
/**
- * Operation makeACall
+ * Operation modifyBlob
*
- * Make a Call
+ * Modify Blob
*
- * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\ModifyBlobRequest $modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return \FreeClimb\Api\Model\CallResult
+ * @return \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function makeACall($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
+ public function modifyBlob($blob_id, $modify_blob_request, string $contentType = self::contentTypes['modifyBlob'][0])
{
- list($response) = $this->makeACallWithHttpInfo($make_call_request, $contentType);
+ list($response) = $this->modifyBlobWithHttpInfo($blob_id, $modify_blob_request, $contentType);
return $response;
}
/**
- * Operation makeACallWithHttpInfo
+ * Operation modifyBlobWithHttpInfo
*
- * Make a Call
+ * Modify Blob
*
- * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\ModifyBlobRequest $modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function makeACallWithHttpInfo($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
+ public function modifyBlobWithHttpInfo($blob_id, $modify_blob_request, string $contentType = self::contentTypes['modifyBlob'][0])
{
- $request = $this->makeACallRequest($make_call_request, $contentType);
+ $request = $this->modifyBlobRequest($blob_id, $modify_blob_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -17498,11 +19963,11 @@ public function makeACallWithHttpInfo($make_call_request = null, string $content
switch ($statusCode) {
case 200:
- if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') {
+ if ('\FreeClimb\Api\Model\BlobResult' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
- if ('\FreeClimb\Api\Model\CallResult' !== 'string') {
+ if ('\FreeClimb\Api\Model\BlobResult' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
@@ -17520,7 +19985,115 @@ public function makeACallWithHttpInfo($make_call_request = null, string $content
}
return [
- ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []),
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 409:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 413:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
$response->getStatusCode(),
$response->getHeaders()
];
@@ -17539,7 +20112,7 @@ public function makeACallWithHttpInfo($make_call_request = null, string $content
);
}
- $returnType = '\FreeClimb\Api\Model\CallResult';
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
@@ -17572,7 +20145,39 @@ public function makeACallWithHttpInfo($make_call_request = null, string $content
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
- '\FreeClimb\Api\Model\CallResult',
+ '\FreeClimb\Api\Model\BlobResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 409:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 413:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
@@ -17583,21 +20188,23 @@ public function makeACallWithHttpInfo($make_call_request = null, string $content
}
/**
- * Operation makeACallAsync
+ * Operation modifyBlobAsync
*
- * Make a Call
+ * Modify Blob
*
- * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\ModifyBlobRequest $modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function makeACallAsync($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
+ public function modifyBlobAsync($blob_id, $modify_blob_request, string $contentType = self::contentTypes['modifyBlob'][0])
{
- return $this->makeACallAsyncWithHttpInfo($make_call_request, $contentType)
+ return $this->modifyBlobAsyncWithHttpInfo($blob_id, $modify_blob_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -17606,22 +20213,24 @@ function ($response) {
}
/**
- * Operation makeACallAsyncWithHttpInfo
+ * Operation modifyBlobAsyncWithHttpInfo
*
- * Make a Call
+ * Modify Blob
*
- * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\ModifyBlobRequest $modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function makeACallAsyncWithHttpInfo($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
+ public function modifyBlobAsyncWithHttpInfo($blob_id, $modify_blob_request, string $contentType = self::contentTypes['modifyBlob'][0])
{
- $returnType = '\FreeClimb\Api\Model\CallResult';
- $request = $this->makeACallRequest($make_call_request, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ $request = $this->modifyBlobRequest($blob_id, $modify_blob_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -17660,24 +20269,42 @@ function ($exception) {
}
/**
- * Create request for operation 'makeACall'
+ * Create request for operation 'modifyBlob'
*
- * @param \FreeClimb\Api\Model\MakeCallRequest $make_call_request Call details for making a call (optional)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeACall'] to see the possible values for this operation
+ * @param \FreeClimb\Api\Model\ModifyBlobRequest $modify_blob_request Request body to specify keys to modify. Or new keys to add onto the already existing blob (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function makeACallRequest($make_call_request = null, string $contentType = self::contentTypes['makeACall'][0])
+ public function modifyBlobRequest($blob_id, $modify_blob_request, string $contentType = self::contentTypes['modifyBlob'][0])
{
$account_id = $this->config->getUsername();
+ // verify the required parameter 'blob_id' is set
+ if ($blob_id === null || (is_array($blob_id) && count($blob_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $blob_id when calling modifyBlob'
+ );
+ }
+ if (!preg_match("/BL[0-9a-fA-F]{40}/", $blob_id)) {
+ throw new \InvalidArgumentException("invalid value for \"blob_id\" when calling DefaultApi.modifyBlob, must conform to the pattern /BL[0-9a-fA-F]{40}/.");
+ }
+
+ // verify the required parameter 'modify_blob_request' is set
+ if ($modify_blob_request === null || (is_array($modify_blob_request) && count($modify_blob_request) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $modify_blob_request when calling modifyBlob'
+ );
+ }
- $resourcePath = '/Accounts/{accountId}/Calls';
+ $resourcePath = '/Accounts/{accountId}/Blobs/{blobId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -17694,6 +20321,14 @@ public function makeACallRequest($make_call_request = null, string $contentType
$resourcePath
);
}
+ // path params
+ if ($blob_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'blobId' . '}',
+ ObjectSerializer::toPathValue($blob_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
@@ -17703,12 +20338,12 @@ public function makeACallRequest($make_call_request = null, string $contentType
);
// for model (json/xml)
- if (isset($make_call_request)) {
+ if (isset($modify_blob_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
- $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($make_call_request));
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modify_blob_request));
} else {
- $httpBody = $make_call_request;
+ $httpBody = $modify_blob_request;
}
} elseif (count($formParams) > 0) {
if ($multipart) {
@@ -17753,7 +20388,7 @@ public function makeACallRequest($make_call_request = null, string $contentType
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'POST',
+ 'PATCH',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -17761,41 +20396,44 @@ public function makeACallRequest($make_call_request = null, string $contentType
}
/**
- * Operation makeAWebrtcJwt
+ * Operation removeAParticipant
*
- * Make a JWT for WebRTC calling
+ * Remove a Participant
*
- * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return string
+ * @return void
*/
- public function makeAWebrtcJwt($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
+ public function removeAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
{
- list($response) = $this->makeAWebrtcJwtWithHttpInfo($create_web_rtc_token, $contentType);
- return $response;
+ $this->removeAParticipantWithHttpInfo($conference_id, $call_id, $contentType);
}
/**
- * Operation makeAWebrtcJwtWithHttpInfo
+ * Operation removeAParticipantWithHttpInfo
*
- * Make a JWT for WebRTC calling
+ * Remove a Participant
*
- * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of string, HTTP status code, HTTP response headers (array of strings)
+ * @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
- public function makeAWebrtcJwtWithHttpInfo($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
+ public function removeAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
{
- $request = $this->makeAWebrtcJwtRequest($create_web_rtc_token, $contentType);
+ $request = $this->removeAParticipantRequest($conference_id, $call_id, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -17820,108 +20458,33 @@ public function makeAWebrtcJwtWithHttpInfo($create_web_rtc_token, string $conten
$statusCode = $response->getStatusCode();
- switch ($statusCode) {
- case 200:
- if ('string' === '\SplFileObject') {
- $content = $response->getBody(); //stream goes to serializer
- } else {
- $content = (string) $response->getBody();
- if ('string' !== 'string') {
- try {
- $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
- } catch (\JsonException $exception) {
- throw new ApiException(
- sprintf(
- 'Error JSON decoding server response (%s)',
- $request->getUri()
- ),
- $statusCode,
- $response->getHeaders(),
- $content
- );
- }
- }
- }
-
- return [
- ObjectSerializer::deserialize($content, 'string', []),
- $response->getStatusCode(),
- $response->getHeaders()
- ];
- }
-
- if ($statusCode < 200 || $statusCode > 299) {
- throw new ApiException(
- sprintf(
- '[%d] Error connecting to the API (%s)',
- $statusCode,
- (string) $request->getUri()
- ),
- $statusCode,
- $response->getHeaders(),
- (string) $response->getBody()
- );
- }
-
- $returnType = 'string';
- if ($returnType === '\SplFileObject') {
- $content = $response->getBody(); //stream goes to serializer
- } else {
- $content = (string) $response->getBody();
- if ($returnType !== 'string') {
- try {
- $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
- } catch (\JsonException $exception) {
- throw new ApiException(
- sprintf(
- 'Error JSON decoding server response (%s)',
- $request->getUri()
- ),
- $statusCode,
- $response->getHeaders(),
- $content
- );
- }
- }
- }
-
- return [
- ObjectSerializer::deserialize($content, $returnType, []),
- $response->getStatusCode(),
- $response->getHeaders()
- ];
+ return [null, $statusCode, $response->getHeaders()];
} catch (ApiException $e) {
switch ($e->getCode()) {
- case 200:
- $data = ObjectSerializer::deserialize(
- $e->getResponseBody(),
- 'string',
- $e->getResponseHeaders()
- );
- $e->setResponseObject($data);
- break;
}
throw $e;
}
}
/**
- * Operation makeAWebrtcJwtAsync
+ * Operation removeAParticipantAsync
*
- * Make a JWT for WebRTC calling
+ * Remove a Participant
*
- * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function makeAWebrtcJwtAsync($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
+ public function removeAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
{
- return $this->makeAWebrtcJwtAsyncWithHttpInfo($create_web_rtc_token, $contentType)
+ return $this->removeAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType)
->then(
function ($response) {
return $response[0];
@@ -17930,41 +20493,30 @@ function ($response) {
}
/**
- * Operation makeAWebrtcJwtAsyncWithHttpInfo
+ * Operation removeAParticipantAsyncWithHttpInfo
*
- * Make a JWT for WebRTC calling
+ * Remove a Participant
*
- * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function makeAWebrtcJwtAsyncWithHttpInfo($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
+ public function removeAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
{
- $returnType = 'string';
- $request = $this->makeAWebrtcJwtRequest($create_web_rtc_token, $contentType);
+ $returnType = '';
+ $request = $this->removeAParticipantRequest($conference_id, $call_id, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
- if ($returnType === '\SplFileObject') {
- $content = $response->getBody(); //stream goes to serializer
- } else {
- $content = (string) $response->getBody();
- if ($returnType !== 'string') {
- $content = json_decode($content);
- }
- }
-
- return [
- ObjectSerializer::deserialize($content, $returnType, []),
- $response->getStatusCode(),
- $response->getHeaders()
- ];
+ return [null, $response->getStatusCode(), $response->getHeaders()];
},
function ($exception) {
$response = $exception->getResponse();
@@ -17984,30 +20536,39 @@ function ($exception) {
}
/**
- * Create request for operation 'makeAWebrtcJwt'
+ * Create request for operation 'removeAParticipant'
*
- * @param \FreeClimb\Api\Model\CreateWebRTCToken $create_web_rtc_token Information needed to craft a JWT compatible with the platforms WebRTC APIs (required)
+ * @param string $conference_id ID of the conference this participant is in. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['makeAWebrtcJwt'] to see the possible values for this operation
+ * @param string $call_id ID of the Call associated with this participant. (required)
+
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function makeAWebrtcJwtRequest($create_web_rtc_token, string $contentType = self::contentTypes['makeAWebrtcJwt'][0])
+ public function removeAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'create_web_rtc_token' is set
- if ($create_web_rtc_token === null || (is_array($create_web_rtc_token) && count($create_web_rtc_token) === 0)) {
+ // verify the required parameter 'conference_id' is set
+ if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $create_web_rtc_token when calling makeAWebrtcJwt'
+ 'Missing the required parameter $conference_id when calling removeAParticipant'
+ );
+ }
+
+ // verify the required parameter 'call_id' is set
+ if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ throw new \InvalidArgumentException(
+ 'Missing the required parameter $call_id when calling removeAParticipant'
);
}
- $resourcePath = '/Accounts/{accountId}/Calls/WebRTC/Token';
+ $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -18024,23 +20585,32 @@ public function makeAWebrtcJwtRequest($create_web_rtc_token, string $contentType
$resourcePath
);
}
+ // path params
+ if ($conference_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'conferenceId' . '}',
+ ObjectSerializer::toPathValue($conference_id),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($call_id !== null) {
+ $resourcePath = str_replace(
+ '{' . 'callId' . '}',
+ ObjectSerializer::toPathValue($call_id),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
- ['text/plain', ],
+ [],
$contentType,
$multipart
);
// for model (json/xml)
- if (isset($create_web_rtc_token)) {
- if (stripos($headers['Content-Type'], 'application/json') !== false) {
- # if Content-Type contains "application/json", json_encode the body
- $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_web_rtc_token));
- } else {
- $httpBody = $create_web_rtc_token;
- }
- } elseif (count($formParams) > 0) {
+ if (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -18083,7 +20653,7 @@ public function makeAWebrtcJwtRequest($create_web_rtc_token, string $contentType
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'POST',
+ 'DELETE',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -18091,44 +20661,45 @@ public function makeAWebrtcJwtRequest($create_web_rtc_token, string $contentType
}
/**
- * Operation removeAParticipant
+ * Operation replaceBlob
*
- * Remove a Participant
+ * Replace Blob
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param \FreeClimb\Api\Model\ReplaceBlobRequest $replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replaceBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return void
+ * @return \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError
*/
- public function removeAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
+ public function replaceBlob($blob_id, $replace_blob_request, string $contentType = self::contentTypes['replaceBlob'][0])
{
- $this->removeAParticipantWithHttpInfo($conference_id, $call_id, $contentType);
+ list($response) = $this->replaceBlobWithHttpInfo($blob_id, $replace_blob_request, $contentType);
+ return $response;
}
/**
- * Operation removeAParticipantWithHttpInfo
+ * Operation replaceBlobWithHttpInfo
*
- * Remove a Participant
+ * Replace Blob
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param \FreeClimb\Api\Model\ReplaceBlobRequest $replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replaceBlob'] to see the possible values for this operation
*
* @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
- * @return array of null, HTTP status code, HTTP response headers (array of strings)
+ * @return array of \FreeClimb\Api\Model\BlobResult|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError|\FreeClimb\Api\Model\PlatformError, HTTP status code, HTTP response headers (array of strings)
*/
- public function removeAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
+ public function replaceBlobWithHttpInfo($blob_id, $replace_blob_request, string $contentType = self::contentTypes['replaceBlob'][0])
{
- $request = $this->removeAParticipantRequest($conference_id, $call_id, $contentType);
+ $request = $this->replaceBlobRequest($blob_id, $replace_blob_request, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -18153,33 +20724,250 @@ public function removeAParticipantWithHttpInfo($conference_id, $call_id, string
$statusCode = $response->getStatusCode();
- return [null, $statusCode, $response->getHeaders()];
+ switch ($statusCode) {
+ case 200:
+ if ('\FreeClimb\Api\Model\BlobResult' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\BlobResult' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\BlobResult', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 404:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 409:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 413:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ case 500:
+ if ('\FreeClimb\Api\Model\PlatformError' === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ('\FreeClimb\Api\Model\PlatformError' !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\PlatformError', []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
+ }
+
+ if ($statusCode < 200 || $statusCode > 299) {
+ throw new ApiException(
+ sprintf(
+ '[%d] Error connecting to the API (%s)',
+ $statusCode,
+ (string) $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ (string) $response->getBody()
+ );
+ }
+
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ try {
+ $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
+ } catch (\JsonException $exception) {
+ throw new ApiException(
+ sprintf(
+ 'Error JSON decoding server response (%s)',
+ $request->getUri()
+ ),
+ $statusCode,
+ $response->getHeaders(),
+ $content
+ );
+ }
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
} catch (ApiException $e) {
switch ($e->getCode()) {
+ case 200:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\BlobResult',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 404:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 409:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 413:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
+ case 500:
+ $data = ObjectSerializer::deserialize(
+ $e->getResponseBody(),
+ '\FreeClimb\Api\Model\PlatformError',
+ $e->getResponseHeaders()
+ );
+ $e->setResponseObject($data);
+ break;
}
throw $e;
}
}
/**
- * Operation removeAParticipantAsync
+ * Operation replaceBlobAsync
*
- * Remove a Participant
+ * Replace Blob
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param \FreeClimb\Api\Model\ReplaceBlobRequest $replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replaceBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function removeAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
+ public function replaceBlobAsync($blob_id, $replace_blob_request, string $contentType = self::contentTypes['replaceBlob'][0])
{
- return $this->removeAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType)
+ return $this->replaceBlobAsyncWithHttpInfo($blob_id, $replace_blob_request, $contentType)
->then(
function ($response) {
return $response[0];
@@ -18188,30 +20976,43 @@ function ($response) {
}
/**
- * Operation removeAParticipantAsyncWithHttpInfo
+ * Operation replaceBlobAsyncWithHttpInfo
*
- * Remove a Participant
+ * Replace Blob
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param \FreeClimb\Api\Model\ReplaceBlobRequest $replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replaceBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
- public function removeAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
+ public function replaceBlobAsyncWithHttpInfo($blob_id, $replace_blob_request, string $contentType = self::contentTypes['replaceBlob'][0])
{
- $returnType = '';
- $request = $this->removeAParticipantRequest($conference_id, $call_id, $contentType);
+ $returnType = '\FreeClimb\Api\Model\BlobResult';
+ $request = $this->replaceBlobRequest($blob_id, $replace_blob_request, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
- return [null, $response->getStatusCode(), $response->getHeaders()];
+ if ($returnType === '\SplFileObject') {
+ $content = $response->getBody(); //stream goes to serializer
+ } else {
+ $content = (string) $response->getBody();
+ if ($returnType !== 'string') {
+ $content = json_decode($content);
+ }
+ }
+
+ return [
+ ObjectSerializer::deserialize($content, $returnType, []),
+ $response->getStatusCode(),
+ $response->getHeaders()
+ ];
},
function ($exception) {
$response = $exception->getResponse();
@@ -18231,39 +21032,42 @@ function ($exception) {
}
/**
- * Create request for operation 'removeAParticipant'
+ * Create request for operation 'replaceBlob'
*
- * @param string $conference_id ID of the conference this participant is in. (required)
+ * @param string $blob_id String that uniquely identifies this Blob resource. (required)
- * @param string $call_id ID of the Call associated with this participant. (required)
+ * @param \FreeClimb\Api\Model\ReplaceBlobRequest $replace_blob_request JSON object containing blob key the contents of which will be used to override the enitre blob contents. (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['removeAParticipant'] to see the possible values for this operation
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['replaceBlob'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function removeAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['removeAParticipant'][0])
+ public function replaceBlobRequest($blob_id, $replace_blob_request, string $contentType = self::contentTypes['replaceBlob'][0])
{
$account_id = $this->config->getUsername();
- // verify the required parameter 'conference_id' is set
- if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) {
+ // verify the required parameter 'blob_id' is set
+ if ($blob_id === null || (is_array($blob_id) && count($blob_id) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $conference_id when calling removeAParticipant'
+ 'Missing the required parameter $blob_id when calling replaceBlob'
);
}
+ if (!preg_match("/BL[0-9a-fA-F]{40}/", $blob_id)) {
+ throw new \InvalidArgumentException("invalid value for \"blob_id\" when calling DefaultApi.replaceBlob, must conform to the pattern /BL[0-9a-fA-F]{40}/.");
+ }
- // verify the required parameter 'call_id' is set
- if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) {
+ // verify the required parameter 'replace_blob_request' is set
+ if ($replace_blob_request === null || (is_array($replace_blob_request) && count($replace_blob_request) === 0)) {
throw new \InvalidArgumentException(
- 'Missing the required parameter $call_id when calling removeAParticipant'
+ 'Missing the required parameter $replace_blob_request when calling replaceBlob'
);
}
- $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}';
+ $resourcePath = '/Accounts/{accountId}/Blobs/{blobId}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -18281,31 +21085,30 @@ public function removeAParticipantRequest($conference_id, $call_id, string $cont
);
}
// path params
- if ($conference_id !== null) {
- $resourcePath = str_replace(
- '{' . 'conferenceId' . '}',
- ObjectSerializer::toPathValue($conference_id),
- $resourcePath
- );
- }
- // path params
- if ($call_id !== null) {
+ if ($blob_id !== null) {
$resourcePath = str_replace(
- '{' . 'callId' . '}',
- ObjectSerializer::toPathValue($call_id),
+ '{' . 'blobId' . '}',
+ ObjectSerializer::toPathValue($blob_id),
$resourcePath
);
}
$headers = $this->headerSelector->selectHeaders(
- [],
+ ['application/json', ],
$contentType,
$multipart
);
// for model (json/xml)
- if (count($formParams) > 0) {
+ if (isset($replace_blob_request)) {
+ if (stripos($headers['Content-Type'], 'application/json') !== false) {
+ # if Content-Type contains "application/json", json_encode the body
+ $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($replace_blob_request));
+ } else {
+ $httpBody = $replace_blob_request;
+ }
+ } elseif (count($formParams) > 0) {
if ($multipart) {
$multipartContents = [];
foreach ($formParams as $formParamName => $formParamValue) {
@@ -18348,7 +21151,7 @@ public function removeAParticipantRequest($conference_id, $call_id, string $cont
$operationHost = $this->config->getHost();
$query = ObjectSerializer::buildQuery($queryParams);
return new Request(
- 'DELETE',
+ 'PUT',
$operationHost . $resourcePath . ($query ? "?{$query}" : ''),
$headers,
$httpBody
@@ -18960,7 +21763,7 @@ public function streamARecordingFileRequest($recording_id, string $contentType =
$headers = $this->headerSelector->selectHeaders(
- ['audio/x-wav', ],
+ ['audio/wav', ],
$contentType,
$multipart
);
diff --git a/lib/Configuration.php b/lib/Configuration.php
index 04dcc31..af3b45f 100644
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -102,7 +102,7 @@ class Configuration
*
* @var string
*/
- protected $userAgent = 'OpenAPI-Generator/5.2.0/PHP';
+ protected $userAgent = 'OpenAPI-Generator/5.3.0/PHP';
/**
* Debug switch (default set to false)
@@ -435,7 +435,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
- $report .= ' SDK Package Version: 5.2.0' . PHP_EOL;
+ $report .= ' SDK Package Version: 5.3.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report;
diff --git a/lib/Model/AvailableNumber.php b/lib/Model/AvailableNumber.php
index bab16f7..6b0d6ff 100644
--- a/lib/Model/AvailableNumber.php
+++ b/lib/Model/AvailableNumber.php
@@ -62,8 +62,6 @@ class AvailableNumber implements ModelInterface, ArrayAccess, \JsonSerializable
'capabilities' => '\FreeClimb\Api\Model\Capabilities',
'campaign_id' => 'string',
'phone_number' => 'string',
- 'voice_enabled' => 'bool',
- 'sms_enabled' => 'bool',
'region' => 'string',
'country' => 'string'
];
@@ -79,8 +77,6 @@ class AvailableNumber implements ModelInterface, ArrayAccess, \JsonSerializable
'capabilities' => null,
'campaign_id' => null,
'phone_number' => null,
- 'voice_enabled' => null,
- 'sms_enabled' => null,
'region' => null,
'country' => null
];
@@ -94,8 +90,6 @@ class AvailableNumber implements ModelInterface, ArrayAccess, \JsonSerializable
'capabilities' => false,
'campaign_id' => true,
'phone_number' => true,
- 'voice_enabled' => true,
- 'sms_enabled' => true,
'region' => true,
'country' => true
];
@@ -189,8 +183,6 @@ public function isNullableSetToNull(string $property): bool
'capabilities' => 'capabilities',
'campaign_id' => 'campaignId',
'phone_number' => 'phoneNumber',
- 'voice_enabled' => 'voiceEnabled',
- 'sms_enabled' => 'smsEnabled',
'region' => 'region',
'country' => 'country'
];
@@ -204,8 +196,6 @@ public function isNullableSetToNull(string $property): bool
'capabilities' => 'setCapabilities',
'campaign_id' => 'setCampaignId',
'phone_number' => 'setPhoneNumber',
- 'voice_enabled' => 'setVoiceEnabled',
- 'sms_enabled' => 'setSmsEnabled',
'region' => 'setRegion',
'country' => 'setCountry'
];
@@ -219,8 +209,6 @@ public function isNullableSetToNull(string $property): bool
'capabilities' => 'getCapabilities',
'campaign_id' => 'getCampaignId',
'phone_number' => 'getPhoneNumber',
- 'voice_enabled' => 'getVoiceEnabled',
- 'sms_enabled' => 'getSmsEnabled',
'region' => 'getRegion',
'country' => 'getCountry'
];
@@ -285,8 +273,6 @@ public function __construct(?array $data = null)
$this->setIfExists('capabilities', $data ?? [], null);
$this->setIfExists('campaign_id', $data ?? [], null);
$this->setIfExists('phone_number', $data ?? [], null);
- $this->setIfExists('voice_enabled', $data ?? [], null);
- $this->setIfExists('sms_enabled', $data ?? [], null);
$this->setIfExists('region', $data ?? [], null);
$this->setIfExists('country', $data ?? [], null);
}
@@ -428,78 +414,6 @@ public function setPhoneNumber($phone_number)
return $this;
}
- /**
- * Gets voice_enabled
- *
- * @return bool|null
- * @deprecated
- */
- public function getVoiceEnabled()
- {
- return $this->container['voice_enabled'];
- }
-
- /**
- * Sets voice_enabled
- *
- * @param bool|null $voice_enabled Typically set to true for all numbers.
- *
- * @return self
- * @deprecated
- */
- public function setVoiceEnabled($voice_enabled)
- {
- if (is_null($voice_enabled)) {
- array_push($this->openAPINullablesSetToNull, 'voice_enabled');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('voice_enabled', $nullablesSetToNull, true);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
- }
- $this->container['voice_enabled'] = $voice_enabled;
-
- return $this;
- }
-
- /**
- * Gets sms_enabled
- *
- * @return bool|null
- * @deprecated
- */
- public function getSmsEnabled()
- {
- return $this->container['sms_enabled'];
- }
-
- /**
- * Sets sms_enabled
- *
- * @param bool|null $sms_enabled Indicates whether the phone number can send and receive SMS messages.
- *
- * @return self
- * @deprecated
- */
- public function setSmsEnabled($sms_enabled)
- {
- if (is_null($sms_enabled)) {
- array_push($this->openAPINullablesSetToNull, 'sms_enabled');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('sms_enabled', $nullablesSetToNull, true);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
- }
- $this->container['sms_enabled'] = $sms_enabled;
-
- return $this;
- }
-
/**
* Gets region
*
diff --git a/lib/Model/BlobListResponse.php b/lib/Model/BlobListResponse.php
new file mode 100644
index 0000000..108a778
--- /dev/null
+++ b/lib/Model/BlobListResponse.php
@@ -0,0 +1,699 @@
+
+ */
+class BlobListResponse implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'BlobListResponse';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'total' => 'int',
+ 'start' => 'int',
+ 'end' => 'int',
+ 'page' => 'int',
+ 'num_pages' => 'int',
+ 'page_size' => 'int',
+ 'next_page_uri' => 'string',
+ 'blobs' => '\FreeClimb\Api\Model\BlobResult[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'total' => null,
+ 'start' => null,
+ 'end' => null,
+ 'page' => null,
+ 'num_pages' => null,
+ 'page_size' => null,
+ 'next_page_uri' => null,
+ 'blobs' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'total' => true,
+ 'start' => true,
+ 'end' => true,
+ 'page' => true,
+ 'num_pages' => true,
+ 'page_size' => true,
+ 'next_page_uri' => true,
+ 'blobs' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'total' => 'total',
+ 'start' => 'start',
+ 'end' => 'end',
+ 'page' => 'page',
+ 'num_pages' => 'numPages',
+ 'page_size' => 'pageSize',
+ 'next_page_uri' => 'nextPageUri',
+ 'blobs' => 'blobs'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'total' => 'setTotal',
+ 'start' => 'setStart',
+ 'end' => 'setEnd',
+ 'page' => 'setPage',
+ 'num_pages' => 'setNumPages',
+ 'page_size' => 'setPageSize',
+ 'next_page_uri' => 'setNextPageUri',
+ 'blobs' => 'setBlobs'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'total' => 'getTotal',
+ 'start' => 'getStart',
+ 'end' => 'getEnd',
+ 'page' => 'getPage',
+ 'num_pages' => 'getNumPages',
+ 'page_size' => 'getPageSize',
+ 'next_page_uri' => 'getNextPageUri',
+ 'blobs' => 'getBlobs'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('total', $data ?? [], null);
+ $this->setIfExists('start', $data ?? [], null);
+ $this->setIfExists('end', $data ?? [], null);
+ $this->setIfExists('page', $data ?? [], null);
+ $this->setIfExists('num_pages', $data ?? [], null);
+ $this->setIfExists('page_size', $data ?? [], null);
+ $this->setIfExists('next_page_uri', $data ?? [], null);
+ $this->setIfExists('blobs', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets total
+ *
+ * @return int|null
+ */
+ public function getTotal()
+ {
+ return $this->container['total'];
+ }
+
+ /**
+ * Sets total
+ *
+ * @param int|null $total Total amount of requested resource.
+ *
+ * @return self
+ */
+ public function setTotal($total)
+ {
+ if (is_null($total)) {
+ array_push($this->openAPINullablesSetToNull, 'total');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('total', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['total'] = $total;
+
+ return $this;
+ }
+
+ /**
+ * Gets start
+ *
+ * @return int|null
+ */
+ public function getStart()
+ {
+ return $this->container['start'];
+ }
+
+ /**
+ * Sets start
+ *
+ * @param int|null $start Resource index at start of current page
+ *
+ * @return self
+ */
+ public function setStart($start)
+ {
+ if (is_null($start)) {
+ array_push($this->openAPINullablesSetToNull, 'start');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('start', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['start'] = $start;
+
+ return $this;
+ }
+
+ /**
+ * Gets end
+ *
+ * @return int|null
+ */
+ public function getEnd()
+ {
+ return $this->container['end'];
+ }
+
+ /**
+ * Sets end
+ *
+ * @param int|null $end Resource index at end of current page
+ *
+ * @return self
+ */
+ public function setEnd($end)
+ {
+ if (is_null($end)) {
+ array_push($this->openAPINullablesSetToNull, 'end');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('end', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['end'] = $end;
+
+ return $this;
+ }
+
+ /**
+ * Gets page
+ *
+ * @return int|null
+ */
+ public function getPage()
+ {
+ return $this->container['page'];
+ }
+
+ /**
+ * Sets page
+ *
+ * @param int|null $page Current page
+ *
+ * @return self
+ */
+ public function setPage($page)
+ {
+ if (is_null($page)) {
+ array_push($this->openAPINullablesSetToNull, 'page');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('page', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['page'] = $page;
+
+ return $this;
+ }
+
+ /**
+ * Gets num_pages
+ *
+ * @return int|null
+ */
+ public function getNumPages()
+ {
+ return $this->container['num_pages'];
+ }
+
+ /**
+ * Sets num_pages
+ *
+ * @param int|null $num_pages Total number of pages
+ *
+ * @return self
+ */
+ public function setNumPages($num_pages)
+ {
+ if (is_null($num_pages)) {
+ array_push($this->openAPINullablesSetToNull, 'num_pages');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('num_pages', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['num_pages'] = $num_pages;
+
+ return $this;
+ }
+
+ /**
+ * Gets page_size
+ *
+ * @return int|null
+ */
+ public function getPageSize()
+ {
+ return $this->container['page_size'];
+ }
+
+ /**
+ * Sets page_size
+ *
+ * @param int|null $page_size Number of items per page
+ *
+ * @return self
+ */
+ public function setPageSize($page_size)
+ {
+ if (is_null($page_size)) {
+ array_push($this->openAPINullablesSetToNull, 'page_size');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('page_size', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['page_size'] = $page_size;
+
+ return $this;
+ }
+
+ /**
+ * Gets next_page_uri
+ *
+ * @return string|null
+ */
+ public function getNextPageUri()
+ {
+ return $this->container['next_page_uri'];
+ }
+
+ /**
+ * Sets next_page_uri
+ *
+ * @param string|null $next_page_uri Uri to retrieve the next page of items
+ *
+ * @return self
+ */
+ public function setNextPageUri($next_page_uri)
+ {
+ if (is_null($next_page_uri)) {
+ array_push($this->openAPINullablesSetToNull, 'next_page_uri');
+ } else {
+ $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
+ $index = array_search('next_page_uri', $nullablesSetToNull, true);
+ if ($index !== false) {
+ unset($nullablesSetToNull[$index]);
+ $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
+ }
+ }
+ $this->container['next_page_uri'] = $next_page_uri;
+
+ return $this;
+ }
+
+ /**
+ * Gets blobs
+ *
+ * @return \FreeClimb\Api\Model\BlobResult[]|null
+ */
+ public function getBlobs()
+ {
+ return $this->container['blobs'];
+ }
+
+ /**
+ * Sets blobs
+ *
+ * @param \FreeClimb\Api\Model\BlobResult[]|null $blobs blobs
+ *
+ * @return self
+ */
+ public function setBlobs($blobs)
+ {
+ if (is_null($blobs)) {
+ throw new \InvalidArgumentException('non-nullable blobs cannot be null');
+ }
+ $this->container['blobs'] = $blobs;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/BlobResult.php b/lib/Model/BlobResult.php
new file mode 100644
index 0000000..7bf9648
--- /dev/null
+++ b/lib/Model/BlobResult.php
@@ -0,0 +1,676 @@
+
+ */
+class BlobResult implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'BlobResult';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'blob_id' => 'string',
+ 'account_id' => 'string',
+ 'alias' => 'string',
+ 'revision' => 'int',
+ 'date_created' => '\DateTime',
+ 'date_updated' => '\DateTime',
+ 'expires_at' => '\DateTime',
+ 'blob' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'blob_id' => null,
+ 'account_id' => null,
+ 'alias' => null,
+ 'revision' => null,
+ 'date_created' => 'date-time',
+ 'date_updated' => 'date-time',
+ 'expires_at' => 'date-time',
+ 'blob' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'blob_id' => false,
+ 'account_id' => false,
+ 'alias' => false,
+ 'revision' => false,
+ 'date_created' => false,
+ 'date_updated' => false,
+ 'expires_at' => false,
+ 'blob' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'blob_id' => 'blobId',
+ 'account_id' => 'accountId',
+ 'alias' => 'alias',
+ 'revision' => 'revision',
+ 'date_created' => 'dateCreated',
+ 'date_updated' => 'dateUpdated',
+ 'expires_at' => 'expiresAt',
+ 'blob' => 'blob'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'blob_id' => 'setBlobId',
+ 'account_id' => 'setAccountId',
+ 'alias' => 'setAlias',
+ 'revision' => 'setRevision',
+ 'date_created' => 'setDateCreated',
+ 'date_updated' => 'setDateUpdated',
+ 'expires_at' => 'setExpiresAt',
+ 'blob' => 'setBlob'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'blob_id' => 'getBlobId',
+ 'account_id' => 'getAccountId',
+ 'alias' => 'getAlias',
+ 'revision' => 'getRevision',
+ 'date_created' => 'getDateCreated',
+ 'date_updated' => 'getDateUpdated',
+ 'expires_at' => 'getExpiresAt',
+ 'blob' => 'getBlob'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('blob_id', $data ?? [], null);
+ $this->setIfExists('account_id', $data ?? [], null);
+ $this->setIfExists('alias', $data ?? [], null);
+ $this->setIfExists('revision', $data ?? [], null);
+ $this->setIfExists('date_created', $data ?? [], null);
+ $this->setIfExists('date_updated', $data ?? [], null);
+ $this->setIfExists('expires_at', $data ?? [], null);
+ $this->setIfExists('blob', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if (!is_null($this->container['blob_id']) && !preg_match("/BL[0-9a-fA-F]{40}/", $this->container['blob_id'])) {
+ $invalidProperties[] = "invalid value for 'blob_id', must be conform to the pattern /BL[0-9a-fA-F]{40}/.";
+ }
+
+ if (!is_null($this->container['account_id']) && !preg_match("/AC[0-9a-fA-F]{40}/", $this->container['account_id'])) {
+ $invalidProperties[] = "invalid value for 'account_id', must be conform to the pattern /AC[0-9a-fA-F]{40}/.";
+ }
+
+ if (!is_null($this->container['alias']) && (mb_strlen($this->container['alias']) > 64)) {
+ $invalidProperties[] = "invalid value for 'alias', the character length must be smaller than or equal to 64.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets blob_id
+ *
+ * @return string|null
+ */
+ public function getBlobId()
+ {
+ return $this->container['blob_id'];
+ }
+
+ /**
+ * Sets blob_id
+ *
+ * @param string|null $blob_id Identifier which can be used to reference this blob in future interations.
+ *
+ * @return self
+ */
+ public function setBlobId($blob_id)
+ {
+ if (is_null($blob_id)) {
+ throw new \InvalidArgumentException('non-nullable blob_id cannot be null');
+ }
+
+ if ((!preg_match("/BL[0-9a-fA-F]{40}/", ObjectSerializer::toString($blob_id)))) {
+ throw new \InvalidArgumentException("invalid value for \$blob_id when calling BlobResult., must conform to the pattern /BL[0-9a-fA-F]{40}/.");
+ }
+
+ $this->container['blob_id'] = $blob_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets account_id
+ *
+ * @return string|null
+ */
+ public function getAccountId()
+ {
+ return $this->container['account_id'];
+ }
+
+ /**
+ * Sets account_id
+ *
+ * @param string|null $account_id account_id
+ *
+ * @return self
+ */
+ public function setAccountId($account_id)
+ {
+ if (is_null($account_id)) {
+ throw new \InvalidArgumentException('non-nullable account_id cannot be null');
+ }
+
+ if ((!preg_match("/AC[0-9a-fA-F]{40}/", ObjectSerializer::toString($account_id)))) {
+ throw new \InvalidArgumentException("invalid value for \$account_id when calling BlobResult., must conform to the pattern /AC[0-9a-fA-F]{40}/.");
+ }
+
+ $this->container['account_id'] = $account_id;
+
+ return $this;
+ }
+
+ /**
+ * Gets alias
+ *
+ * @return string|null
+ */
+ public function getAlias()
+ {
+ return $this->container['alias'];
+ }
+
+ /**
+ * Sets alias
+ *
+ * @param string|null $alias Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided in the creation request.
+ *
+ * @return self
+ */
+ public function setAlias($alias)
+ {
+ if (is_null($alias)) {
+ throw new \InvalidArgumentException('non-nullable alias cannot be null');
+ }
+ if ((mb_strlen($alias) > 64)) {
+ throw new \InvalidArgumentException('invalid length for $alias when calling BlobResult., must be smaller than or equal to 64.');
+ }
+
+ $this->container['alias'] = $alias;
+
+ return $this;
+ }
+
+ /**
+ * Gets revision
+ *
+ * @return int|null
+ */
+ public function getRevision()
+ {
+ return $this->container['revision'];
+ }
+
+ /**
+ * Sets revision
+ *
+ * @param int|null $revision revision
+ *
+ * @return self
+ */
+ public function setRevision($revision)
+ {
+ if (is_null($revision)) {
+ throw new \InvalidArgumentException('non-nullable revision cannot be null');
+ }
+ $this->container['revision'] = $revision;
+
+ return $this;
+ }
+
+ /**
+ * Gets date_created
+ *
+ * @return \DateTime|null
+ */
+ public function getDateCreated()
+ {
+ return $this->container['date_created'];
+ }
+
+ /**
+ * Sets date_created
+ *
+ * @param \DateTime|null $date_created An RFC3339 timestamp with millisecond resolution. It represents the time this blob was created.
+ *
+ * @return self
+ */
+ public function setDateCreated($date_created)
+ {
+ if (is_null($date_created)) {
+ throw new \InvalidArgumentException('non-nullable date_created cannot be null');
+ }
+ $this->container['date_created'] = $date_created;
+
+ return $this;
+ }
+
+ /**
+ * Gets date_updated
+ *
+ * @return \DateTime|null
+ */
+ public function getDateUpdated()
+ {
+ return $this->container['date_updated'];
+ }
+
+ /**
+ * Sets date_updated
+ *
+ * @param \DateTime|null $date_updated An RFC3339 timestamp with millisecond resolution. It represents the time this blob was last modified, which at creation will always equal dateCreated.
+ *
+ * @return self
+ */
+ public function setDateUpdated($date_updated)
+ {
+ if (is_null($date_updated)) {
+ throw new \InvalidArgumentException('non-nullable date_updated cannot be null');
+ }
+ $this->container['date_updated'] = $date_updated;
+
+ return $this;
+ }
+
+ /**
+ * Gets expires_at
+ *
+ * @return \DateTime|null
+ */
+ public function getExpiresAt()
+ {
+ return $this->container['expires_at'];
+ }
+
+ /**
+ * Sets expires_at
+ *
+ * @param \DateTime|null $expires_at An RFC3339 timestamp with millisecond resolution. It represents the time at which this blob will expire and self delete.
+ *
+ * @return self
+ */
+ public function setExpiresAt($expires_at)
+ {
+ if (is_null($expires_at)) {
+ throw new \InvalidArgumentException('non-nullable expires_at cannot be null');
+ }
+ $this->container['expires_at'] = $expires_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets blob
+ *
+ * @return object|null
+ */
+ public function getBlob()
+ {
+ return $this->container['blob'];
+ }
+
+ /**
+ * Sets blob
+ *
+ * @param object|null $blob Blob content
+ *
+ * @return self
+ */
+ public function setBlob($blob)
+ {
+ if (is_null($blob)) {
+ throw new \InvalidArgumentException('non-nullable blob cannot be null');
+ }
+ $this->container['blob'] = $blob;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/CreateBlobRequest.php b/lib/Model/CreateBlobRequest.php
new file mode 100644
index 0000000..e4cf0c3
--- /dev/null
+++ b/lib/Model/CreateBlobRequest.php
@@ -0,0 +1,491 @@
+
+ */
+class CreateBlobRequest implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'CreateBlobRequest';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'alias' => 'string',
+ 'expires_at' => 'string',
+ 'blob' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'alias' => null,
+ 'expires_at' => null,
+ 'blob' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'alias' => false,
+ 'expires_at' => false,
+ 'blob' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'alias' => 'alias',
+ 'expires_at' => 'expiresAt',
+ 'blob' => 'blob'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'alias' => 'setAlias',
+ 'expires_at' => 'setExpiresAt',
+ 'blob' => 'setBlob'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'alias' => 'getAlias',
+ 'expires_at' => 'getExpiresAt',
+ 'blob' => 'getBlob'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('alias', $data ?? [], null);
+ $this->setIfExists('expires_at', $data ?? [], null);
+ $this->setIfExists('blob', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if (!is_null($this->container['alias']) && (mb_strlen($this->container['alias']) > 64)) {
+ $invalidProperties[] = "invalid value for 'alias', the character length must be smaller than or equal to 64.";
+ }
+
+ if ($this->container['blob'] === null) {
+ $invalidProperties[] = "'blob' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets alias
+ *
+ * @return string|null
+ */
+ public function getAlias()
+ {
+ return $this->container['alias'];
+ }
+
+ /**
+ * Sets alias
+ *
+ * @param string|null $alias Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided.
+ *
+ * @return self
+ */
+ public function setAlias($alias)
+ {
+ if (is_null($alias)) {
+ throw new \InvalidArgumentException('non-nullable alias cannot be null');
+ }
+ if ((mb_strlen($alias) > 64)) {
+ throw new \InvalidArgumentException('invalid length for $alias when calling CreateBlobRequest., must be smaller than or equal to 64.');
+ }
+
+ $this->container['alias'] = $alias;
+
+ return $this;
+ }
+
+ /**
+ * Gets expires_at
+ *
+ * @return string|null
+ */
+ public function getExpiresAt()
+ {
+ return $this->container['expires_at'];
+ }
+
+ /**
+ * Sets expires_at
+ *
+ * @param string|null $expires_at An RFC3339 timestamp with millisecond resolution. This timestamp defines the time at which this blob will delete itself. It must not be more than 48 hours in the future and will default to 9 hours in the future if not provided.
+ *
+ * @return self
+ */
+ public function setExpiresAt($expires_at)
+ {
+ if (is_null($expires_at)) {
+ throw new \InvalidArgumentException('non-nullable expires_at cannot be null');
+ }
+ $this->container['expires_at'] = $expires_at;
+
+ return $this;
+ }
+
+ /**
+ * Gets blob
+ *
+ * @return object
+ */
+ public function getBlob()
+ {
+ return $this->container['blob'];
+ }
+
+ /**
+ * Sets blob
+ *
+ * @param object $blob blob
+ *
+ * @return self
+ */
+ public function setBlob($blob)
+ {
+ if (is_null($blob)) {
+ throw new \InvalidArgumentException('non-nullable blob cannot be null');
+ }
+ $this->container['blob'] = $blob;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/IncomingNumberResult.php b/lib/Model/IncomingNumberResult.php
index cd4cb2d..281cd7d 100644
--- a/lib/Model/IncomingNumberResult.php
+++ b/lib/Model/IncomingNumberResult.php
@@ -72,8 +72,6 @@ class IncomingNumberResult implements ModelInterface, ArrayAccess, \JsonSerializ
'alias' => 'string',
'region' => 'string',
'country' => 'string',
- 'voice_enabled' => 'bool',
- 'sms_enabled' => 'bool',
'offnet' => 'bool',
'tfn' => '\FreeClimb\Api\Model\TFN'
];
@@ -99,8 +97,6 @@ class IncomingNumberResult implements ModelInterface, ArrayAccess, \JsonSerializ
'alias' => null,
'region' => null,
'country' => null,
- 'voice_enabled' => null,
- 'sms_enabled' => null,
'offnet' => null,
'tfn' => null
];
@@ -124,8 +120,6 @@ class IncomingNumberResult implements ModelInterface, ArrayAccess, \JsonSerializ
'alias' => true,
'region' => true,
'country' => true,
- 'voice_enabled' => true,
- 'sms_enabled' => true,
'offnet' => true,
'tfn' => false
];
@@ -229,8 +223,6 @@ public function isNullableSetToNull(string $property): bool
'alias' => 'alias',
'region' => 'region',
'country' => 'country',
- 'voice_enabled' => 'voiceEnabled',
- 'sms_enabled' => 'smsEnabled',
'offnet' => 'offnet',
'tfn' => 'tfn'
];
@@ -254,8 +246,6 @@ public function isNullableSetToNull(string $property): bool
'alias' => 'setAlias',
'region' => 'setRegion',
'country' => 'setCountry',
- 'voice_enabled' => 'setVoiceEnabled',
- 'sms_enabled' => 'setSmsEnabled',
'offnet' => 'setOffnet',
'tfn' => 'setTfn'
];
@@ -279,8 +269,6 @@ public function isNullableSetToNull(string $property): bool
'alias' => 'getAlias',
'region' => 'getRegion',
'country' => 'getCountry',
- 'voice_enabled' => 'getVoiceEnabled',
- 'sms_enabled' => 'getSmsEnabled',
'offnet' => 'getOffnet',
'tfn' => 'getTfn'
];
@@ -355,8 +343,6 @@ public function __construct(?array $data = null)
$this->setIfExists('alias', $data ?? [], null);
$this->setIfExists('region', $data ?? [], null);
$this->setIfExists('country', $data ?? [], null);
- $this->setIfExists('voice_enabled', $data ?? [], null);
- $this->setIfExists('sms_enabled', $data ?? [], null);
$this->setIfExists('offnet', $data ?? [], null);
$this->setIfExists('tfn', $data ?? [], null);
}
@@ -810,78 +796,6 @@ public function setCountry($country)
return $this;
}
- /**
- * Gets voice_enabled
- *
- * @return bool|null
- * @deprecated
- */
- public function getVoiceEnabled()
- {
- return $this->container['voice_enabled'];
- }
-
- /**
- * Sets voice_enabled
- *
- * @param bool|null $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
- *
- * @return self
- * @deprecated
- */
- public function setVoiceEnabled($voice_enabled)
- {
- if (is_null($voice_enabled)) {
- array_push($this->openAPINullablesSetToNull, 'voice_enabled');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('voice_enabled', $nullablesSetToNull, true);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
- }
- $this->container['voice_enabled'] = $voice_enabled;
-
- return $this;
- }
-
- /**
- * Gets sms_enabled
- *
- * @return bool|null
- * @deprecated
- */
- public function getSmsEnabled()
- {
- return $this->container['sms_enabled'];
- }
-
- /**
- * Sets sms_enabled
- *
- * @param bool|null $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
- *
- * @return self
- * @deprecated
- */
- public function setSmsEnabled($sms_enabled)
- {
- if (is_null($sms_enabled)) {
- array_push($this->openAPINullablesSetToNull, 'sms_enabled');
- } else {
- $nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
- $index = array_search('sms_enabled', $nullablesSetToNull, true);
- if ($index !== false) {
- unset($nullablesSetToNull[$index]);
- $this->setOpenAPINullablesSetToNull($nullablesSetToNull);
- }
- }
- $this->container['sms_enabled'] = $sms_enabled;
-
- return $this;
- }
-
/**
* Gets offnet
*
diff --git a/lib/Model/ModifyBlobRequest.php b/lib/Model/ModifyBlobRequest.php
new file mode 100644
index 0000000..9560893
--- /dev/null
+++ b/lib/Model/ModifyBlobRequest.php
@@ -0,0 +1,457 @@
+
+ */
+class ModifyBlobRequest implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'ModifyBlobRequest';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'blob' => 'object',
+ 'alias' => 'string'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'blob' => null,
+ 'alias' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'blob' => false,
+ 'alias' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'blob' => 'blob',
+ 'alias' => 'alias'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'blob' => 'setBlob',
+ 'alias' => 'setAlias'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'blob' => 'getBlob',
+ 'alias' => 'getAlias'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('blob', $data ?? [], null);
+ $this->setIfExists('alias', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['blob'] === null) {
+ $invalidProperties[] = "'blob' can't be null";
+ }
+ if (!is_null($this->container['alias']) && (mb_strlen($this->container['alias']) > 64)) {
+ $invalidProperties[] = "invalid value for 'alias', the character length must be smaller than or equal to 64.";
+ }
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets blob
+ *
+ * @return object
+ */
+ public function getBlob()
+ {
+ return $this->container['blob'];
+ }
+
+ /**
+ * Sets blob
+ *
+ * @param object $blob blob
+ *
+ * @return self
+ */
+ public function setBlob($blob)
+ {
+ if (is_null($blob)) {
+ throw new \InvalidArgumentException('non-nullable blob cannot be null');
+ }
+ $this->container['blob'] = $blob;
+
+ return $this;
+ }
+
+ /**
+ * Gets alias
+ *
+ * @return string|null
+ */
+ public function getAlias()
+ {
+ return $this->container['alias'];
+ }
+
+ /**
+ * Sets alias
+ *
+ * @param string|null $alias Custom identifier for this blob that is unique for the owning account. It will be set to the blobId by default if not provided.
+ *
+ * @return self
+ */
+ public function setAlias($alias)
+ {
+ if (is_null($alias)) {
+ throw new \InvalidArgumentException('non-nullable alias cannot be null');
+ }
+ if ((mb_strlen($alias) > 64)) {
+ throw new \InvalidArgumentException('invalid length for $alias when calling ModifyBlobRequest., must be smaller than or equal to 64.');
+ }
+
+ $this->container['alias'] = $alias;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/PlatformError.php b/lib/Model/PlatformError.php
new file mode 100644
index 0000000..6736a1e
--- /dev/null
+++ b/lib/Model/PlatformError.php
@@ -0,0 +1,515 @@
+
+ */
+class PlatformError implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'PlatformError';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'code' => 'int',
+ 'call' => 'string',
+ 'url' => 'string',
+ 'details' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'code' => null,
+ 'call' => null,
+ 'url' => 'uri-reference',
+ 'details' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'code' => false,
+ 'call' => false,
+ 'url' => false,
+ 'details' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'code' => 'code',
+ 'call' => 'call',
+ 'url' => 'url',
+ 'details' => 'details'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'code' => 'setCode',
+ 'call' => 'setCall',
+ 'url' => 'setUrl',
+ 'details' => 'setDetails'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'code' => 'getCode',
+ 'call' => 'getCall',
+ 'url' => 'getUrl',
+ 'details' => 'getDetails'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('code', $data ?? [], null);
+ $this->setIfExists('call', $data ?? [], null);
+ $this->setIfExists('url', $data ?? [], null);
+ $this->setIfExists('details', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets code
+ *
+ * @return int|null
+ */
+ public function getCode()
+ {
+ return $this->container['code'];
+ }
+
+ /**
+ * Sets code
+ *
+ * @param int|null $code code
+ *
+ * @return self
+ */
+ public function setCode($code)
+ {
+ if (is_null($code)) {
+ throw new \InvalidArgumentException('non-nullable code cannot be null');
+ }
+ $this->container['code'] = $code;
+
+ return $this;
+ }
+
+ /**
+ * Gets call
+ *
+ * @return string|null
+ */
+ public function getCall()
+ {
+ return $this->container['call'];
+ }
+
+ /**
+ * Sets call
+ *
+ * @param string|null $call call
+ *
+ * @return self
+ */
+ public function setCall($call)
+ {
+ if (is_null($call)) {
+ throw new \InvalidArgumentException('non-nullable call cannot be null');
+ }
+ $this->container['call'] = $call;
+
+ return $this;
+ }
+
+ /**
+ * Gets url
+ *
+ * @return string|null
+ */
+ public function getUrl()
+ {
+ return $this->container['url'];
+ }
+
+ /**
+ * Sets url
+ *
+ * @param string|null $url url
+ *
+ * @return self
+ */
+ public function setUrl($url)
+ {
+ if (is_null($url)) {
+ throw new \InvalidArgumentException('non-nullable url cannot be null');
+ }
+ $this->container['url'] = $url;
+
+ return $this;
+ }
+
+ /**
+ * Gets details
+ *
+ * @return object|null
+ */
+ public function getDetails()
+ {
+ return $this->container['details'];
+ }
+
+ /**
+ * Sets details
+ *
+ * @param object|null $details details
+ *
+ * @return self
+ */
+ public function setDetails($details)
+ {
+ if (is_null($details)) {
+ throw new \InvalidArgumentException('non-nullable details cannot be null');
+ }
+ $this->container['details'] = $details;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/ReplaceBlobRequest.php b/lib/Model/ReplaceBlobRequest.php
new file mode 100644
index 0000000..8f7456d
--- /dev/null
+++ b/lib/Model/ReplaceBlobRequest.php
@@ -0,0 +1,415 @@
+
+ */
+class ReplaceBlobRequest implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'ReplaceBlobRequest';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'blob' => 'object'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'blob' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'blob' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'blob' => 'blob'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'blob' => 'setBlob'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'blob' => 'getBlob'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('blob', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['blob'] === null) {
+ $invalidProperties[] = "'blob' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets blob
+ *
+ * @return object
+ */
+ public function getBlob()
+ {
+ return $this->container['blob'];
+ }
+
+ /**
+ * Sets blob
+ *
+ * @param object $blob blob
+ *
+ * @return self
+ */
+ public function setBlob($blob)
+ {
+ if (is_null($blob)) {
+ throw new \InvalidArgumentException('non-nullable blob cannot be null');
+ }
+ $this->container['blob'] = $blob;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/Say.php b/lib/Model/Say.php
index 6999735..26da45a 100644
--- a/lib/Model/Say.php
+++ b/lib/Model/Say.php
@@ -60,6 +60,7 @@ class Say extends PerclCommand
protected static $openAPITypes = [
'text' => 'string',
'language' => 'string',
+ 'engine' => '\FreeClimb\Api\Model\TTSEngine',
'loop' => 'int',
'privacy_mode' => 'bool'
];
@@ -74,6 +75,7 @@ class Say extends PerclCommand
protected static $openAPIFormats = [
'text' => null,
'language' => null,
+ 'engine' => null,
'loop' => null,
'privacy_mode' => null
];
@@ -86,6 +88,7 @@ class Say extends PerclCommand
protected static array $openAPINullables = [
'text' => false,
'language' => false,
+ 'engine' => false,
'loop' => false,
'privacy_mode' => false
];
@@ -178,6 +181,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'text' => 'text',
'language' => 'language',
+ 'engine' => 'engine',
'loop' => 'loop',
'privacy_mode' => 'privacyMode'
];
@@ -190,6 +194,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'text' => 'setText',
'language' => 'setLanguage',
+ 'engine' => 'setEngine',
'loop' => 'setLoop',
'privacy_mode' => 'setPrivacyMode'
];
@@ -202,6 +207,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'text' => 'getText',
'language' => 'getLanguage',
+ 'engine' => 'getEngine',
'loop' => 'getLoop',
'privacy_mode' => 'getPrivacyMode'
];
@@ -261,6 +267,7 @@ public function __construct(?array $data = null)
$this->setIfExists('text', $data ?? [], null);
$this->setIfExists('language', $data ?? [], null);
+ $this->setIfExists('engine', $data ?? [], null);
$this->setIfExists('loop', $data ?? [], 1);
$this->setIfExists('privacy_mode', $data ?? [], null);
}
@@ -364,6 +371,33 @@ public function setLanguage($language)
return $this;
}
+ /**
+ * Gets engine
+ *
+ * @return \FreeClimb\Api\Model\TTSEngine|null
+ */
+ public function getEngine()
+ {
+ return $this->container['engine'];
+ }
+
+ /**
+ * Sets engine
+ *
+ * @param \FreeClimb\Api\Model\TTSEngine|null $engine engine
+ *
+ * @return self
+ */
+ public function setEngine($engine)
+ {
+ if (is_null($engine)) {
+ throw new \InvalidArgumentException('non-nullable engine cannot be null');
+ }
+ $this->container['engine'] = $engine;
+
+ return $this;
+ }
+
/**
* Gets loop
*
diff --git a/lib/Model/TTSEngine.php b/lib/Model/TTSEngine.php
new file mode 100644
index 0000000..12130b9
--- /dev/null
+++ b/lib/Model/TTSEngine.php
@@ -0,0 +1,446 @@
+
+ */
+class TTSEngine implements ModelInterface, ArrayAccess, \JsonSerializable
+{
+ public const DISCRIMINATOR = null;
+
+ /**
+ * The original name of the model.
+ *
+ * @var string
+ */
+ protected static $openAPIModelName = 'TTSEngine';
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPITypes = [
+ 'name' => '\FreeClimb\Api\Model\TTSEngineName',
+ 'parameters' => 'array'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ * @phpstan-var array
+ * @psalm-var array
+ */
+ protected static $openAPIFormats = [
+ 'name' => null,
+ 'parameters' => null
+ ];
+
+ /**
+ * Array of nullable properties. Used for (de)serialization
+ *
+ * @var boolean[]
+ */
+ protected static array $openAPINullables = [
+ 'name' => false,
+ 'parameters' => false
+ ];
+
+ /**
+ * If a nullable field gets set to null, insert it here
+ *
+ * @var boolean[]
+ */
+ protected array $openAPINullablesSetToNull = [];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of nullable properties
+ *
+ * @return array
+ */
+ protected static function openAPINullables(): array
+ {
+ return self::$openAPINullables;
+ }
+
+ /**
+ * Array of nullable field names deliberately set to null
+ *
+ * @return boolean[]
+ */
+ private function getOpenAPINullablesSetToNull(): array
+ {
+ return $this->openAPINullablesSetToNull;
+ }
+
+ /**
+ * Setter - Array of nullable field names deliberately set to null
+ *
+ * @param boolean[] $openAPINullablesSetToNull
+ */
+ private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
+ {
+ $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
+ }
+
+ /**
+ * Checks if a property is nullable
+ *
+ * @param string $property
+ * @return bool
+ */
+ public static function isNullable(string $property): bool
+ {
+ return self::openAPINullables()[$property] ?? false;
+ }
+
+ /**
+ * Checks if a nullable property is set to null.
+ *
+ * @param string $property
+ * @return bool
+ */
+ public function isNullableSetToNull(string $property): bool
+ {
+ return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'name' => 'name',
+ 'parameters' => 'parameters'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'name' => 'setName',
+ 'parameters' => 'setParameters'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'name' => 'getName',
+ 'parameters' => 'getParameters'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(?array $data = null)
+ {
+ $this->setIfExists('name', $data ?? [], null);
+ $this->setIfExists('parameters', $data ?? [], null);
+ }
+
+ /**
+ * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
+ * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
+ * $this->openAPINullablesSetToNull array
+ *
+ * @param string $variableName
+ * @param array $fields
+ * @param mixed $defaultValue
+ */
+ private function setIfExists(string $variableName, array $fields, $defaultValue): void
+ {
+ if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
+ $this->openAPINullablesSetToNull[] = $variableName;
+ }
+
+ $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets name
+ *
+ * @return \FreeClimb\Api\Model\TTSEngineName|null
+ */
+ public function getName()
+ {
+ return $this->container['name'];
+ }
+
+ /**
+ * Sets name
+ *
+ * @param \FreeClimb\Api\Model\TTSEngineName|null $name name
+ *
+ * @return self
+ */
+ public function setName($name)
+ {
+ if (is_null($name)) {
+ throw new \InvalidArgumentException('non-nullable name cannot be null');
+ }
+ $this->container['name'] = $name;
+
+ return $this;
+ }
+
+ /**
+ * Gets parameters
+ *
+ * @return array|null
+ */
+ public function getParameters()
+ {
+ return $this->container['parameters'];
+ }
+
+ /**
+ * Sets parameters
+ *
+ * @param array|null $parameters Parameters for the TTS engine. The parameters are specific to the engine and are documented in the engine's documentation.
+ *
+ * @return self
+ */
+ public function setParameters($parameters)
+ {
+ if (is_null($parameters)) {
+ throw new \InvalidArgumentException('non-nullable parameters cannot be null');
+ }
+ $this->container['parameters'] = $parameters;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset): bool
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed|null
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ return $this->container[$offset] ?? null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param int|null $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value): void
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset): void
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Serializes the object to a value that can be serialized natively by json_encode().
+ * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
+ *
+ * @return mixed Returns data which can be serialized by json_encode(), which is a value
+ * of any type other than a resource.
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ return ObjectSerializer::sanitizeForSerialization($this);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+
+ /**
+ * Gets a header-safe presentation of the object
+ *
+ * @return string
+ */
+ public function toHeaderValue()
+ {
+ return json_encode(ObjectSerializer::sanitizeForSerialization($this));
+ }
+
+}
+
+
diff --git a/lib/Model/TTSEngineName.php b/lib/Model/TTSEngineName.php
new file mode 100644
index 0000000..974f56b
--- /dev/null
+++ b/lib/Model/TTSEngineName.php
@@ -0,0 +1,68 @@
+setHost('http://127.0.0.1:4010')
- ->setUsername('YOUR_ACCOUNT_ID')
- ->setPassword('YOUR_API_KEY');
+ ->setUsername('AC0123456789abcdefABCDEF0123456789abcdef00')
+ ->setPassword('123ABC123ABC123ABC123ABC123ABC123ABCID');
static::$apiInstance = new DefaultApi(
@@ -672,6 +672,55 @@ public function cursor_listExports_test_value()
{
return "cursor_test_value";
}
+ public function create_blob_request_createBlob_test_value()
+ {
+ return new \FreeClimb\Api\Model\CreateBlobRequest([
+ "alias" => "alias_example",
+ "expires_at" => "expires_at_example",
+ "blob" => new \stdClass()
+ ]);
+ }
+ public function blob_id_deleteBlob_test_value()
+ {
+ return "BL0123456789abcdefABCDEF0123456789abcdef00";
+ }
+ public function blob_id_getBlob_test_value()
+ {
+ return "BL0123456789abcdefABCDEF0123456789abcdef00";
+ }
+ public function alias_listBlobs_test_value()
+ {
+ return "alias_example";
+ }
+ public function modify_blob_request_modifyBlob_test_value()
+ {
+ return new \FreeClimb\Api\Model\ModifyBlobRequest([
+ "blob" => new \stdClass(),
+ "alias" => "alias_example"
+ ]);
+ }
+ public function replace_blob_request_replaceBlob_test_value()
+ {
+ return new \FreeClimb\Api\Model\ReplaceBlobRequest([
+ "blob" => new \stdClass()
+ ]);
+ }
+ public function key_deleteBlob_test_value()
+ {
+ return ["key_example"];
+ }
+ public function cursor_listBlobs_test_value()
+ {
+ return "cursor_test_value";
+ }
+ public function blob_id_modifyBlob_test_value()
+ {
+ return "BL0123456789abcdefABCDEF0123456789abcdef00";
+ }
+ public function blob_id_replaceBlob_test_value()
+ {
+ return "BL0123456789abcdefABCDEF0123456789abcdef00";
+ }
/**
* Setup before running each test case
*/
@@ -756,6 +805,27 @@ public function testCreateAnApplication()
$this->assertInstanceOf('\FreeClimb\Api\Model\ApplicationResult', $response);
}
+ /**
+ * Test case for createBlob
+ *
+ * Create a Blob.
+ *
+ */
+ public function testCreateBlob()
+ {
+
+ //$create_blob_request = $create_blob_request_test_value;
+
+
+ $response = static::$apiInstance->createBlob($this->create_blob_request_createBlob_test_value());
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ }
+
/**
* Test case for createExport
*
@@ -854,6 +924,27 @@ public function testDeleteAnIncomingNumber()
$this->assertNull($response);
}
+ /**
+ * Test case for deleteBlob
+ *
+ * Delete Blob.
+ *
+ */
+ public function testDeleteBlob()
+ {
+
+ //$blob_id = $blob_id_test_value;
+
+
+ $response = static::$apiInstance->deleteBlob($this->blob_id_deleteBlob_test_value());
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ }
+
/**
* Test case for dequeueAMember
*
@@ -1115,6 +1206,25 @@ public function testGetAnSmsMessage()
$this->assertInstanceOf('\FreeClimb\Api\Model\MessageResult', $response);
}
+ /**
+ * Test case for getBlob
+ *
+ * Get Blob.
+ *
+ */
+ public function testGetBlob()
+ {
+
+ //$blob_id = $blob_id_test_value;
+
+
+ $response = static::$apiInstance->getBlob($this->blob_id_getBlob_test_value());
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ }
+
/**
* Test case for getHeadMember
*
@@ -1335,6 +1445,23 @@ public function testListAvailableNumbers()
$this->assertInstanceOf('\FreeClimb\Api\Model\AvailableNumberList', $response);
}
+ /**
+ * Test case for listBlobs
+ *
+ * List Blobs belonging to an account..
+ *
+ */
+ public function testListBlobs()
+ {
+
+
+ $response = static::$apiInstance->listBlobs();
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobListResponse', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobListResponse', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobListResponse', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobListResponse', $response);
+ }
+
/**
* Test case for listCallLogs
*
@@ -1484,10 +1611,6 @@ public function testListIncomingNumbers()
//$has_application = $has_application_test_value;
- //$voice_enabled = $voice_enabled_test_value;
-
- //$sms_enabled = $sms_enabled_test_value;
-
//$has_campaign = $has_campaign_test_value;
//$capabilities_voice = $capabilities_voice_test_value;
@@ -1505,7 +1628,7 @@ public function testListIncomingNumbers()
//$offnet = $offnet_test_value;
- $response = static::$apiInstance->listIncomingNumbers($this->phone_number_listIncomingNumbers_test_value(), $this->alias_listIncomingNumbers_test_value(), $this->region_listIncomingNumbers_test_value(), $this->country_listIncomingNumbers_test_value(), $this->application_id_listIncomingNumbers_test_value(), $this->has_application_listIncomingNumbers_test_value(), $this->voice_enabled_listIncomingNumbers_test_value(), $this->sms_enabled_listIncomingNumbers_test_value(), $this->has_campaign_listIncomingNumbers_test_value(), $this->capabilities_voice_listIncomingNumbers_test_value(), $this->capabilities_sms_listIncomingNumbers_test_value(), $this->capabilities_toll_free_listIncomingNumbers_test_value(), $this->capabilities_ten_dlc_listIncomingNumbers_test_value(), $this->capabilities_short_code_listIncomingNumbers_test_value(), $this->tfn_campaign_id_listIncomingNumbers_test_value(), $this->offnet_listIncomingNumbers_test_value());
+ $response = static::$apiInstance->listIncomingNumbers($this->phone_number_listIncomingNumbers_test_value(), $this->alias_listIncomingNumbers_test_value(), $this->region_listIncomingNumbers_test_value(), $this->country_listIncomingNumbers_test_value(), $this->application_id_listIncomingNumbers_test_value(), $this->has_application_listIncomingNumbers_test_value(), $this->has_campaign_listIncomingNumbers_test_value(), $this->capabilities_voice_listIncomingNumbers_test_value(), $this->capabilities_sms_listIncomingNumbers_test_value(), $this->capabilities_toll_free_listIncomingNumbers_test_value(), $this->capabilities_ten_dlc_listIncomingNumbers_test_value(), $this->capabilities_short_code_listIncomingNumbers_test_value(), $this->tfn_campaign_id_listIncomingNumbers_test_value(), $this->offnet_listIncomingNumbers_test_value());
$this->assertInstanceOf('\FreeClimb\Api\Model\IncomingNumberList', $response);
}
@@ -1630,6 +1753,28 @@ public function testMakeAWebrtcJwt()
$this->assertIsString($response);
}
+ /**
+ * Test case for modifyBlob
+ *
+ * Modify Blob.
+ *
+ */
+ public function testModifyBlob()
+ {
+
+ //$blob_id = $blob_id_test_value;
+
+ //$modify_blob_request = $modify_blob_request_test_value;
+
+
+ $response = static::$apiInstance->modifyBlob($this->blob_id_modifyBlob_test_value(), $this->modify_blob_request_modifyBlob_test_value());
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ }
+
/**
* Test case for removeAParticipant
*
@@ -1648,6 +1793,28 @@ public function testRemoveAParticipant()
$this->assertNull($response);
}
+ /**
+ * Test case for replaceBlob
+ *
+ * Replace Blob.
+ *
+ */
+ public function testReplaceBlob()
+ {
+
+ //$blob_id = $blob_id_test_value;
+
+ //$replace_blob_request = $replace_blob_request_test_value;
+
+
+ $response = static::$apiInstance->replaceBlob($this->blob_id_replaceBlob_test_value(), $this->replace_blob_request_replaceBlob_test_value());
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobResult', $response);
+ }
+
/**
* Test case for sendAnSmsMessage
*
@@ -1922,6 +2089,19 @@ public function testGetNextPageListAvailableNumbers()
$nextPageResponse = static::$apiInstance->getNextPage($response);
$this->assertInstanceOf('\FreeClimb\Api\Model\AvailableNumberList', $nextPageResponse);
}
+ /**
+ * Test case for getNextPage of listBlobs
+ *
+ * Get next page of resource.
+ */
+
+ public function testGetNextPageListBlobs()
+ {
+ $response = static::$apiInstance->listBlobs();
+ $response['next_page_uri'] = '/Accounts/{accountId}/Blobs?cursor=1';
+ $nextPageResponse = static::$apiInstance->getNextPage($response);
+ $this->assertInstanceOf('\FreeClimb\Api\Model\BlobListResponse', $nextPageResponse);
+ }
/**
* Test case for getNextPage of listCallLogs
*
@@ -2008,7 +2188,7 @@ public function testGetNextPageListExports()
public function testGetNextPageListIncomingNumbers()
{
- $response = static::$apiInstance->listIncomingNumbers($this->phone_number_listIncomingNumbers_test_value(), $this->alias_listIncomingNumbers_test_value(), $this->region_listIncomingNumbers_test_value(), $this->country_listIncomingNumbers_test_value(), $this->application_id_listIncomingNumbers_test_value(), $this->has_application_listIncomingNumbers_test_value(), $this->voice_enabled_listIncomingNumbers_test_value(), $this->sms_enabled_listIncomingNumbers_test_value(), $this->has_campaign_listIncomingNumbers_test_value(), $this->capabilities_voice_listIncomingNumbers_test_value(), $this->capabilities_sms_listIncomingNumbers_test_value(), $this->capabilities_toll_free_listIncomingNumbers_test_value(), $this->capabilities_ten_dlc_listIncomingNumbers_test_value(), $this->capabilities_short_code_listIncomingNumbers_test_value(), $this->tfn_campaign_id_listIncomingNumbers_test_value(), $this->offnet_listIncomingNumbers_test_value());
+ $response = static::$apiInstance->listIncomingNumbers($this->phone_number_listIncomingNumbers_test_value(), $this->alias_listIncomingNumbers_test_value(), $this->region_listIncomingNumbers_test_value(), $this->country_listIncomingNumbers_test_value(), $this->application_id_listIncomingNumbers_test_value(), $this->has_application_listIncomingNumbers_test_value(), $this->has_campaign_listIncomingNumbers_test_value(), $this->capabilities_voice_listIncomingNumbers_test_value(), $this->capabilities_sms_listIncomingNumbers_test_value(), $this->capabilities_toll_free_listIncomingNumbers_test_value(), $this->capabilities_ten_dlc_listIncomingNumbers_test_value(), $this->capabilities_short_code_listIncomingNumbers_test_value(), $this->tfn_campaign_id_listIncomingNumbers_test_value(), $this->offnet_listIncomingNumbers_test_value());
$response['next_page_uri'] = '/Accounts/{accountId}/IncomingPhoneNumbers?cursor=1';
$nextPageResponse = static::$apiInstance->getNextPage($response);
$this->assertInstanceOf('\FreeClimb\Api\Model\IncomingNumberList', $nextPageResponse);
diff --git a/test/Model/AvailableNumberTest.php b/test/Model/AvailableNumberTest.php
index eb954f3..3f3a843 100644
--- a/test/Model/AvailableNumberTest.php
+++ b/test/Model/AvailableNumberTest.php
@@ -96,20 +96,6 @@ public function testPropertyPhoneNumber()
$this->assertIsString($this->AvailableNumber->getPhoneNumber());
}
- public function testPropertyVoiceEnabled()
- {
- $this->AvailableNumber->setvoiceEnabled(false);
- $this->assertFalse($this->AvailableNumber->getvoiceEnabled());
- $this->assertIsBool($this->AvailableNumber->getvoiceEnabled());
- }
-
- public function testPropertySmsEnabled()
- {
- $this->AvailableNumber->setsmsEnabled(false);
- $this->assertFalse($this->AvailableNumber->getsmsEnabled());
- $this->assertIsBool($this->AvailableNumber->getsmsEnabled());
- }
-
public function testPropertyRegion()
{
diff --git a/test/Model/BlobListResponseTest.php b/test/Model/BlobListResponseTest.php
new file mode 100644
index 0000000..bd38ee2
--- /dev/null
+++ b/test/Model/BlobListResponseTest.php
@@ -0,0 +1,151 @@
+BlobListResponse = new \FreeClimb\Api\Model\BlobListResponse();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyTotal()
+ {
+
+
+ $this->BlobListResponse->settotal(1);
+ $this->assertEquals(1, $this->BlobListResponse->gettotal());
+ $this->assertIsNumeric($this->BlobListResponse->gettotal());
+
+ }
+
+ public function testPropertyStart()
+ {
+
+
+ $this->BlobListResponse->setstart(1);
+ $this->assertEquals(1, $this->BlobListResponse->getstart());
+ $this->assertIsNumeric($this->BlobListResponse->getstart());
+
+ }
+
+ public function testPropertyEnd()
+ {
+
+
+ $this->BlobListResponse->setend(1);
+ $this->assertEquals(1, $this->BlobListResponse->getend());
+ $this->assertIsNumeric($this->BlobListResponse->getend());
+
+ }
+
+ public function testPropertyPage()
+ {
+
+
+ $this->BlobListResponse->setpage(1);
+ $this->assertEquals(1, $this->BlobListResponse->getpage());
+ $this->assertIsNumeric($this->BlobListResponse->getpage());
+
+ }
+
+ public function testPropertyNumPages()
+ {
+
+
+ $this->BlobListResponse->setnumPages(1);
+ $this->assertEquals(1, $this->BlobListResponse->getnumPages());
+ $this->assertIsNumeric($this->BlobListResponse->getnumPages());
+
+ }
+
+ public function testPropertyPageSize()
+ {
+
+
+ $this->BlobListResponse->setpageSize(1);
+ $this->assertEquals(1, $this->BlobListResponse->getpageSize());
+ $this->assertIsNumeric($this->BlobListResponse->getpageSize());
+
+ }
+
+ public function testPropertyNextPageUri()
+ {
+
+ $this->BlobListResponse->setNextPageUri('TS');
+ $this->assertEquals('TS', $this->BlobListResponse->getNextPageUri());
+ $this->assertIsString($this->BlobListResponse->getNextPageUri());
+ }
+
+ public function testPropertyBlobs()
+ {
+ $this->BlobListResponse->setblobs([]);
+ $this->assertEquals([], $this->BlobListResponse->getblobs());
+ $this->assertIsArray($this->BlobListResponse->getblobs());
+ }
+}
diff --git a/test/Model/BlobResultTest.php b/test/Model/BlobResultTest.php
new file mode 100644
index 0000000..25280a7
--- /dev/null
+++ b/test/Model/BlobResultTest.php
@@ -0,0 +1,136 @@
+BlobResult = new \FreeClimb\Api\Model\BlobResult();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyBlobId()
+ {
+
+ $this->BlobResult->setBlobId('BL88615a9b4ca7e9aad57d9057773fc74268b9caf7');
+ $this->assertEquals('BL88615a9b4ca7e9aad57d9057773fc74268b9caf7', $this->BlobResult->getBlobId());
+ $this->assertIsString($this->BlobResult->getBlobId());
+
+ }
+
+ public function testPropertyAccountId()
+ {
+
+ $this->BlobResult->setAccountId('AC0534faec6b32da45f36166674d65b3903f784141');
+ $this->assertEquals('AC0534faec6b32da45f36166674d65b3903f784141', $this->BlobResult->getAccountId());
+ $this->assertIsString($this->BlobResult->getAccountId());
+
+ }
+
+ public function testPropertyAlias()
+ {
+
+ $this->BlobResult->setAlias('TS');
+ $this->assertEquals('TS', $this->BlobResult->getAlias());
+ $this->assertIsString($this->BlobResult->getAlias());
+ }
+
+ public function testPropertyRevision()
+ {
+
+
+ $this->BlobResult->setrevision(1);
+ $this->assertEquals(1, $this->BlobResult->getrevision());
+ $this->assertIsNumeric($this->BlobResult->getrevision());
+
+ }
+
+ public function testPropertyDateCreated()
+ {
+ $this->BlobResult->setdateCreated('2023-09-21 15:30:00');
+ $this->assertEquals('2023-09-21 15:30:00', $this->BlobResult->getdateCreated());
+ }
+
+ public function testPropertyDateUpdated()
+ {
+ $this->BlobResult->setdateUpdated('2023-09-21 15:30:00');
+ $this->assertEquals('2023-09-21 15:30:00', $this->BlobResult->getdateUpdated());
+ }
+
+ public function testPropertyExpiresAt()
+ {
+ $this->BlobResult->setexpiresAt('2023-09-21 15:30:00');
+ $this->assertEquals('2023-09-21 15:30:00', $this->BlobResult->getexpiresAt());
+ }
+
+ public function testPropertyBlob()
+ {
+ $this->BlobResult->setblob(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->BlobResult->getblob());
+ }
+}
diff --git a/test/Model/CreateBlobRequestTest.php b/test/Model/CreateBlobRequestTest.php
new file mode 100644
index 0000000..bd1833d
--- /dev/null
+++ b/test/Model/CreateBlobRequestTest.php
@@ -0,0 +1,98 @@
+CreateBlobRequest = new \FreeClimb\Api\Model\CreateBlobRequest();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyAlias()
+ {
+
+ $this->CreateBlobRequest->setAlias('TS');
+ $this->assertEquals('TS', $this->CreateBlobRequest->getAlias());
+ $this->assertIsString($this->CreateBlobRequest->getAlias());
+ }
+
+ public function testPropertyExpiresAt()
+ {
+
+ $this->CreateBlobRequest->setExpiresAt('TS');
+ $this->assertEquals('TS', $this->CreateBlobRequest->getExpiresAt());
+ $this->assertIsString($this->CreateBlobRequest->getExpiresAt());
+ }
+
+ public function testPropertyBlob()
+ {
+ $this->CreateBlobRequest->setblob(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->CreateBlobRequest->getblob());
+ }
+}
diff --git a/test/Model/IncomingNumberResultTest.php b/test/Model/IncomingNumberResultTest.php
index a3de558..9226f38 100644
--- a/test/Model/IncomingNumberResultTest.php
+++ b/test/Model/IncomingNumberResultTest.php
@@ -178,20 +178,6 @@ public function testPropertyCountry()
$this->assertIsString($this->IncomingNumberResult->getCountry());
}
- public function testPropertyVoiceEnabled()
- {
- $this->IncomingNumberResult->setvoiceEnabled(false);
- $this->assertFalse($this->IncomingNumberResult->getvoiceEnabled());
- $this->assertIsBool($this->IncomingNumberResult->getvoiceEnabled());
- }
-
- public function testPropertySmsEnabled()
- {
- $this->IncomingNumberResult->setsmsEnabled(false);
- $this->assertFalse($this->IncomingNumberResult->getsmsEnabled());
- $this->assertIsBool($this->IncomingNumberResult->getsmsEnabled());
- }
-
public function testPropertyOffnet()
{
$this->IncomingNumberResult->setoffnet(false);
diff --git a/test/Model/ModifyBlobRequestTest.php b/test/Model/ModifyBlobRequestTest.php
new file mode 100644
index 0000000..1bc1c56
--- /dev/null
+++ b/test/Model/ModifyBlobRequestTest.php
@@ -0,0 +1,90 @@
+ModifyBlobRequest = new \FreeClimb\Api\Model\ModifyBlobRequest();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyBlob()
+ {
+ $this->ModifyBlobRequest->setblob(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->ModifyBlobRequest->getblob());
+ }
+
+ public function testPropertyAlias()
+ {
+
+ $this->ModifyBlobRequest->setAlias('TS');
+ $this->assertEquals('TS', $this->ModifyBlobRequest->getAlias());
+ $this->assertIsString($this->ModifyBlobRequest->getAlias());
+ }
+}
diff --git a/test/Model/PlatformErrorTest.php b/test/Model/PlatformErrorTest.php
new file mode 100644
index 0000000..9f3793a
--- /dev/null
+++ b/test/Model/PlatformErrorTest.php
@@ -0,0 +1,108 @@
+PlatformError = new \FreeClimb\Api\Model\PlatformError();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyCode()
+ {
+
+
+ $this->PlatformError->setcode(1);
+ $this->assertEquals(1, $this->PlatformError->getcode());
+ $this->assertIsNumeric($this->PlatformError->getcode());
+
+ }
+
+ public function testPropertyCall()
+ {
+
+ $this->PlatformError->setCall('TS');
+ $this->assertEquals('TS', $this->PlatformError->getCall());
+ $this->assertIsString($this->PlatformError->getCall());
+ }
+
+ public function testPropertyUrl()
+ {
+
+ $this->PlatformError->setUrl('TS');
+ $this->assertEquals('TS', $this->PlatformError->getUrl());
+ $this->assertIsString($this->PlatformError->getUrl());
+ }
+
+ public function testPropertyDetails()
+ {
+ $this->PlatformError->setdetails(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->PlatformError->getdetails());
+ }
+}
diff --git a/test/Model/ReplaceBlobRequestTest.php b/test/Model/ReplaceBlobRequestTest.php
new file mode 100644
index 0000000..96b1e50
--- /dev/null
+++ b/test/Model/ReplaceBlobRequestTest.php
@@ -0,0 +1,82 @@
+ReplaceBlobRequest = new \FreeClimb\Api\Model\ReplaceBlobRequest();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyBlob()
+ {
+ $this->ReplaceBlobRequest->setblob(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->ReplaceBlobRequest->getblob());
+ }
+}
diff --git a/test/Model/SayTest.php b/test/Model/SayTest.php
index 4589052..84f2557 100644
--- a/test/Model/SayTest.php
+++ b/test/Model/SayTest.php
@@ -90,6 +90,12 @@ public function testPropertyLanguage()
$this->assertIsString($this->Say->getLanguage());
}
+ public function testPropertyEngine()
+ {
+ $this->Say->setengine(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->Say->getengine());
+ }
+
public function testPropertyLoop()
{
diff --git a/test/Model/TTSEngineNameTest.php b/test/Model/TTSEngineNameTest.php
new file mode 100644
index 0000000..7a81875
--- /dev/null
+++ b/test/Model/TTSEngineNameTest.php
@@ -0,0 +1,76 @@
+TTSEngineName = new \FreeClimb\Api\Model\TTSEngineName();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+}
diff --git a/test/Model/TTSEngineTest.php b/test/Model/TTSEngineTest.php
new file mode 100644
index 0000000..c0c39eb
--- /dev/null
+++ b/test/Model/TTSEngineTest.php
@@ -0,0 +1,92 @@
+TTSEngine = new \FreeClimb\Api\Model\TTSEngine();
+ }
+
+ /**
+ * Clean up after running each test case
+ */
+ public function tearDown(): void
+ {
+ }
+
+ /**
+ * Clean up after running all test cases
+ */
+ public static function tearDownAfterClass(): void
+ {
+ }
+
+
+ public function testPropertyName()
+ {
+ $this->TTSEngine->setname(\FreeClimb\Api\Model\TTSEngineName::FREECLIMB_STANDARD);
+ $this->assertEquals(\FreeClimb\Api\Model\TTSEngineName::FREECLIMB_STANDARD, $this->TTSEngine->getname());
+ $this->TTSEngine->setname(\FreeClimb\Api\Model\TTSEngineName::FREECLIMB_NEURAL);
+ $this->assertEquals(\FreeClimb\Api\Model\TTSEngineName::FREECLIMB_NEURAL, $this->TTSEngine->getname());
+ $this->TTSEngine->setname(\FreeClimb\Api\Model\TTSEngineName::ELEVEN_LABS);
+ $this->assertEquals(\FreeClimb\Api\Model\TTSEngineName::ELEVEN_LABS, $this->TTSEngine->getname());
+ }
+
+ public function testPropertyParameters()
+ {
+ $this->TTSEngine->setparameters(new \stdClass());
+ $this->assertInstanceOf(\stdClass::class, $this->TTSEngine->getparameters());
+ }
+}