You are here

public function SendinblueApiV2::setApiKey in SendinBlue 8

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

Set the SendinBlue APIKEY.

Parameters

string|null $apiKey: SendInBlue Apikey.

Overrides SendInBlueApiInterface::setApiKey

File

src/Tools/Api/SendinblueApiV2.php, line 74

Class

SendinblueApiV2
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Api

Code

public function setApiKey($apiKey) {
  $this->apiKey = $apiKey;
  $this->sIBHttpClient
    ->setApiKey($this->apiKey);
}