Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Talita committed Dec 4, 2015
2 parents 6f3c092 + f234837 commit 637b293
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/Gerencianet/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
],
]);
}
Expand Down

0 comments on commit 637b293

Please # to comment.