You are here

public function SendinblueApiV3::setApiKey in SendinBlue 7.2

Set the SendinBlue APIKEY.

Parameters

string|null $apiKey: SendInBlue Apikey.

Overrides SendInBlueApiInterface::setApiKey

File

includes/Api/SendinblueApiV3.php, line 124

Class

SendinblueApiV3
Sendinblue REST client.

Code

public function setApiKey($apiKey) {
  $this->apiKey = $apiKey;
  $this->sibClientConfiguration
    ->setApiKey("api-key", $this->apiKey);
}