Skip to content

Commit

Permalink
Mixed spec updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ekta-slit committed May 22, 2018
1 parent 69c262c commit 5f5b3b4
Show file tree
Hide file tree
Showing 409 changed files with 42,221 additions and 11,443 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1 +1,2 @@
.DS_Store
.DS_Store
vendor
18 changes: 0 additions & 18 deletions .php_cs

This file was deleted.

2 changes: 0 additions & 2 deletions .travis.yml
@@ -1,8 +1,6 @@
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
Expand Down
18 changes: 11 additions & 7 deletions README.md
Expand Up @@ -14,7 +14,7 @@ For more information, please visit [https://account.sendinblue.com/support](http

## Requirements

PHP 5.4.0 and later
PHP 5.6 and later

## Installation & Usage
### Composer
Expand Down Expand Up @@ -42,7 +42,7 @@ Then run `composer install`
Download the files and include `autoload.php`:

```php
require_once('/path/to/APIv3-php-library/autoload.php');
require_once('/path/to/APIv3-php-library/vendor/autoload.php');
```

## Tests
Expand All @@ -63,14 +63,19 @@ Please follow the [installation procedure](#installation--usage) and then run th
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api-key
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
$config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
// $config = SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');

$api_instance = new SendinBlue\Client\Api\AccountApi();
$apiInstance = new SendinBlue\Client\Api\AccountApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);

try {
$result = $api_instance->getAccount();
$result = $apiInstance->getAccount();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL;
Expand Down Expand Up @@ -249,7 +254,6 @@ Class | Method | HTTP request | Description
- [GetEmailEventReportEvents](docs/Model/GetEmailEventReportEvents.md)
- [GetExtendedCampaignOverviewSender](docs/Model/GetExtendedCampaignOverviewSender.md)
- [GetExtendedCampaignStats](docs/Model/GetExtendedCampaignStats.md)
- [GetExtendedCampaignStatsLinksStats](docs/Model/GetExtendedCampaignStatsLinksStats.md)
- [GetExtendedClientAddress](docs/Model/GetExtendedClientAddress.md)
- [GetExtendedContactDetailsStatistics](docs/Model/GetExtendedContactDetailsStatistics.md)
- [GetExtendedContactDetailsStatisticsClicked](docs/Model/GetExtendedContactDetailsStatisticsClicked.md)
Expand Down
54 changes: 0 additions & 54 deletions autoload.php

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Expand Up @@ -18,14 +18,14 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.6",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*"
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
"satooshi/php-coveralls": "~1.0",
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~1.12"
},
Expand All @@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "5.0.x-dev"
"dev-master": "6.0.x-dev"
}
}
}

0 comments on commit 5f5b3b4

Please sign in to comment.