From ad0a911ee02f803300d62a084eebf4e430a44674 Mon Sep 17 00:00:00 2001 From: huzaif Date: Thu, 26 Nov 2020 15:02:56 +0530 Subject: [PATCH 1/2] Fix retrieve_application response --- CHANGELOG.md | 2 ++ src/Plivo/Resources/Application/Application.php | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6519e8..652f0ffa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## [v4.15.1](https://github.com/plivo/plivo-php/releases/tag/v4.15.2) - 2020-11-26 +- Fix retrieve_application response. ## [v4.15.1](https://github.com/plivo/plivo-php/releases/tag/v4.15.1) - 2020-11-17 - Fix resource not found exception when making sequential requests. diff --git a/src/Plivo/Resources/Application/Application.php b/src/Plivo/Resources/Application/Application.php index bc734c38..d3a4bb45 100644 --- a/src/Plivo/Resources/Application/Application.php +++ b/src/Plivo/Resources/Application/Application.php @@ -16,9 +16,12 @@ * endpoint attached to the application, Plivo will send a request to the * answer_url with the attributes of the call. We expect a valid Plivo XML to * be returned as a response to the request Plivo makes. + * @property string $apiId * @property string $appId * @property string $appName A friendly name for your Plivo application. + * @property string $applicationType represents the type of application. * @property string $defaultApp Default app + * @property boolean $defaultEndpointApp Default to an Endpoint * @property boolean $enabled Set to true if the application is enabled. * @property string $fallbackAnswerUrl Plivo will request this URL with the * same parameters sent to the answer_url if the answer_url returns a non 200 @@ -65,9 +68,12 @@ public function __construct(BaseClient $client, $response, $authId) $this->properties = [ 'answerMethod' => $response['answer_method'], 'answerUrl' => $response['answer_url'], + 'apiId' => $response['api_id'], 'appId' => $response['app_id'], 'appName' => $response['app_name'], + 'applicationType' => $response['application_type'], 'defaultApp' => $response['default_app'], + 'defaultEndpointApp' => $response['default_endpoint_app'], 'enabled' => $response['enabled'], 'fallbackAnswerUrl' => $response['fallback_answer_url'], 'fallbackMethod' => $response['fallback_method'], @@ -79,7 +85,7 @@ public function __construct(BaseClient $client, $response, $authId) 'resourceUri' => $response['resource_uri'], 'sipUri' => $response['sip_uri'], 'subAccount' => $response['sub_account'], - 'logIncomingMessages' => $response['log_incoming_messages'] + 'logIncomingMessages' => $response['log_incoming_message'] ]; $this->pathParams = [ From b685b438c2b546e3201dbcf43942362e640e9b58 Mon Sep 17 00:00:00 2001 From: Nixon Samuel Date: Tue, 8 Dec 2020 16:55:40 +0530 Subject: [PATCH 2/2] bump verison to 4.16.0 --- CHANGELOG.md | 5 +++-- src/Plivo/Version.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 652f0ffa..7a421f43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # Change Log -## [v4.15.1](https://github.com/plivo/plivo-php/releases/tag/v4.15.2) - 2020-11-26 -- Fix retrieve_application response. +## [v4.16.0](https://github.com/plivo/plivo-php/releases/tag/v4.16.0) - 2020-12-08 +- Fix retrieve_application API response. + ## [v4.15.1](https://github.com/plivo/plivo-php/releases/tag/v4.15.1) - 2020-11-17 - Fix resource not found exception when making sequential requests. diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 925a1e92..35819da6 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,11 +20,11 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 15; + const MINOR = 16; /** * @const int PHP helper library patch number */ - const PATCH = 1; + const PATCH = 0; /** * @return string */