You are here

public function SendinblueApiV3::setApiKey in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Api/SendinblueApiV3.php \Drupal\sendinblue\Tools\Api\SendinblueApiV3::setApiKey()

Set the SendinBlue APIKEY.

Parameters

string|null $apiKey: SendInBlue Apikey.

Overrides SendInBlueApiInterface::setApiKey

File

src/Tools/Api/SendinblueApiV3.php, line 158

Class

SendinblueApiV3
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Api

Code

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