From 05c5989c6950b53c68d711b87c57e1f0c66b8af7 Mon Sep 17 00:00:00 2001 From: Thomaz Feitoza Date: Tue, 1 Dec 2015 13:37:23 -0200 Subject: [PATCH 1/2] Add sdk header --- src/Gerencianet/Request.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gerencianet/Request.php b/src/Gerencianet/Request.php index f13ad37..a9f04dc 100644 --- a/src/Gerencianet/Request.php +++ b/src/Gerencianet/Request.php @@ -20,11 +20,13 @@ class Request public function __construct(array $options = null) { $this->config = Config::options($options); + $composerData = json_decode(file_get_contents(__DIR__.'/../../composer.json'), true); $this->client = new Client([ 'debug' => $this->config['debug'], 'base_uri' => $this->config['baseUri'], 'headers' => [ 'Content-Type' => 'application/json', + 'api-sdk' => 'php-' . $composerData['version'] ], ]); } From f234837ece10b481c155ca5ecfc8480ee53fe87b Mon Sep 17 00:00:00 2001 From: Talita Date: Fri, 4 Dec 2015 10:49:16 -0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c0e7e9..a7bcba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.0.2 + +- Added: new endpoint (charge history) +- Added: custom header +- Updated: docs + # 1.0.1 - Added: new endpoint (resend billet) diff --git a/composer.json b/composer.json index 656fc77..91783dd 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "gerencianet/gerencianet-sdk-php", "description": "GN API SDK PHP", - "version": "1.0.1", + "version": "1.0.2", "require": { "guzzlehttp/guzzle": "6.0.2", "php": ">=5.5.0",