You are here

public function SendinblueApiV3::__construct in SendinBlue 7.2

File

includes/Api/SendinblueApiV3.php, line 105

Class

SendinblueApiV3
Sendinblue REST client.

Code

public function __construct() {
  $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->sIBHttpClient = new SendinblueHttpClient();
}