Skip to content

Commit 8bfb4ba

Browse files
authored
Merge pull request #18 from sendinblue/feature_valid-swagger-spec-2-modifications
Valid swagger specification 2.0 implementation
2 parents cb6351e + 07a7191 commit 8bfb4ba

File tree

134 files changed

+751
-979
lines changed

Some content is hidden

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

134 files changed

+751
-979
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ Class | Method | HTTP request | Description
191191

192192
- [AddCredits](docs/Model/AddCredits.md)
193193
- [AddRemoveContactToList](docs/Model/AddRemoveContactToList.md)
194-
- [CreaUpdateFolder](docs/Model/CreaUpdateFolder.md)
195194
- [CreateAttribute](docs/Model/CreateAttribute.md)
196195
- [CreateAttributeEnumemaration](docs/Model/CreateAttributeEnumemaration.md)
197196
- [CreateChild](docs/Model/CreateChild.md)
@@ -209,6 +208,7 @@ Class | Method | HTTP request | Description
209208
- [CreateSmtpEmail](docs/Model/CreateSmtpEmail.md)
210209
- [CreateSmtpTemplate](docs/Model/CreateSmtpTemplate.md)
211210
- [CreateSmtpTemplateSender](docs/Model/CreateSmtpTemplateSender.md)
211+
- [CreateUpdateFolder](docs/Model/CreateUpdateFolder.md)
212212
- [CreateWebhook](docs/Model/CreateWebhook.md)
213213
- [CreatedProcessId](docs/Model/CreatedProcessId.md)
214214
- [DeleteHardbounces](docs/Model/DeleteHardbounces.md)

docs/Api/AttributesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
7373
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
7474

7575
$api_instance = new SendinBlue\Client\Api\AttributesApi();
76-
$attributeId = "attributeId_example"; // string | id of the attribute
76+
$attributeId = 789; // int | id of the attribute
7777

7878
try {
7979
$api_instance->deleteAttribute($attributeId);
@@ -87,7 +87,7 @@ try {
8787

8888
Name | Type | Description | Notes
8989
------------- | ------------- | ------------- | -------------
90-
**attributeId** | **string**| id of the attribute |
90+
**attributeId** | **int**| id of the attribute |
9191

9292
### Return type
9393

docs/Api/ContactsApi.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
4646
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
4747

4848
$api_instance = new SendinBlue\Client\Api\ContactsApi();
49-
$listId = "listId_example"; // string | Id of the list
49+
$listId = 789; // int | Id of the list
5050
$contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails addresses of the contacts
5151

5252
try {
@@ -62,7 +62,7 @@ try {
6262

6363
Name | Type | Description | Notes
6464
------------- | ------------- | ------------- | -------------
65-
**listId** | **string**| Id of the list |
65+
**listId** | **int**| Id of the list |
6666
**contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails addresses of the contacts |
6767

6868
### Return type
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
177177
[[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)
178178

179179
# **createFolder**
180-
> \SendinBlue\Client\Model\CreateModel createFolder($name)
180+
> \SendinBlue\Client\Model\CreateModel createFolder($createFolder)
181181
182182
Create a folder
183183

@@ -192,10 +192,10 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
192192
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
193193

194194
$api_instance = new SendinBlue\Client\Api\ContactsApi();
195-
$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder
195+
$createFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder
196196

197197
try {
198-
$result = $api_instance->createFolder($name);
198+
$result = $api_instance->createFolder($createFolder);
199199
print_r($result);
200200
} catch (Exception $e) {
201201
echo 'Exception when calling ContactsApi->createFolder: ', $e->getMessage(), PHP_EOL;
@@ -207,7 +207,7 @@ try {
207207

208208
Name | Type | Description | Notes
209209
------------- | ------------- | ------------- | -------------
210-
**name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder |
210+
**createFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder |
211211

212212
### Return type
213213

@@ -288,7 +288,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
288288
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
289289

290290
$api_instance = new SendinBlue\Client\Api\ContactsApi();
291-
$attributeId = "attributeId_example"; // string | id of the attribute
291+
$attributeId = 789; // int | id of the attribute
292292

293293
try {
294294
$api_instance->deleteAttribute($attributeId);
@@ -302,7 +302,7 @@ try {
302302

303303
Name | Type | Description | Notes
304304
------------- | ------------- | ------------- | -------------
305-
**attributeId** | **string**| id of the attribute |
305+
**attributeId** | **int**| id of the attribute |
306306

307307
### Return type
308308

@@ -335,7 +335,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
335335
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
336336

337337
$api_instance = new SendinBlue\Client\Api\ContactsApi();
338-
$folderId = "folderId_example"; // string | Id of the folder
338+
$folderId = 789; // int | Id of the folder
339339

340340
try {
341341
$api_instance->deleteFolder($folderId);
@@ -349,7 +349,7 @@ try {
349349

350350
Name | Type | Description | Notes
351351
------------- | ------------- | ------------- | -------------
352-
**folderId** | **string**| Id of the folder |
352+
**folderId** | **int**| Id of the folder |
353353

354354
### Return type
355355

@@ -382,7 +382,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
382382
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
383383

384384
$api_instance = new SendinBlue\Client\Api\ContactsApi();
385-
$listId = "listId_example"; // string | Id of the list
385+
$listId = 789; // int | Id of the list
386386

387387
try {
388388
$api_instance->deleteList($listId);
@@ -396,7 +396,7 @@ try {
396396

397397
Name | Type | Description | Notes
398398
------------- | ------------- | ------------- | -------------
399-
**listId** | **string**| Id of the list |
399+
**listId** | **int**| Id of the list |
400400

401401
### Return type
402402

@@ -619,8 +619,8 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
619619
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
620620

621621
$api_instance = new SendinBlue\Client\Api\ContactsApi();
622-
$listId = "listId_example"; // string | Id of the list
623-
$modifiedSince = "modifiedSince_example"; // string | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss)
622+
$listId = 789; // int | Id of the list
623+
$modifiedSince = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ)
624624
$limit = 50; // int | Number of documents per page
625625
$offset = 0; // int | Index of the first document of the page
626626

@@ -637,8 +637,8 @@ try {
637637

638638
Name | Type | Description | Notes
639639
------------- | ------------- | ------------- | -------------
640-
**listId** | **string**| Id of the list |
641-
**modifiedSince** | **string**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional]
640+
**listId** | **int**| Id of the list |
641+
**modifiedSince** | **\DateTime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
642642
**limit** | **int**| Number of documents per page | [optional] [default to 50]
643643
**offset** | **int**| Index of the first document of the page | [optional] [default to 0]
644644

@@ -673,7 +673,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
673673
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
674674

675675
$api_instance = new SendinBlue\Client\Api\ContactsApi();
676-
$folderId = "folderId_example"; // string | id of the folder
676+
$folderId = 789; // int | id of the folder
677677

678678
try {
679679
$result = $api_instance->getFolder($folderId);
@@ -688,7 +688,7 @@ try {
688688

689689
Name | Type | Description | Notes
690690
------------- | ------------- | ------------- | -------------
691-
**folderId** | **string**| id of the folder |
691+
**folderId** | **int**| id of the folder |
692692

693693
### Return type
694694

@@ -721,7 +721,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
721721
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
722722

723723
$api_instance = new SendinBlue\Client\Api\ContactsApi();
724-
$folderId = "folderId_example"; // string | Id of the folder
724+
$folderId = 789; // int | Id of the folder
725725
$limit = 10; // int | Number of documents per page
726726
$offset = 0; // int | Index of the first document of the page
727727

@@ -738,7 +738,7 @@ try {
738738

739739
Name | Type | Description | Notes
740740
------------- | ------------- | ------------- | -------------
741-
**folderId** | **string**| Id of the folder |
741+
**folderId** | **int**| Id of the folder |
742742
**limit** | **int**| Number of documents per page | [optional] [default to 10]
743743
**offset** | **int**| Index of the first document of the page | [optional] [default to 0]
744744

@@ -823,7 +823,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
823823
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
824824

825825
$api_instance = new SendinBlue\Client\Api\ContactsApi();
826-
$listId = "listId_example"; // string | Id of the list
826+
$listId = 789; // int | Id of the list
827827

828828
try {
829829
$result = $api_instance->getList($listId);
@@ -838,7 +838,7 @@ try {
838838

839839
Name | Type | Description | Notes
840840
------------- | ------------- | ------------- | -------------
841-
**listId** | **string**| Id of the list |
841+
**listId** | **int**| Id of the list |
842842

843843
### Return type
844844

@@ -971,7 +971,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
971971
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
972972

973973
$api_instance = new SendinBlue\Client\Api\ContactsApi();
974-
$listId = "listId_example"; // string | Id of the list
974+
$listId = 789; // int | Id of the list
975975
$contactEmails = new \SendinBlue\Client\Model\AddRemoveContactToList(); // \SendinBlue\Client\Model\AddRemoveContactToList | Emails adresses of the contact
976976

977977
try {
@@ -987,7 +987,7 @@ try {
987987

988988
Name | Type | Description | Notes
989989
------------- | ------------- | ------------- | -------------
990-
**listId** | **string**| Id of the list |
990+
**listId** | **int**| Id of the list |
991991
**contactEmails** | [**\SendinBlue\Client\Model\AddRemoveContactToList**](../Model/AddRemoveContactToList.md)| Emails adresses of the contact |
992992

993993
### Return type
@@ -1105,7 +1105,7 @@ void (empty response body)
11051105
[[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)
11061106

11071107
# **updateFolder**
1108-
> updateFolder($folderId, $name)
1108+
> updateFolder($folderId, $updateFolder)
11091109
11101110
Update a contact folder
11111111

@@ -1120,11 +1120,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
11201120
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
11211121

11221122
$api_instance = new SendinBlue\Client\Api\ContactsApi();
1123-
$folderId = "folderId_example"; // string | Id of the folder
1124-
$name = new \SendinBlue\Client\Model\CreaUpdateFolder(); // \SendinBlue\Client\Model\CreaUpdateFolder | Name of the folder
1123+
$folderId = 789; // int | Id of the folder
1124+
$updateFolder = new \SendinBlue\Client\Model\CreateUpdateFolder(); // \SendinBlue\Client\Model\CreateUpdateFolder | Name of the folder
11251125

11261126
try {
1127-
$api_instance->updateFolder($folderId, $name);
1127+
$api_instance->updateFolder($folderId, $updateFolder);
11281128
} catch (Exception $e) {
11291129
echo 'Exception when calling ContactsApi->updateFolder: ', $e->getMessage(), PHP_EOL;
11301130
}
@@ -1135,8 +1135,8 @@ try {
11351135

11361136
Name | Type | Description | Notes
11371137
------------- | ------------- | ------------- | -------------
1138-
**folderId** | **string**| Id of the folder |
1139-
**name** | [**\SendinBlue\Client\Model\CreaUpdateFolder**](../Model/CreaUpdateFolder.md)| Name of the folder |
1138+
**folderId** | **int**| Id of the folder |
1139+
**updateFolder** | [**\SendinBlue\Client\Model\CreateUpdateFolder**](../Model/CreateUpdateFolder.md)| Name of the folder |
11401140

11411141
### Return type
11421142

@@ -1169,7 +1169,7 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
11691169
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
11701170

11711171
$api_instance = new SendinBlue\Client\Api\ContactsApi();
1172-
$listId = "listId_example"; // string | Id of the list
1172+
$listId = 789; // int | Id of the list
11731173
$updateList = new \SendinBlue\Client\Model\UpdateList(); // \SendinBlue\Client\Model\UpdateList | Values to update a list
11741174

11751175
try {
@@ -1184,7 +1184,7 @@ try {
11841184

11851185
Name | Type | Description | Notes
11861186
------------- | ------------- | ------------- | -------------
1187-
**listId** | **string**| Id of the list |
1187+
**listId** | **int**| Id of the list |
11881188
**updateList** | [**\SendinBlue\Client\Model\UpdateList**](../Model/UpdateList.md)| Values to update a list |
11891189

11901190
### Return type

0 commit comments

Comments
 (0)