public function SendinblueApiV3::__construct in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Api/SendinblueApiV3.php \Drupal\sendinblue\Tools\Api\SendinblueApiV3::__construct()
SendinblueMailin constructor.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: LoggerChannelFactory.
\Drupal\sendinblue\Tools\Http\SendinblueHttpClient $sIBHttpClient: SendinblueHttpClient.
File
- src/
Tools/ Api/ SendinblueApiV3.php, line 135
Class
- SendinblueApiV3
- Sendinblue REST client.
Namespace
Drupal\sendinblue\Tools\ApiCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, SendinblueHttpClient $sIBHttpClient) {
$sibClientConfiguration = Configuration::getDefaultConfiguration();
$this->sibClientConfiguration = $sibClientConfiguration
->setApiKey("api-key", $this->apiKey);
$this->sibAccountApi = new AccountApi(NULL, $this->sibClientConfiguration);
$this->sibEmailCampaignsApi = new EmailCampaignsApi(NULL, $this->sibClientConfiguration);
$this->sibListsApi = new ListsApi(NULL, $this->sibClientConfiguration);
$this->sibContactsApi = new ContactsApi(NULL, $this->sibClientConfiguration);
$this->sibAttributesApi = new AttributesApi(NULL, $this->sibClientConfiguration);
$this->sibSendersApi = new SendersApi(NULL, $this->sibClientConfiguration);
$this->sibTransactionalEmailsApi = new TransactionalEmailsApi(NULL, $this->sibClientConfiguration);
$this->sibResellerApi = new ResellerApi(NULL, $this->sibClientConfiguration);
$this->loggerFactory = $logger_factory;
$this->sIBHttpClient = $sIBHttpClient;
}