diff --git a/src/Api.php b/src/Api.php index 4a237ae..32a9d57 100644 --- a/src/Api.php +++ b/src/Api.php @@ -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; @@ -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 */