Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guzzle http version upgrade #191

Merged
merged 13 commits into from
Oct 13, 2020
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v4.13.0](https://github.com/plivo/plivo-php/releases/tag/v4.13.0) - 2020-10-13
- Add support to Guzzle HTTP client 7.
- Fix "issue-168", _Undefined index: from_number_ error - Retrieve Message Details API with Invalid message UUID.

## [v4.12.0](https://github.com/plivo/plivo-php/releases/tag/v4.12.0) - 2020-09-21
- Add support for Lookup API.

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

The Plivo PHP SDK makes it simpler to integrate communications into your PHP applications using the Plivo REST API. Using the SDK, you will be able to make voice calls, send SMS and generate Plivo XML to control your call flows.

**Supported PHP Versions**: This SDK works with PHP 7.1.0+.

## Installation

### To install Composer
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"source": "https://github.com/plivo/plivo-php"
},
"require": {
"guzzlehttp/guzzle": "^6.0",
"php": ">=7.1.0",
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"firebase/php-jwt": "^5.2"
},
"autoload": {
Expand Down
5 changes: 1 addition & 4 deletions src/Plivo/Resources/Message/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ public function get($messageUuid)
$this->uri . $messageUuid .'/',
[]
);

return new Message(
$this->client, $response->getContent(),
$this->pathParams['authId'], $this->uri);
return json_encode($response->getContent(), JSON_FORCE_OBJECT);
}


Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Version
/**
* @const int PHP helper library minor version number
*/
const MINOR = 12;
const MINOR = 13;
/**
* @const int PHP helper library patch number
*/
Expand Down