Skip to content

Commit 06068cf

Browse files
authored
Merge pull request #76 from sendinblue/feature_AP-1770
AP-1770: Updated to v7.3.0 with latest changes
2 parents 05d7597 + e4f3d0b commit 06068cf

File tree

84 files changed

+5870
-243
lines changed

Some content is hidden

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

84 files changed

+5870
-243
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ target/
6262

6363
#Ipython Notebook
6464
.ipynb_checkpoints
65+
66+
# Miscellaneous
67+
playground.py

.swagger-codegen/VERSION

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

README.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/).
1111
This PYTHON package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project and is reviewed and maintained by SendinBlue:
1212

1313
- API version: 3.0.0
14-
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
14+
- Build package: io.swagger.codegen.languages.PythonClientCodegen
1515
For more information, please visit [https://account.sendinblue.com/support](https://account.sendinblue.com/support)
1616

1717
## Requirements.
@@ -138,6 +138,8 @@ Class | Method | HTTP request | Description
138138
*FoldersApi* | [**get_folder_lists**](docs/FoldersApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get lists in a folder
139139
*FoldersApi* | [**get_folders**](docs/FoldersApi.md#get_folders) | **GET** /contacts/folders | Get all folders
140140
*FoldersApi* | [**update_folder**](docs/FoldersApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a folder
141+
*InboundParsingApi* | [**get_inbound_email_events**](docs/InboundParsingApi.md#get_inbound_email_events) | **GET** /inbound/events | Get the list of all the events for the received emails.
142+
*InboundParsingApi* | [**get_inbound_email_events_by_uuid**](docs/InboundParsingApi.md#get_inbound_email_events_by_uuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email.
141143
*ListsApi* | [**add_contact_to_list**](docs/ListsApi.md#add_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list
142144
*ListsApi* | [**create_list**](docs/ListsApi.md#create_list) | **POST** /contacts/lists | Create a list
143145
*ListsApi* | [**delete_list**](docs/ListsApi.md#delete_list) | **DELETE** /contacts/lists/{listId} | Delete a list
@@ -147,6 +149,10 @@ Class | Method | HTTP request | Description
147149
*ListsApi* | [**get_lists**](docs/ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
148150
*ListsApi* | [**remove_contact_from_list**](docs/ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list
149151
*ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
152+
*MasterAccountApi* | [**corporate_master_account_get**](docs/MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account
153+
*MasterAccountApi* | [**corporate_sub_account_get**](docs/MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account.
154+
*MasterAccountApi* | [**corporate_sub_account_id_get**](docs/MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details
155+
*MasterAccountApi* | [**corporate_sub_account_post**](docs/MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account.
150156
*ProcessApi* | [**get_process**](docs/ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process
151157
*ProcessApi* | [**get_processes**](docs/ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account
152158
*ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childIdentifier}/credits/add | Add Email and/or SMS credits to a specific child account
@@ -185,18 +191,20 @@ Class | Method | HTTP request | Description
185191
*TransactionalSMSApi* | [**get_transac_aggregated_sms_report**](docs/TransactionalSMSApi.md#get_transac_aggregated_sms_report) | **GET** /transactionalSMS/statistics/aggregatedReport | Get your SMS activity aggregated over a period of time
186192
*TransactionalSMSApi* | [**get_transac_sms_report**](docs/TransactionalSMSApi.md#get_transac_sms_report) | **GET** /transactionalSMS/statistics/reports | Get your SMS activity aggregated per day
187193
*TransactionalSMSApi* | [**send_transac_sms**](docs/TransactionalSMSApi.md#send_transac_sms) | **POST** /transactionalSMS/sms | Send SMS message to a mobile number
194+
*TransactionalEmailsApi* | [**block_new_domain**](docs/TransactionalEmailsApi.md#block_new_domain) | **POST** /smtp/blockedDomains | Add a new domain to the list of blocked domains
188195
*TransactionalEmailsApi* | [**create_smtp_template**](docs/TransactionalEmailsApi.md#create_smtp_template) | **POST** /smtp/templates | Create an email template
196+
*TransactionalEmailsApi* | [**delete_blocked_domain**](docs/TransactionalEmailsApi.md#delete_blocked_domain) | **DELETE** /smtp/blockedDomains/{domain} | Unblock an existing domain from the list of blocked domains
189197
*TransactionalEmailsApi* | [**delete_hardbounces**](docs/TransactionalEmailsApi.md#delete_hardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces
190198
*TransactionalEmailsApi* | [**delete_smtp_template**](docs/TransactionalEmailsApi.md#delete_smtp_template) | **DELETE** /smtp/templates/{templateId} | Delete an inactive email template
191199
*TransactionalEmailsApi* | [**get_aggregated_smtp_report**](docs/TransactionalEmailsApi.md#get_aggregated_smtp_report) | **GET** /smtp/statistics/aggregatedReport | Get your transactional email activity aggregated over a period of time
200+
*TransactionalEmailsApi* | [**get_blocked_domains**](docs/TransactionalEmailsApi.md#get_blocked_domains) | **GET** /smtp/blockedDomains | Get the list of blocked domains
192201
*TransactionalEmailsApi* | [**get_email_event_report**](docs/TransactionalEmailsApi.md#get_email_event_report) | **GET** /smtp/statistics/events | Get all your transactional email activity (unaggregated events)
193202
*TransactionalEmailsApi* | [**get_smtp_report**](docs/TransactionalEmailsApi.md#get_smtp_report) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day
194203
*TransactionalEmailsApi* | [**get_smtp_template**](docs/TransactionalEmailsApi.md#get_smtp_template) | **GET** /smtp/templates/{templateId} | Returns the template information
195204
*TransactionalEmailsApi* | [**get_smtp_templates**](docs/TransactionalEmailsApi.md#get_smtp_templates) | **GET** /smtp/templates | Get the list of email templates
196205
*TransactionalEmailsApi* | [**get_transac_blocked_contacts**](docs/TransactionalEmailsApi.md#get_transac_blocked_contacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
197206
*TransactionalEmailsApi* | [**get_transac_email_content**](docs/TransactionalEmailsApi.md#get_transac_email_content) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
198207
*TransactionalEmailsApi* | [**get_transac_emails_list**](docs/TransactionalEmailsApi.md#get_transac_emails_list) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
199-
*TransactionalEmailsApi* | [**send_template**](docs/TransactionalEmailsApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template
200208
*TransactionalEmailsApi* | [**send_test_template**](docs/TransactionalEmailsApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
201209
*TransactionalEmailsApi* | [**send_transac_email**](docs/TransactionalEmailsApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email
202210
*TransactionalEmailsApi* | [**smtp_blocked_contacts_email_delete**](docs/TransactionalEmailsApi.md#smtp_blocked_contacts_email_delete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
@@ -220,6 +228,7 @@ Class | Method | HTTP request | Description
220228
- [AddChildDomain](docs/AddChildDomain.md)
221229
- [AddContactToList](docs/AddContactToList.md)
222230
- [AddCredits](docs/AddCredits.md)
231+
- [BlockDomain](docs/BlockDomain.md)
223232
- [CreateAttribute](docs/CreateAttribute.md)
224233
- [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md)
225234
- [CreateChild](docs/CreateChild.md)
@@ -239,6 +248,7 @@ Class | Method | HTTP request | Description
239248
- [CreateSmtpEmail](docs/CreateSmtpEmail.md)
240249
- [CreateSmtpTemplate](docs/CreateSmtpTemplate.md)
241250
- [CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md)
251+
- [CreateSubAccount](docs/CreateSubAccount.md)
242252
- [CreateUpdateContactModel](docs/CreateUpdateContactModel.md)
243253
- [CreateUpdateFolder](docs/CreateUpdateFolder.md)
244254
- [CreateWebhook](docs/CreateWebhook.md)
@@ -254,6 +264,7 @@ Class | Method | HTTP request | Description
254264
- [GetAttributes](docs/GetAttributes.md)
255265
- [GetAttributesAttributes](docs/GetAttributesAttributes.md)
256266
- [GetAttributesEnumeration](docs/GetAttributesEnumeration.md)
267+
- [GetBlockedDomains](docs/GetBlockedDomains.md)
257268
- [GetCampaignOverview](docs/GetCampaignOverview.md)
258269
- [GetCampaignRecipients](docs/GetCampaignRecipients.md)
259270
- [GetCampaignStats](docs/GetCampaignStats.md)
@@ -293,6 +304,11 @@ Class | Method | HTTP request | Description
293304
- [GetFolder](docs/GetFolder.md)
294305
- [GetFolderLists](docs/GetFolderLists.md)
295306
- [GetFolders](docs/GetFolders.md)
307+
- [GetInboundEmailEvents](docs/GetInboundEmailEvents.md)
308+
- [GetInboundEmailEventsByUuid](docs/GetInboundEmailEventsByUuid.md)
309+
- [GetInboundEmailEventsByUuidAttachments](docs/GetInboundEmailEventsByUuidAttachments.md)
310+
- [GetInboundEmailEventsByUuidLogs](docs/GetInboundEmailEventsByUuidLogs.md)
311+
- [GetInboundEmailEventsEvents](docs/GetInboundEmailEventsEvents.md)
296312
- [GetIp](docs/GetIp.md)
297313
- [GetIpFromSender](docs/GetIpFromSender.md)
298314
- [GetIps](docs/GetIps.md)
@@ -332,6 +348,12 @@ Class | Method | HTTP request | Description
332348
- [GetWebhook](docs/GetWebhook.md)
333349
- [GetWebhooks](docs/GetWebhooks.md)
334350
- [ManageIp](docs/ManageIp.md)
351+
- [MasterDetailsResponse](docs/MasterDetailsResponse.md)
352+
- [MasterDetailsResponseBillingInfo](docs/MasterDetailsResponseBillingInfo.md)
353+
- [MasterDetailsResponseBillingInfoAddress](docs/MasterDetailsResponseBillingInfoAddress.md)
354+
- [MasterDetailsResponseBillingInfoName](docs/MasterDetailsResponseBillingInfoName.md)
355+
- [MasterDetailsResponsePlanInfo](docs/MasterDetailsResponsePlanInfo.md)
356+
- [MasterDetailsResponsePlanInfoFeatures](docs/MasterDetailsResponsePlanInfoFeatures.md)
335357
- [PostContactInfo](docs/PostContactInfo.md)
336358
- [PostContactInfoContacts](docs/PostContactInfoContacts.md)
337359
- [PostSendFailed](docs/PostSendFailed.md)
@@ -346,22 +368,32 @@ Class | Method | HTTP request | Description
346368
- [RequestContactImport](docs/RequestContactImport.md)
347369
- [RequestContactImportNewList](docs/RequestContactImportNewList.md)
348370
- [RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md)
349-
- [SendEmail](docs/SendEmail.md)
350-
- [SendEmailAttachment](docs/SendEmailAttachment.md)
351371
- [SendReport](docs/SendReport.md)
352372
- [SendReportEmail](docs/SendReportEmail.md)
353373
- [SendSms](docs/SendSms.md)
354374
- [SendSmtpEmail](docs/SendSmtpEmail.md)
355375
- [SendSmtpEmailAttachment](docs/SendSmtpEmailAttachment.md)
356376
- [SendSmtpEmailBcc](docs/SendSmtpEmailBcc.md)
357377
- [SendSmtpEmailCc](docs/SendSmtpEmailCc.md)
378+
- [SendSmtpEmailMessageVersions](docs/SendSmtpEmailMessageVersions.md)
358379
- [SendSmtpEmailReplyTo](docs/SendSmtpEmailReplyTo.md)
380+
- [SendSmtpEmailReplyTo1](docs/SendSmtpEmailReplyTo1.md)
359381
- [SendSmtpEmailSender](docs/SendSmtpEmailSender.md)
360382
- [SendSmtpEmailTo](docs/SendSmtpEmailTo.md)
361-
- [SendTemplateEmail](docs/SendTemplateEmail.md)
383+
- [SendSmtpEmailTo1](docs/SendSmtpEmailTo1.md)
362384
- [SendTestEmail](docs/SendTestEmail.md)
363385
- [SendTestSms](docs/SendTestSms.md)
364386
- [SendTransacSms](docs/SendTransacSms.md)
387+
- [SubAccountDetailsResponse](docs/SubAccountDetailsResponse.md)
388+
- [SubAccountDetailsResponsePlanInfo](docs/SubAccountDetailsResponsePlanInfo.md)
389+
- [SubAccountDetailsResponsePlanInfoCredits](docs/SubAccountDetailsResponsePlanInfoCredits.md)
390+
- [SubAccountDetailsResponsePlanInfoCreditsEmails](docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md)
391+
- [SubAccountDetailsResponsePlanInfoFeatures](docs/SubAccountDetailsResponsePlanInfoFeatures.md)
392+
- [SubAccountDetailsResponsePlanInfoFeaturesInbox](docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md)
393+
- [SubAccountDetailsResponsePlanInfoFeaturesLandingPage](docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md)
394+
- [SubAccountDetailsResponsePlanInfoFeaturesUsers](docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md)
395+
- [SubAccountsResponse](docs/SubAccountsResponse.md)
396+
- [SubAccountsResponseSubAccounts](docs/SubAccountsResponseSubAccounts.md)
365397
- [UpdateAttribute](docs/UpdateAttribute.md)
366398
- [UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md)
367399
- [UpdateCampaignStatus](docs/UpdateCampaignStatus.md)

docs/ContactsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ This endpoint does not need any parameter.
663663
664664
Get a contact's details
665665

666+
Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.sendinblue.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
667+
666668
### Example
667669
```python
668670
from __future__ import print_function
@@ -743,7 +745,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY'
743745
api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration))
744746
identifier = 'identifier_example' # str | Email (urlencoded) OR ID of the contact
745747
start_date = '2013-10-20' # date | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional)
746-
end_date = '2013-10-20' # date | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional)
748+
end_date = '2013-10-20' # date | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days (optional)
747749

748750
try:
749751
# Get email campaigns' statistics for a contact
@@ -759,7 +761,7 @@ Name | Type | Description | Notes
759761
------------- | ------------- | ------------- | -------------
760762
**identifier** | **str**| Email (urlencoded) OR ID of the contact |
761763
**start_date** | **date**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
762-
**end_date** | **date**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate | [optional]
764+
**end_date** | **date**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days | [optional]
763765

764766
### Return type
765767

docs/CreateSmsCampaign.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**content** | **str** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS |
99
**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
1010
**scheduled_at** | **datetime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
11+
**unicode_enabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional]
1112

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

docs/CreateSubAccount.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateSubAccount
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**company_name** | **str** | Name of the organization |
7+
**language** | **str** | Language for identifying localization information | [optional]
8+
**timezone** | **str** | Request timezone of the client | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/CreateWebhook.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**url** | **str** | URL of the webhook |
77
**description** | **str** | Description of the webhook | [optional]
8-
**events** | **list[str]** | Events triggering the webhook. Possible values for Transactional type webhook `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` and possible values for Marketing type webhook `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` |
8+
**events** | **list[str]** | - Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` |
99
**type** | **str** | Type of the webhook | [optional] [default to 'transactional']
10+
**domain** | **str** | Inbound domain of webhook, required in case of event type `inbound` | [optional]
1011

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

docs/GetExtendedList.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**name** | **str** | Name of the list |
88
**total_blacklisted** | **int** | Number of blacklisted contacts in the list |
99
**total_subscribers** | **int** | Number of contacts in the list |
10+
**unique_subscribers** | **int** | Number of unique contacts in the list |
1011
**folder_id** | **int** | ID of the folder |
1112
**created_at** | **datetime** | Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) |
1213
**campaign_stats** | [**list[GetExtendedListCampaignStats]**](GetExtendedListCampaignStats.md) | | [optional]

docs/GetInboundEmailEvents.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GetInboundEmailEvents
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**events** | [**list[GetInboundEmailEventsEvents]**](GetInboundEmailEventsEvents.md) | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

0 commit comments

Comments
 (0)