Skip to content

Commit 4886771

Browse files
authored
Merge pull request #37 from sendinblue/feature_fix-stats-emailCamps
Type object fix in GET call
2 parents 95d935c + 5b11f72 commit 4886771

34 files changed

+1277
-398
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ Class | Method | HTTP request | Description
142142
*ListsApi* | [**updateList**](docs/Api/ListsApi.md#updatelist) | **PUT** /contacts/lists/{listId} | Update a list
143143
*ProcessApi* | [**getProcess**](docs/Api/ProcessApi.md#getprocess) | **GET** /processes/{processId} | Return the informations for a process
144144
*ProcessApi* | [**getProcesses**](docs/Api/ProcessApi.md#getprocesses) | **GET** /processes | Return all the processes for your account
145-
*ResellerApi* | [**addCredits**](docs/Api/ResellerApi.md#addcredits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account
146-
*ResellerApi* | [**associateIpToChild**](docs/Api/ResellerApi.md#associateiptochild) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child
145+
*ResellerApi* | [**addCredits**](docs/Api/ResellerApi.md#addcredits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
146+
*ResellerApi* | [**associateIpToChild**](docs/Api/ResellerApi.md#associateiptochild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
147147
*ResellerApi* | [**createResellerChild**](docs/Api/ResellerApi.md#createresellerchild) | **POST** /reseller/children | Creates a reseller child
148-
*ResellerApi* | [**deleteResellerChild**](docs/Api/ResellerApi.md#deleteresellerchild) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied
149-
*ResellerApi* | [**dissociateIpFromChild**](docs/Api/ResellerApi.md#dissociateipfromchild) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child
150-
*ResellerApi* | [**getChildInfo**](docs/Api/ResellerApi.md#getchildinfo) | **GET** /reseller/children/{childId} | Gets the info about a specific child account
148+
*ResellerApi* | [**deleteResellerChild**](docs/Api/ResellerApi.md#deleteresellerchild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
149+
*ResellerApi* | [**dissociateIpFromChild**](docs/Api/ResellerApi.md#dissociateipfromchild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
150+
*ResellerApi* | [**getChildInfo**](docs/Api/ResellerApi.md#getchildinfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
151151
*ResellerApi* | [**getResellerChilds**](docs/Api/ResellerApi.md#getresellerchilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
152-
*ResellerApi* | [**removeCredits**](docs/Api/ResellerApi.md#removecredits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account
153-
*ResellerApi* | [**updateResellerChild**](docs/Api/ResellerApi.md#updateresellerchild) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied
152+
*ResellerApi* | [**removeCredits**](docs/Api/ResellerApi.md#removecredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
153+
*ResellerApi* | [**updateResellerChild**](docs/Api/ResellerApi.md#updateresellerchild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
154154
*SMSCampaignsApi* | [**createSmsCampaign**](docs/Api/SMSCampaignsApi.md#createsmscampaign) | **POST** /smsCampaigns | Creates an SMS campaign
155155
*SMSCampaignsApi* | [**deleteSmsCampaign**](docs/Api/SMSCampaignsApi.md#deletesmscampaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign
156156
*SMSCampaignsApi* | [**getSmsCampaign**](docs/Api/SMSCampaignsApi.md#getsmscampaign) | **GET** /smsCampaigns/{campaignId} | Get an SMS campaign
@@ -203,6 +203,7 @@ Class | Method | HTTP request | Description
203203
- [CreateEmailCampaignSender](docs/Model/CreateEmailCampaignSender.md)
204204
- [CreateList](docs/Model/CreateList.md)
205205
- [CreateModel](docs/Model/CreateModel.md)
206+
- [CreateReseller](docs/Model/CreateReseller.md)
206207
- [CreateSender](docs/Model/CreateSender.md)
207208
- [CreateSenderIps](docs/Model/CreateSenderIps.md)
208209
- [CreateSenderModel](docs/Model/CreateSenderModel.md)
@@ -229,8 +230,9 @@ Class | Method | HTTP request | Description
229230
- [GetCampaignRecipients](docs/Model/GetCampaignRecipients.md)
230231
- [GetCampaignStats](docs/Model/GetCampaignStats.md)
231232
- [GetChildInfoApiKeys](docs/Model/GetChildInfoApiKeys.md)
233+
- [GetChildInfoApiKeysV2](docs/Model/GetChildInfoApiKeysV2.md)
234+
- [GetChildInfoApiKeysV3](docs/Model/GetChildInfoApiKeysV3.md)
232235
- [GetChildInfoCredits](docs/Model/GetChildInfoCredits.md)
233-
- [GetChildInfoIps](docs/Model/GetChildInfoIps.md)
234236
- [GetChildInfoStatistics](docs/Model/GetChildInfoStatistics.md)
235237
- [GetChildrenList](docs/Model/GetChildrenList.md)
236238
- [GetClient](docs/Model/GetClient.md)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"extra": {
3939
"branch-alias": {
40-
"dev-master": "4.0.x-dev"
40+
"dev-master": "5.0.x-dev"
4141
}
4242
}
4343
}

docs/Api/ResellerApi.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ All URIs are relative to *https://api.sendinblue.com/v3*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**addCredits**](ResellerApi.md#addCredits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account
8-
[**associateIpToChild**](ResellerApi.md#associateIpToChild) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child
7+
[**addCredits**](ResellerApi.md#addCredits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
8+
[**associateIpToChild**](ResellerApi.md#associateIpToChild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
99
[**createResellerChild**](ResellerApi.md#createResellerChild) | **POST** /reseller/children | Creates a reseller child
10-
[**deleteResellerChild**](ResellerApi.md#deleteResellerChild) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied
11-
[**dissociateIpFromChild**](ResellerApi.md#dissociateIpFromChild) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child
12-
[**getChildInfo**](ResellerApi.md#getChildInfo) | **GET** /reseller/children/{childId} | Gets the info about a specific child account
10+
[**deleteResellerChild**](ResellerApi.md#deleteResellerChild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
11+
[**dissociateIpFromChild**](ResellerApi.md#dissociateIpFromChild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
12+
[**getChildInfo**](ResellerApi.md#getChildInfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
1313
[**getResellerChilds**](ResellerApi.md#getResellerChilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
14-
[**removeCredits**](ResellerApi.md#removeCredits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account
15-
[**updateResellerChild**](ResellerApi.md#updateResellerChild) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied
14+
[**removeCredits**](ResellerApi.md#removeCredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
15+
[**updateResellerChild**](ResellerApi.md#updateResellerChild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
1616

1717

1818
# **addCredits**
19-
> \SendinBlue\Client\Model\RemainingCreditModel addCredits($childId, $addCredits)
19+
> \SendinBlue\Client\Model\RemainingCreditModel addCredits($childAuthKey, $addCredits)
2020
2121
Add Email and/or SMS credits to a specific child account
2222

@@ -31,11 +31,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
3131
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
3232

3333
$api_instance = new SendinBlue\Client\Api\ResellerApi();
34-
$childId = 789; // int | id of reseller's child
34+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
3535
$addCredits = new \SendinBlue\Client\Model\AddCredits(); // \SendinBlue\Client\Model\AddCredits | Values to post to add credit to a specific child account
3636

3737
try {
38-
$result = $api_instance->addCredits($childId, $addCredits);
38+
$result = $api_instance->addCredits($childAuthKey, $addCredits);
3939
print_r($result);
4040
} catch (Exception $e) {
4141
echo 'Exception when calling ResellerApi->addCredits: ', $e->getMessage(), PHP_EOL;
@@ -47,7 +47,7 @@ try {
4747

4848
Name | Type | Description | Notes
4949
------------- | ------------- | ------------- | -------------
50-
**childId** | **int**| id of reseller's child |
50+
**childAuthKey** | **string**| auth key of reseller's child |
5151
**addCredits** | [**\SendinBlue\Client\Model\AddCredits**](../Model/AddCredits.md)| Values to post to add credit to a specific child account |
5252

5353
### Return type
@@ -66,7 +66,7 @@ Name | Type | Description | Notes
6666
[[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)
6767

6868
# **associateIpToChild**
69-
> associateIpToChild($childId, $ipId)
69+
> associateIpToChild($childAuthKey, $ip)
7070
7171
Associate a dedicated IP to the child
7272

@@ -81,11 +81,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
8181
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
8282

8383
$api_instance = new SendinBlue\Client\Api\ResellerApi();
84-
$childId = 789; // int | id of reseller's child
85-
$ipId = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP's id
84+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
85+
$ip = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP to associate
8686

8787
try {
88-
$api_instance->associateIpToChild($childId, $ipId);
88+
$api_instance->associateIpToChild($childAuthKey, $ip);
8989
} catch (Exception $e) {
9090
echo 'Exception when calling ResellerApi->associateIpToChild: ', $e->getMessage(), PHP_EOL;
9191
}
@@ -96,8 +96,8 @@ try {
9696

9797
Name | Type | Description | Notes
9898
------------- | ------------- | ------------- | -------------
99-
**childId** | **int**| id of reseller's child |
100-
**ipId** | [**\SendinBlue\Client\Model\ManageIp**](../Model/ManageIp.md)| IP's id |
99+
**childAuthKey** | **string**| auth key of reseller's child |
100+
**ip** | [**\SendinBlue\Client\Model\ManageIp**](../Model/ManageIp.md)| IP to associate |
101101

102102
### Return type
103103

@@ -115,7 +115,7 @@ void (empty response body)
115115
[[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)
116116

117117
# **createResellerChild**
118-
> \SendinBlue\Client\Model\CreateModel createResellerChild($resellerChild)
118+
> \SendinBlue\Client\Model\CreateReseller createResellerChild($resellerChild)
119119
120120
Creates a reseller child
121121

@@ -149,7 +149,7 @@ Name | Type | Description | Notes
149149

150150
### Return type
151151

152-
[**\SendinBlue\Client\Model\CreateModel**](../Model/CreateModel.md)
152+
[**\SendinBlue\Client\Model\CreateReseller**](../Model/CreateReseller.md)
153153

154154
### Authorization
155155

@@ -163,9 +163,9 @@ Name | Type | Description | Notes
163163
[[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)
164164

165165
# **deleteResellerChild**
166-
> deleteResellerChild($childId)
166+
> deleteResellerChild($childAuthKey)
167167
168-
Deletes a single reseller child based on the childId supplied
168+
Deletes a single reseller child based on the childAuthKey supplied
169169

170170
### Example
171171
```php
@@ -178,10 +178,10 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
178178
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
179179

180180
$api_instance = new SendinBlue\Client\Api\ResellerApi();
181-
$childId = 789; // int | id of reseller's child
181+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
182182

183183
try {
184-
$api_instance->deleteResellerChild($childId);
184+
$api_instance->deleteResellerChild($childAuthKey);
185185
} catch (Exception $e) {
186186
echo 'Exception when calling ResellerApi->deleteResellerChild: ', $e->getMessage(), PHP_EOL;
187187
}
@@ -192,7 +192,7 @@ try {
192192

193193
Name | Type | Description | Notes
194194
------------- | ------------- | ------------- | -------------
195-
**childId** | **int**| id of reseller's child |
195+
**childAuthKey** | **string**| auth key of reseller's child |
196196

197197
### Return type
198198

@@ -210,7 +210,7 @@ void (empty response body)
210210
[[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)
211211

212212
# **dissociateIpFromChild**
213-
> dissociateIpFromChild($childId, $ipId)
213+
> dissociateIpFromChild($childAuthKey, $ip)
214214
215215
Dissociate a dedicated IP to the child
216216

@@ -225,11 +225,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
225225
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
226226

227227
$api_instance = new SendinBlue\Client\Api\ResellerApi();
228-
$childId = 789; // int | id of reseller's child
229-
$ipId = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP's id
228+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
229+
$ip = new \SendinBlue\Client\Model\ManageIp(); // \SendinBlue\Client\Model\ManageIp | IP to dissociate
230230

231231
try {
232-
$api_instance->dissociateIpFromChild($childId, $ipId);
232+
$api_instance->dissociateIpFromChild($childAuthKey, $ip);
233233
} catch (Exception $e) {
234234
echo 'Exception when calling ResellerApi->dissociateIpFromChild: ', $e->getMessage(), PHP_EOL;
235235
}
@@ -240,8 +240,8 @@ try {
240240

241241
Name | Type | Description | Notes
242242
------------- | ------------- | ------------- | -------------
243-
**childId** | **int**| id of reseller's child |
244-
**ipId** | [**\SendinBlue\Client\Model\ManageIp**](../Model/ManageIp.md)| IP's id |
243+
**childAuthKey** | **string**| auth key of reseller's child |
244+
**ip** | [**\SendinBlue\Client\Model\ManageIp**](../Model/ManageIp.md)| IP to dissociate |
245245

246246
### Return type
247247

@@ -259,7 +259,7 @@ void (empty response body)
259259
[[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)
260260

261261
# **getChildInfo**
262-
> \SendinBlue\Client\Model\GetChildInfo getChildInfo($childId)
262+
> \SendinBlue\Client\Model\GetChildInfo getChildInfo($childAuthKey)
263263
264264
Gets the info about a specific child account
265265

@@ -274,10 +274,10 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
274274
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
275275

276276
$api_instance = new SendinBlue\Client\Api\ResellerApi();
277-
$childId = 789; // int | id of reseller's child
277+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
278278

279279
try {
280-
$result = $api_instance->getChildInfo($childId);
280+
$result = $api_instance->getChildInfo($childAuthKey);
281281
print_r($result);
282282
} catch (Exception $e) {
283283
echo 'Exception when calling ResellerApi->getChildInfo: ', $e->getMessage(), PHP_EOL;
@@ -289,7 +289,7 @@ try {
289289

290290
Name | Type | Description | Notes
291291
------------- | ------------- | ------------- | -------------
292-
**childId** | **int**| id of reseller's child |
292+
**childAuthKey** | **string**| auth key of reseller's child |
293293

294294
### Return type
295295

@@ -351,7 +351,7 @@ This endpoint does not need any parameter.
351351
[[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)
352352

353353
# **removeCredits**
354-
> \SendinBlue\Client\Model\RemainingCreditModel removeCredits($childId, $removeCredits)
354+
> \SendinBlue\Client\Model\RemainingCreditModel removeCredits($childAuthKey, $removeCredits)
355355
356356
Remove Email and/or SMS credits from a specific child account
357357

@@ -366,11 +366,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
366366
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
367367

368368
$api_instance = new SendinBlue\Client\Api\ResellerApi();
369-
$childId = 789; // int | id of reseller's child
369+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
370370
$removeCredits = new \SendinBlue\Client\Model\RemoveCredits(); // \SendinBlue\Client\Model\RemoveCredits | Values to post to remove email or SMS credits from a specific child account
371371

372372
try {
373-
$result = $api_instance->removeCredits($childId, $removeCredits);
373+
$result = $api_instance->removeCredits($childAuthKey, $removeCredits);
374374
print_r($result);
375375
} catch (Exception $e) {
376376
echo 'Exception when calling ResellerApi->removeCredits: ', $e->getMessage(), PHP_EOL;
@@ -382,7 +382,7 @@ try {
382382

383383
Name | Type | Description | Notes
384384
------------- | ------------- | ------------- | -------------
385-
**childId** | **int**| id of reseller's child |
385+
**childAuthKey** | **string**| auth key of reseller's child |
386386
**removeCredits** | [**\SendinBlue\Client\Model\RemoveCredits**](../Model/RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account |
387387

388388
### Return type
@@ -401,9 +401,9 @@ Name | Type | Description | Notes
401401
[[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)
402402

403403
# **updateResellerChild**
404-
> updateResellerChild($childId, $resellerChild)
404+
> updateResellerChild($childAuthKey, $resellerChild)
405405
406-
Updates infos of reseller's child based on the childId supplied
406+
Updates infos of reseller's child based on the childAuthKey supplied
407407

408408
### Example
409409
```php
@@ -416,11 +416,11 @@ SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key',
416416
// SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
417417

418418
$api_instance = new SendinBlue\Client\Api\ResellerApi();
419-
$childId = 789; // int | id of reseller's child
419+
$childAuthKey = "childAuthKey_example"; // string | auth key of reseller's child
420420
$resellerChild = new \SendinBlue\Client\Model\UpdateChild(); // \SendinBlue\Client\Model\UpdateChild | values to update in child profile
421421

422422
try {
423-
$api_instance->updateResellerChild($childId, $resellerChild);
423+
$api_instance->updateResellerChild($childAuthKey, $resellerChild);
424424
} catch (Exception $e) {
425425
echo 'Exception when calling ResellerApi->updateResellerChild: ', $e->getMessage(), PHP_EOL;
426426
}
@@ -431,7 +431,7 @@ try {
431431

432432
Name | Type | Description | Notes
433433
------------- | ------------- | ------------- | -------------
434-
**childId** | **int**| id of reseller's child |
434+
**childAuthKey** | **string**| auth key of reseller's child |
435435
**resellerChild** | [**\SendinBlue\Client\Model\UpdateChild**](../Model/UpdateChild.md)| values to update in child profile |
436436

437437
### Return type

docs/Model/GetChildInfoIps.md renamed to docs/Model/CreateReseller.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# GetChildInfoIps
1+
# CreateReseller
22

33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**id** | **int** | ID of the IP |
7-
**ip** | **string** | IP associated to the child account user |
6+
**authKey** | **string** | AuthKey of Reseller child created |
87

98
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
109

0 commit comments

Comments
 (0)