@@ -14,7 +14,7 @@ For more information, please visit [https://account.sendinblue.com/support](http
1414
1515## Requirements
1616
17- PHP 5.4.0 and later
17+ PHP 5.5 and later
1818
1919## Installation & Usage
2020### Composer
@@ -42,7 +42,7 @@ Then run `composer install`
4242Download the files and include ` autoload.php ` :
4343
4444``` php
45- require_once('/path/to/APIv3-php-library/autoload.php');
45+ require_once('/path/to/APIv3-php-library/vendor/ autoload.php');
4646```
4747
4848## Tests
@@ -63,14 +63,19 @@ Please follow the [installation procedure](#installation--usage) and then run th
6363require_once(__DIR__ . '/vendor/autoload.php');
6464
6565// Configure API key authorization: api-key
66- SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
66+ $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
6767// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
68- // SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
68+ // $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
6969
70- $api_instance = new SendinBlue\Client\Api\AccountApi();
70+ $apiInstance = new SendinBlue\Client\Api\AccountApi(
71+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
72+ // This is optional, `GuzzleHttp\Client` will be used as default.
73+ new GuzzleHttp\Client(),
74+ $config
75+ );
7176
7277try {
73- $result = $api_instance ->getAccount();
78+ $result = $apiInstance ->getAccount();
7479 print_r($result);
7580} catch (Exception $e) {
7681 echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL;
@@ -249,7 +254,6 @@ Class | Method | HTTP request | Description
249254 - [ GetEmailEventReportEvents] ( docs/Model/GetEmailEventReportEvents.md )
250255 - [ GetExtendedCampaignOverviewSender] ( docs/Model/GetExtendedCampaignOverviewSender.md )
251256 - [ GetExtendedCampaignStats] ( docs/Model/GetExtendedCampaignStats.md )
252- - [ GetExtendedCampaignStatsLinksStats] ( docs/Model/GetExtendedCampaignStatsLinksStats.md )
253257 - [ GetExtendedClientAddress] ( docs/Model/GetExtendedClientAddress.md )
254258 - [ GetExtendedContactDetailsStatistics] ( docs/Model/GetExtendedContactDetailsStatistics.md )
255259 - [ GetExtendedContactDetailsStatisticsClicked] ( docs/Model/GetExtendedContactDetailsStatisticsClicked.md )
0 commit comments