Skip to content

Commit 0b1d667

Browse files
authored
Merge pull request #12 from sendinblue/feature_sib-namespace
SendinBlue namespace used
2 parents 25bed95 + fd12685 commit 0b1d667

File tree

379 files changed

+3040
-3040
lines changed

Some content is hidden

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

379 files changed

+3040
-3040
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +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-
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
66+
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+
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
6969

70-
$api_instance = new Sendinblue\Client\Api\AccountApi();
70+
$api_instance = new SendinBlue\Client\Api\AccountApi();
7171

7272
try {
7373
$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 \Sendinblue\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 \Sendinblue\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 = 'Sendinblue\\Client\\';
30+
$prefix = 'SendinBlue\\Client\\';
3131

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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
"friendsofphp/php-cs-fixer": "~1.12"
3131
},
3232
"autoload": {
33-
"psr-4": { "Sendinblue\\Client\\" : "lib/" }
33+
"psr-4": { "SendinBlue\\Client\\" : "lib/" }
3434
},
3535
"autoload-dev": {
36-
"psr-4": { "Sendinblue\\Client\\" : "test/" }
36+
"psr-4": { "SendinBlue\\Client\\" : "test/" }
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-master": "1.1.x-dev"
40+
"dev-master": "2.0.x-dev"
4141
}
4242
}
4343
}

docs/Api/AccountApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sendinblue\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-
> \Sendinblue\Client\Model\GetAccount getAccount()
11+
> \SendinBlue\Client\Model\GetAccount getAccount()
1212
1313
Get your account informations, plans and credits details
1414

@@ -18,11 +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-
Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
21+
SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
2222
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
23-
// Sendinblue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
23+
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
2424

25-
$api_instance = new Sendinblue\Client\Api\AccountApi();
25+
$api_instance = new SendinBlue\Client\Api\AccountApi();
2626

2727
try {
2828
$result = $api_instance->getAccount();
@@ -38,7 +38,7 @@ This endpoint does not need any parameter.
3838

3939
### Return type
4040

41-
[**\Sendinblue\Client\Model\GetAccount**](../Model/GetAccount.md)
41+
[**\SendinBlue\Client\Model\GetAccount**](../Model/GetAccount.md)
4242

4343
### Authorization
4444

docs/Api/AttributesApi.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sendinblue\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-
> \Sendinblue\Client\Model\CreateModel createAttribute($createAttribute)
13+
> \SendinBlue\Client\Model\CreateModel createAttribute($createAttribute)
1414
1515
Creates contact attributes
1616

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

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

27-
$api_instance = new Sendinblue\Client\Api\AttributesApi();
28-
$createAttribute = new \Sendinblue\Client\Model\CreateAttribute(); // \Sendinblue\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
2929

3030
try {
3131
$result = $api_instance->createAttribute($createAttribute);
@@ -40,11 +40,11 @@ try {
4040

4141
Name | Type | Description | Notes
4242
------------- | ------------- | ------------- | -------------
43-
**createAttribute** | [**\Sendinblue\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 |
4444

4545
### Return type
4646

47-
[**\Sendinblue\Client\Model\CreateModel**](../Model/CreateModel.md)
47+
[**\SendinBlue\Client\Model\CreateModel**](../Model/CreateModel.md)
4848

4949
### Authorization
5050

@@ -68,11 +68,11 @@ Deletes an attribute
6868
require_once(__DIR__ . '/vendor/autoload.php');
6969

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

75-
$api_instance = new Sendinblue\Client\Api\AttributesApi();
75+
$api_instance = new SendinBlue\Client\Api\AttributesApi();
7676
$attributeId = "attributeId_example"; // string | id of the attribute
7777

7878
try {
@@ -105,7 +105,7 @@ void (empty response body)
105105
[[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)
106106

107107
# **getAttributes**
108-
> \Sendinblue\Client\Model\GetAttributes getAttributes()
108+
> \SendinBlue\Client\Model\GetAttributes getAttributes()
109109
110110
Lists all attributes
111111

@@ -115,11 +115,11 @@ Lists all attributes
115115
require_once(__DIR__ . '/vendor/autoload.php');
116116

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

122-
$api_instance = new Sendinblue\Client\Api\AttributesApi();
122+
$api_instance = new SendinBlue\Client\Api\AttributesApi();
123123

124124
try {
125125
$result = $api_instance->getAttributes();
@@ -135,7 +135,7 @@ This endpoint does not need any parameter.
135135

136136
### Return type
137137

138-
[**\Sendinblue\Client\Model\GetAttributes**](../Model/GetAttributes.md)
138+
[**\SendinBlue\Client\Model\GetAttributes**](../Model/GetAttributes.md)
139139

140140
### Authorization
141141

0 commit comments

Comments
 (0)