Skip to content

Commit df491df

Browse files
committed
Added API key to request headers
1 parent fda38e1 commit df491df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/api/Api.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ protected function patch($path, array $parameters = [], $body = [])
8686

8787
$body = json_encode($body);
8888

89-
$response = $this->client->http()->patch($path, [], $body);
89+
$response = $this->client->http()->patch($path, [
90+
'body' => $body,
91+
'headers' => [
92+
'api_key' => $this->client->getApiKey()
93+
]
94+
]);
9095

9196
return $this->parseResponse($response);
9297
}

0 commit comments

Comments
 (0)