Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
barisesen committed Jun 3, 2018
2 parents cc2ac95 + 1a7b41d commit a8a8340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"php": ">=5.5.9",
"ext-curl": "*"
},
"version": "1.0.10",
"version": "1.0.11",
"minimum-stability": "dev"
}
5 changes: 3 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function authorize()
}

if (isset($resp["access_token"])) {
$file = './token.ini';
$file = 'token.ini';
$token = "";
foreach ($resp as $key => $value) {
$token .= $key."=".$value."\n";
Expand Down Expand Up @@ -70,6 +70,7 @@ public function request($path, $params = null, $method = 'POST', $fullPath = fal
{
$headers = [];
$headers[] = 'Accept: application/json';
$headers[] = 'Content-Type: application/json';
$headers[] = 'Authorization: Bearer ' . $this->access_token;

$ch = curl_init();
Expand Down Expand Up @@ -132,4 +133,4 @@ public function request($path, $params = null, $method = 'POST', $fullPath = fal
break;
}
}
}
}

0 comments on commit a8a8340

Please sign in to comment.