Skip to content

Commit 82231a0

Browse files
authored
Merge pull request #42 from sendinblue/feature_bug-fix-updates
Mixed spec updates
2 parents 69c262c + 5f5b3b4 commit 82231a0

File tree

409 files changed

+42221
-11443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+42221
-11443
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.DS_Store
1+
.DS_Store
2+
vendor

.php_cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
language: php
22
sudo: false
33
php:
4-
- 5.4
5-
- 5.5
64
- 5.6
75
- 7.0
86
- hhvm

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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.6 and later
1818

1919
## Installation & Usage
2020
### Composer
@@ -42,7 +42,7 @@ Then run `composer install`
4242
Download 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
6363
require_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

7277
try {
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)

autoload.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
],
2020
"require": {
21-
"php": ">=5.4",
21+
"php": ">=5.6",
2222
"ext-curl": "*",
2323
"ext-json": "*",
24-
"ext-mbstring": "*"
24+
"ext-mbstring": "*",
25+
"guzzlehttp/guzzle": "^6.2"
2526
},
2627
"require-dev": {
27-
"phpunit/phpunit": "~4.8",
28-
"satooshi/php-coveralls": "~1.0",
28+
"phpunit/phpunit": "^4.8",
2929
"squizlabs/php_codesniffer": "~2.6",
3030
"friendsofphp/php-cs-fixer": "~1.12"
3131
},
@@ -37,7 +37,7 @@
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-master": "5.0.x-dev"
40+
"dev-master": "6.0.x-dev"
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)