Skip to content

Commit ec1aab5

Browse files
committed
Initial release of SendinBlue API V3 Php Package
1 parent 2ffd4c4 commit ec1aab5

File tree

753 files changed

+130330
-1
lines changed

Some content is hidden

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

753 files changed

+130330
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

.php_cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return Symfony\CS\Config::create()
4+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
5+
->setUsingCache(true)
6+
->fixers(
7+
[
8+
'ordered_use',
9+
'phpdoc_order',
10+
'short_array_syntax',
11+
'strict',
12+
'strict_param'
13+
]
14+
)
15+
->finder(
16+
Symfony\CS\Finder\DefaultFinder::create()
17+
->in(__DIR__)
18+
);

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.2.3

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
before_install: "composer install"
10+
script: "vendor/bin/phpunit"

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 SendinBlue
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 441 additions & 1 deletion
Large diffs are not rendered by default.

autoload.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
/**
4+
* SendinBlue API
5+
*
6+
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
7+
*
8+
* OpenAPI spec version: 3.0.0
9+
* Contact: [email protected]
10+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
*
12+
*/
13+
14+
/**
15+
* An example of a project-specific implementation.
16+
*
17+
* After registering this autoload function with SPL, the following line
18+
* would cause the function to attempt to load the \Swagger\Client\Baz\Qux class
19+
* from /path/to/project/lib/Baz/Qux.php:
20+
*
21+
* new \Swagger\Client\Baz\Qux;
22+
*
23+
* @param string $class The fully-qualified class name.
24+
*
25+
* @return void
26+
*/
27+
spl_autoload_register(function ($class) {
28+
29+
// project-specific namespace prefix
30+
$prefix = 'Swagger\\Client\\';
31+
32+
// base directory for the namespace prefix
33+
$base_dir = __DIR__ . '/lib/';
34+
35+
// does the class use the namespace prefix?
36+
$len = strlen($prefix);
37+
if (strncmp($prefix, $class, $len) !== 0) {
38+
// no, move to the next registered autoloader
39+
return;
40+
}
41+
42+
// get the relative class name
43+
$relative_class = substr($class, $len);
44+
45+
// replace the namespace prefix with the base directory, replace namespace
46+
// separators with directory separators in the relative class name, append
47+
// with .php
48+
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
49+
50+
// if the file exists, require it
51+
if (file_exists($file)) {
52+
require $file;
53+
}
54+
});

composer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "sendinblue-apiv3",
3+
"description": "Official SendinBlue provided RESTFul API V3 php library",
4+
"keywords": [
5+
"sendinblue",
6+
"swagger",
7+
"php",
8+
"sdk",
9+
"api"
10+
],
11+
"homepage": "https://github.com/sendinblue/APIv3-php-library",
12+
"license": "MIT",
13+
"authors": [
14+
{
15+
"name": "SendinBlue Developers",
16+
"email": "[email protected]",
17+
"homepage": "https://www.sendinblue.com/"
18+
}
19+
],
20+
"require": {
21+
"php": ">=5.4",
22+
"ext-curl": "*",
23+
"ext-json": "*",
24+
"ext-mbstring": "*"
25+
},
26+
"require-dev": {
27+
"phpunit/phpunit": "~4.8",
28+
"satooshi/php-coveralls": "~1.0",
29+
"squizlabs/php_codesniffer": "~2.6",
30+
"friendsofphp/php-cs-fixer": "~1.12"
31+
},
32+
"autoload": {
33+
"psr-4": { "Swagger\\Client\\" : "lib/" }
34+
},
35+
"autoload-dev": {
36+
"psr-4": { "Swagger\\Client\\" : "test/" }
37+
}
38+
}

docs/Api/AccountApi.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Swagger\Client\AccountApi
2+
3+
All URIs are relative to *https://api.sendinblue.com/v3*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**getAccount**](AccountApi.md#getAccount) | **GET** /account | Get your account informations, plans and credits details
8+
9+
10+
# **getAccount**
11+
> \Swagger\Client\Model\InlineResponse200 getAccount()
12+
13+
Get your account informations, plans and credits details
14+
15+
### Example
16+
```php
17+
<?php
18+
require_once(__DIR__ . '/vendor/autoload.php');
19+
20+
// Configure API key authorization: api-key
21+
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
22+
23+
$api_instance = new Swagger\Client\Api\AccountApi();
24+
25+
try {
26+
$result = $api_instance->getAccount();
27+
print_r($result);
28+
} catch (Exception $e) {
29+
echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL;
30+
}
31+
?>
32+
```
33+
34+
### Parameters
35+
This endpoint does not need any parameter.
36+
37+
### Return type
38+
39+
[**\Swagger\Client\Model\InlineResponse200**](../Model/InlineResponse200.md)
40+
41+
### Authorization
42+
43+
[api-key](../../README.md#api-key)
44+
45+
### HTTP request headers
46+
47+
- **Content-Type**: application/json
48+
- **Accept**: application/json
49+
50+
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
51+

0 commit comments

Comments
 (0)