Skip to content

Commit

Permalink
Add function setConsumerKey
Browse files Browse the repository at this point in the history
It allows to switch between consumer keys keeping the same object

Signed-off-by: David Olivier <[email protected]>
  • Loading branch information
Adadov committed Jun 17, 2024
1 parent a3a7bb2 commit 43297a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Api.php
Original file line number Diff line number Diff line change
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 43297a7

Please sign in to comment.