@@ -14,7 +14,7 @@ For more information, please visit [https://account.sendinblue.com/support](http
14
14
15
15
## Requirements
16
16
17
- PHP 5.4.0 and later
17
+ PHP 5.6 and later
18
18
19
19
## Installation & Usage
20
20
### Composer
@@ -42,7 +42,7 @@ Then run `composer install`
42
42
Download the files and include ` autoload.php ` :
43
43
44
44
``` php
45
- require_once('/path/to/APIv3-php-library/autoload.php');
45
+ require_once('/path/to/APIv3-php-library/vendor/ autoload.php');
46
46
```
47
47
48
48
## Tests
@@ -63,14 +63,19 @@ Please follow the [installation procedure](#installation--usage) and then run th
63
63
require_once(__DIR__ . '/vendor/autoload.php');
64
64
65
65
// 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');
67
67
// 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');
69
69
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
+ );
71
76
72
77
try {
73
- $result = $api_instance ->getAccount();
78
+ $result = $apiInstance ->getAccount();
74
79
print_r($result);
75
80
} catch (Exception $e) {
76
81
echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL;
@@ -249,7 +254,6 @@ Class | Method | HTTP request | Description
249
254
- [ GetEmailEventReportEvents] ( docs/Model/GetEmailEventReportEvents.md )
250
255
- [ GetExtendedCampaignOverviewSender] ( docs/Model/GetExtendedCampaignOverviewSender.md )
251
256
- [ GetExtendedCampaignStats] ( docs/Model/GetExtendedCampaignStats.md )
252
- - [ GetExtendedCampaignStatsLinksStats] ( docs/Model/GetExtendedCampaignStatsLinksStats.md )
253
257
- [ GetExtendedClientAddress] ( docs/Model/GetExtendedClientAddress.md )
254
258
- [ GetExtendedContactDetailsStatistics] ( docs/Model/GetExtendedContactDetailsStatistics.md )
255
259
- [ GetExtendedContactDetailsStatisticsClicked] ( docs/Model/GetExtendedContactDetailsStatisticsClicked.md )
0 commit comments