Skip to content

Commit 732b374

Browse files
authored
Merge pull request #10 from sendinblue/feature_package-name-updates
Package rename & namespace update
2 parents fdf3933 + b9df254 commit 732b374

File tree

402 files changed

+3361
-3113
lines changed

Some content is hidden

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

402 files changed

+3361
-3113
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi
3030
}
3131
],
3232
"require": {
33-
"sendinblue/sendinblue-apiv3": "*@dev"
33+
"sendinblue/api-v3-sdk": "*@dev"
3434
}
3535
}
3636
```
@@ -63,9 +63,11 @@ 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-
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
66+
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
67+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
68+
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
6769

68-
$api_instance = new Swagger\Client\Api\AccountApi();
70+
$api_instance = new Sendinblue\Client\Api\AccountApi();
6971

7072
try {
7173
$result = $api_instance->getAccount();

autoload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* An example of a project-specific implementation.
1616
*
1717
* 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
18+
* would cause the function to attempt to load the \Sendinblue\Client\Baz\Qux class
1919
* from /path/to/project/lib/Baz/Qux.php:
2020
*
21-
* new \Swagger\Client\Baz\Qux;
21+
* new \Sendinblue\Client\Baz\Qux;
2222
*
2323
* @param string $class The fully-qualified class name.
2424
*
@@ -27,7 +27,7 @@
2727
spl_autoload_register(function ($class) {
2828

2929
// project-specific namespace prefix
30-
$prefix = 'Swagger\\Client\\';
30+
$prefix = 'Sendinblue\\Client\\';
3131

3232
// base directory for the namespace prefix
3333
$base_dir = __DIR__ . '/lib/';

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sendinblue/sendinblue-apiv3",
2+
"name": "sendinblue/api-v3-sdk",
33
"description": "Official SendinBlue provided RESTFul API V3 php library",
44
"keywords": [
55
"sendinblue",
@@ -30,14 +30,14 @@
3030
"friendsofphp/php-cs-fixer": "~1.12"
3131
},
3232
"autoload": {
33-
"psr-4": { "Swagger\\Client\\" : "lib/" }
33+
"psr-4": { "Sendinblue\\Client\\" : "lib/" }
3434
},
3535
"autoload-dev": {
36-
"psr-4": { "Swagger\\Client\\" : "test/" }
36+
"psr-4": { "Sendinblue\\Client\\" : "test/" }
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-master": "1.0.x-dev"
40+
"dev-master": "1.1.x-dev"
4141
}
4242
}
4343
}

docs/Api/AccountApi.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Swagger\Client\AccountApi
1+
# Sendinblue\Client\AccountApi
22

33
All URIs are relative to *https://api.sendinblue.com/v3*
44

@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **getAccount**
11-
> \Swagger\Client\Model\GetAccount getAccount()
11+
> \Sendinblue\Client\Model\GetAccount getAccount()
1212
1313
Get your account informations, plans and credits details
1414

@@ -18,9 +18,11 @@ Get your account informations, plans and credits details
1818
require_once(__DIR__ . '/vendor/autoload.php');
1919

2020
// Configure API key authorization: api-key
21-
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
21+
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
22+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
23+
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
2224

23-
$api_instance = new Swagger\Client\Api\AccountApi();
25+
$api_instance = new Sendinblue\Client\Api\AccountApi();
2426

2527
try {
2628
$result = $api_instance->getAccount();
@@ -36,7 +38,7 @@ This endpoint does not need any parameter.
3638

3739
### Return type
3840

39-
[**\Swagger\Client\Model\GetAccount**](../Model/GetAccount.md)
41+
[**\Sendinblue\Client\Model\GetAccount**](../Model/GetAccount.md)
4042

4143
### Authorization
4244

docs/Api/AttributesApi.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Swagger\Client\AttributesApi
1+
# Sendinblue\Client\AttributesApi
22

33
All URIs are relative to *https://api.sendinblue.com/v3*
44

@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010

1111

1212
# **createAttribute**
13-
> \Swagger\Client\Model\CreateModel createAttribute($createAttribute)
13+
> \Sendinblue\Client\Model\CreateModel createAttribute($createAttribute)
1414
1515
Creates contact attributes
1616

@@ -20,10 +20,12 @@ Creates contact attributes
2020
require_once(__DIR__ . '/vendor/autoload.php');
2121

2222
// Configure API key authorization: api-key
23-
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
23+
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
24+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
25+
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
2426

25-
$api_instance = new Swagger\Client\Api\AttributesApi();
26-
$createAttribute = new \Swagger\Client\Model\CreateAttribute(); // \Swagger\Client\Model\CreateAttribute | Values to create an attribute
27+
$api_instance = new Sendinblue\Client\Api\AttributesApi();
28+
$createAttribute = new \Sendinblue\Client\Model\CreateAttribute(); // \Sendinblue\Client\Model\CreateAttribute | Values to create an attribute
2729

2830
try {
2931
$result = $api_instance->createAttribute($createAttribute);
@@ -38,11 +40,11 @@ try {
3840

3941
Name | Type | Description | Notes
4042
------------- | ------------- | ------------- | -------------
41-
**createAttribute** | [**\Swagger\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute |
43+
**createAttribute** | [**\Sendinblue\Client\Model\CreateAttribute**](../Model/CreateAttribute.md)| Values to create an attribute |
4244

4345
### Return type
4446

45-
[**\Swagger\Client\Model\CreateModel**](../Model/CreateModel.md)
47+
[**\Sendinblue\Client\Model\CreateModel**](../Model/CreateModel.md)
4648

4749
### Authorization
4850

@@ -66,9 +68,11 @@ Deletes an attribute
6668
require_once(__DIR__ . '/vendor/autoload.php');
6769

6870
// Configure API key authorization: api-key
69-
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
71+
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
72+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
73+
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
7074

71-
$api_instance = new Swagger\Client\Api\AttributesApi();
75+
$api_instance = new Sendinblue\Client\Api\AttributesApi();
7276
$attributeId = "attributeId_example"; // string | id of the attribute
7377

7478
try {
@@ -101,7 +105,7 @@ void (empty response body)
101105
[[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)
102106

103107
# **getAttributes**
104-
> \Swagger\Client\Model\GetAttributes getAttributes()
108+
> \Sendinblue\Client\Model\GetAttributes getAttributes()
105109
106110
Lists all attributes
107111

@@ -111,9 +115,11 @@ Lists all attributes
111115
require_once(__DIR__ . '/vendor/autoload.php');
112116

113117
// Configure API key authorization: api-key
114-
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
118+
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
119+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
120+
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
115121

116-
$api_instance = new Swagger\Client\Api\AttributesApi();
122+
$api_instance = new Sendinblue\Client\Api\AttributesApi();
117123

118124
try {
119125
$result = $api_instance->getAttributes();
@@ -129,7 +135,7 @@ This endpoint does not need any parameter.
129135

130136
### Return type
131137

132-
[**\Swagger\Client\Model\GetAttributes**](../Model/GetAttributes.md)
138+
[**\Sendinblue\Client\Model\GetAttributes**](../Model/GetAttributes.md)
133139

134140
### Authorization
135141

0 commit comments

Comments
 (0)