diff --git a/composer.json b/composer.json index 782317d..9f70d3f 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,6 @@ "php": ">=5.5.9", "ext-curl": "*" }, - "version": "1.0.10", + "version": "1.0.11", "minimum-stability": "dev" } diff --git a/src/Client.php b/src/Client.php index 0008e4c..1ad0eba 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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"; @@ -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(); @@ -132,4 +133,4 @@ public function request($path, $params = null, $method = 'POST', $fullPath = fal break; } } -} \ No newline at end of file +}