You are here

public function SendinblueApiV2::__construct in SendinBlue 8

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

SendinblueApiV2 constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerFactory: LoggerChannelFactory.

\Drupal\sendinblue\Tools\Http\SendinblueHttpClient $sIBHttpClient: ClientInterface.

File

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

Class

SendinblueApiV2
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Api

Code

public function __construct(LoggerChannelFactoryInterface $loggerFactory, SendinblueHttpClient $sIBHttpClient) {
  $this->loggerFactory = $loggerFactory;
  $this->sIBHttpClient = $sIBHttpClient;
  $this->sIBHttpClient
    ->setApiKey($this->apiKey);
  $this->sIBHttpClient
    ->setBaseUrl(self::API_URL);
}