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", 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'] ], ]); }