Skip to content

Commit 1f1b324

Browse files
Merge pull request #47 from sendinblue/feature_updated_swagger_sync
Feature updated swagger sync
2 parents 0a6c454 + 6a95085 commit 1f1b324

File tree

423 files changed

+5788
-2225
lines changed

Some content is hidden

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

423 files changed

+5788
-2225
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ docs/_build/
6161
target/
6262

6363
#Ipython Notebook
64-
.ipynb_checkpoints
64+
.ipynb_checkpoints

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0
1+
2.4.12

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 SendinBlue
3+
Copyright (c) 2020 SendinBlue
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Latest stable version is: https://github.com/sendinblue/APIv3-python-library/tree/v4.2.2**
1+
**Our library is now compatible with python 3.7 . Please use: https://github.com/sendinblue/APIv3-python-library/tree/v6.1.0**
22

33
# SendinBlue's API v3 Python Library
44

@@ -16,7 +16,7 @@ For more information, please visit [https://account.sendinblue.com/support](http
1616

1717
## Requirements.
1818

19-
Compatible from Python version 2.7 to 3.5
19+
Compatible from Python version 2.7 to 3.5+
2020

2121
## Installation & Usage
2222
### pip install
@@ -78,6 +78,7 @@ try:
7878
pprint(api_response)
7979
except ApiException as e:
8080
print("Exception when calling AccountApi->get_account: %s\n" % e)
81+
8182
```
8283

8384
## Documentation for API Endpoints
@@ -120,9 +121,11 @@ Class | Method | HTTP request | Description
120121
*EmailCampaignsApi* | [**create_email_campaign**](docs/EmailCampaignsApi.md#create_email_campaign) | **POST** /emailCampaigns | Create an email campaign
121122
*EmailCampaignsApi* | [**delete_email_campaign**](docs/EmailCampaignsApi.md#delete_email_campaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign
122123
*EmailCampaignsApi* | [**email_export_recipients**](docs/EmailCampaignsApi.md#email_export_recipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign
124+
*EmailCampaignsApi* | [**get_ab_test_campaign_result**](docs/EmailCampaignsApi.md#get_ab_test_campaign_result) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result
123125
*EmailCampaignsApi* | [**get_email_campaign**](docs/EmailCampaignsApi.md#get_email_campaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations
124126
*EmailCampaignsApi* | [**get_email_campaigns**](docs/EmailCampaignsApi.md#get_email_campaigns) | **GET** /emailCampaigns | Return all your created campaigns
125-
*EmailCampaignsApi* | [**send_email_campaign_now**](docs/EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately
127+
*EmailCampaignsApi* | [**get_shared_template_url**](docs/EmailCampaignsApi.md#get_shared_template_url) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url
128+
*EmailCampaignsApi* | [**send_email_campaign_now**](docs/EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId
126129
*EmailCampaignsApi* | [**send_report**](docs/EmailCampaignsApi.md#send_report) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns
127130
*EmailCampaignsApi* | [**send_test_email**](docs/EmailCampaignsApi.md#send_test_email) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list
128131
*EmailCampaignsApi* | [**update_campaign_status**](docs/EmailCampaignsApi.md#update_campaign_status) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status
@@ -151,6 +154,7 @@ Class | Method | HTTP request | Description
151154
*ResellerApi* | [**delete_child_domain**](docs/ResellerApi.md#delete_child_domain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
152155
*ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
153156
*ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
157+
*ResellerApi* | [**get_child_account_creation_status**](docs/ResellerApi.md#get_child_account_creation_status) | **GET** /reseller/children/{childAuthKey}/accountCreationStatus | Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
154158
*ResellerApi* | [**get_child_domains**](docs/ResellerApi.md#get_child_domains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
155159
*ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
156160
*ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
@@ -177,11 +181,14 @@ Class | Method | HTTP request | Description
177181
*SMTPApi* | [**get_smtp_report**](docs/SMTPApi.md#get_smtp_report) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day
178182
*SMTPApi* | [**get_smtp_template**](docs/SMTPApi.md#get_smtp_template) | **GET** /smtp/templates/{templateId} | Returns the template informations
179183
*SMTPApi* | [**get_smtp_templates**](docs/SMTPApi.md#get_smtp_templates) | **GET** /smtp/templates | Get the list of transactional email templates
184+
*SMTPApi* | [**get_transac_blocked_contacts**](docs/SMTPApi.md#get_transac_blocked_contacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
180185
*SMTPApi* | [**get_transac_email_content**](docs/SMTPApi.md#get_transac_email_content) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
181186
*SMTPApi* | [**get_transac_emails_list**](docs/SMTPApi.md#get_transac_emails_list) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
182187
*SMTPApi* | [**send_template**](docs/SMTPApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template
183188
*SMTPApi* | [**send_test_template**](docs/SMTPApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
184189
*SMTPApi* | [**send_transac_email**](docs/SMTPApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email
190+
*SMTPApi* | [**smtp_blocked_contacts_email_delete**](docs/SMTPApi.md#smtp_blocked_contacts_email_delete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
191+
*SMTPApi* | [**smtp_log_message_id_delete**](docs/SMTPApi.md#smtp_log_message_id_delete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log
185192
*SMTPApi* | [**update_smtp_template**](docs/SMTPApi.md#update_smtp_template) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
186193
*SendersApi* | [**create_sender**](docs/SendersApi.md#create_sender) | **POST** /senders | Create a new sender
187194
*SendersApi* | [**delete_sender**](docs/SendersApi.md#delete_sender) | **DELETE** /senders/{senderId} | Delete a sender
@@ -202,6 +209,7 @@ Class | Method | HTTP request | Description
202209

203210
## Documentation For Models
204211

212+
- [AbTestCampaignResult](docs/AbTestCampaignResult.md)
205213
- [AddChildDomain](docs/AddChildDomain.md)
206214
- [AddContactToList](docs/AddContactToList.md)
207215
- [AddCredits](docs/AddCredits.md)
@@ -241,6 +249,7 @@ Class | Method | HTTP request | Description
241249
- [GetCampaignOverview](docs/GetCampaignOverview.md)
242250
- [GetCampaignRecipients](docs/GetCampaignRecipients.md)
243251
- [GetCampaignStats](docs/GetCampaignStats.md)
252+
- [GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md)
244253
- [GetChildDomain](docs/GetChildDomain.md)
245254
- [GetChildDomains](docs/GetChildDomains.md)
246255
- [GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
@@ -252,14 +261,12 @@ Class | Method | HTTP request | Description
252261
- [GetClient](docs/GetClient.md)
253262
- [GetContactCampaignStats](docs/GetContactCampaignStats.md)
254263
- [GetContactCampaignStatsClicked](docs/GetContactCampaignStatsClicked.md)
255-
- [GetContactCampaignStatsLinks](docs/GetContactCampaignStatsLinks.md)
256264
- [GetContactCampaignStatsOpened](docs/GetContactCampaignStatsOpened.md)
257265
- [GetContactCampaignStatsTransacAttributes](docs/GetContactCampaignStatsTransacAttributes.md)
258266
- [GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md)
259-
- [GetContactCampaignStatsUnsubscriptionsAdminUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md)
260-
- [GetContactCampaignStatsUnsubscriptionsUserUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md)
261267
- [GetContactDetails](docs/GetContactDetails.md)
262268
- [GetContacts](docs/GetContacts.md)
269+
- [GetDeviceBrowserStats](docs/GetDeviceBrowserStats.md)
263270
- [GetEmailCampaigns](docs/GetEmailCampaigns.md)
264271
- [GetEmailEventReport](docs/GetEmailEventReport.md)
265272
- [GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md)
@@ -291,6 +298,7 @@ Class | Method | HTTP request | Description
291298
- [GetSendersList](docs/GetSendersList.md)
292299
- [GetSendersListIps](docs/GetSendersListIps.md)
293300
- [GetSendersListSenders](docs/GetSendersListSenders.md)
301+
- [GetSharedTemplateUrl](docs/GetSharedTemplateUrl.md)
294302
- [GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md)
295303
- [GetSmsCampaignStats](docs/GetSmsCampaignStats.md)
296304
- [GetSmsCampaigns](docs/GetSmsCampaigns.md)
@@ -300,8 +308,13 @@ Class | Method | HTTP request | Description
300308
- [GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md)
301309
- [GetSmtpTemplates](docs/GetSmtpTemplates.md)
302310
- [GetSsoToken](docs/GetSsoToken.md)
311+
- [GetStatsByBrowser](docs/GetStatsByBrowser.md)
312+
- [GetStatsByDevice](docs/GetStatsByDevice.md)
303313
- [GetStatsByDomain](docs/GetStatsByDomain.md)
304314
- [GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md)
315+
- [GetTransacBlockedContacts](docs/GetTransacBlockedContacts.md)
316+
- [GetTransacBlockedContactsContacts](docs/GetTransacBlockedContactsContacts.md)
317+
- [GetTransacBlockedContactsReason](docs/GetTransacBlockedContactsReason.md)
305318
- [GetTransacEmailContent](docs/GetTransacEmailContent.md)
306319
- [GetTransacEmailContentEvents](docs/GetTransacEmailContentEvents.md)
307320
- [GetTransacEmailsList](docs/GetTransacEmailsList.md)
@@ -321,6 +334,7 @@ Class | Method | HTTP request | Description
321334
- [RemoveContactFromList](docs/RemoveContactFromList.md)
322335
- [RemoveCredits](docs/RemoveCredits.md)
323336
- [RequestContactExport](docs/RequestContactExport.md)
337+
- [RequestContactExportCustomContactFilter](docs/RequestContactExportCustomContactFilter.md)
324338
- [RequestContactImport](docs/RequestContactImport.md)
325339
- [RequestContactImportNewList](docs/RequestContactImportNewList.md)
326340
- [RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md)

docs/AbTestCampaignResult.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AbTestCampaignResult
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**winning_version** | **str** | Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. | [optional]
7+
**winning_criteria** | **str** | Criteria choosen for winning version (Open/Click) | [optional]
8+
**winning_subject_line** | **str** | Subject Line of current winning version | [optional]
9+
**open_rate** | **str** | Open rate for current winning version | [optional]
10+
**click_rate** | **str** | Click rate for current winning version | [optional]
11+
**winning_version_rate** | **str** | Open/Click rate for the winner version | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
15+

docs/CreateContact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**email** | **str** | Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' | [optional]
6+
**email** | **str** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} | [optional]
77
**attributes** | **object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {'FNAME':'Elly', 'LNAME':'Roger'} | [optional]
88
**email_blacklisted** | **bool** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional]
99
**sms_blacklisted** | **bool** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]

docs/CreateEmailCampaign.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Name | Type | Description | Notes
2828
**split_rule** | **int** | Add the size of your test groups. Mandatory if abTesting = true & 'recipients' is passed. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional]
2929
**winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed | [optional]
3030
**winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed | [optional]
31+
**ip_warmup_enable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to False]
32+
**initial_quota** | **int** | Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional]
33+
**increase_rate** | **int** | Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional]
3134

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

docs/CreateEmailCampaignSender.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | Sender Name | [optional]
77
**email** | **str** | Sender email |
8+
**id** | **int** | Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional]
89

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

docs/CreateSmtpTemplateSender.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | Name of the sender. If not passed, will be set to default | [optional]
77
**email** | **str** | Email of the sender |
8+
**id** | **int** | Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional]
89

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

0 commit comments

Comments
 (0)