Skip to content

Commit

Permalink
Merge pull request #150 from Adadov/master
Browse files Browse the repository at this point in the history
Add setConsumerKey function
  • Loading branch information
amstuta authored Jun 26, 2024
2 parents 741efe9 + 43297a7 commit f417038
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ protected function rawCall($method, $path, $content = null, $is_authenticated =
*
* @throws \JsonException
*/
private function decodeResponse(Response $response)
private function decodeResponse(ResponseInterface $response)
{
if ($response->getStatusCode() === 204 || $response->getBody()->getSize() === 0) {
return null;
Expand Down Expand Up @@ -419,6 +419,14 @@ public function getConsumerKey(): ?string
return $this->consumer_key;
}

/**
* Get the current consumer key
*/
public function setConsumerKey($consumer_key): void
{
$this->consumer_key = $consumer_key;
}

/**
* Return instance of http client
*/
Expand Down

0 comments on commit f417038

Please sign in to comment.