Skip to content

Commit d8a884f

Browse files
Merge pull request #39 from sendinblue/feature_updated_swagger_sync
Swagger updates for new reseller route
2 parents b459c5d + 66d8608 commit d8a884f

14 files changed

+416
-15
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ Class | Method | HTTP request | Description
154154
*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
155155
*ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
156156
*ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
157-
*ResellerApi* | [**get_sso_token**](docs/ResellerApi.md#get_sso_token) | **GET** /reseller/children/{childAuthKey}/auth | Generates a session token which will remain valid for a short period of time only.
157+
*ResellerApi* | [**get_sso_token**](docs/ResellerApi.md#get_sso_token) | **GET** /reseller/children/{childAuthKey}/auth | Get session token to access Sendinblue (SSO)
158158
*ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
159+
*ResellerApi* | [**update_child_account_status**](docs/ResellerApi.md#update_child_account_status) | **PUT** /reseller/children/{childAuthKey}/accountStatus | Updates infos of reseller's child account status based on the childAuthKey supplied
159160
*ResellerApi* | [**update_child_domain**](docs/ResellerApi.md#update_child_domain) | **PUT** /reseller/children/{childAuthKey}/domains/{domainName} | Updates the sender domain of reseller's child based on the childAuthKey and domainName passed
160161
*ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
161162
*SMSCampaignsApi* | [**create_sms_campaign**](docs/SMSCampaignsApi.md#create_sms_campaign) | **POST** /smsCampaigns | Creates an SMS campaign
@@ -334,6 +335,7 @@ Class | Method | HTTP request | Description
334335
- [UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md)
335336
- [UpdateCampaignStatus](docs/UpdateCampaignStatus.md)
336337
- [UpdateChild](docs/UpdateChild.md)
338+
- [UpdateChildAccountStatus](docs/UpdateChildAccountStatus.md)
337339
- [UpdateChildDomain](docs/UpdateChildDomain.md)
338340
- [UpdateContact](docs/UpdateContact.md)
339341
- [UpdateEmailCampaign](docs/UpdateEmailCampaign.md)

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY'
627627

628628
# create an instance of the API class
629629
api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration))
630-
email = 'email_example' # str | Email (urlencoded) of the contact
630+
email = 'email_example' # str | Email (urlencoded) of the contact OR its SMS attribute value
631631

632632
try:
633633
# Retrieves contact informations
@@ -641,7 +641,7 @@ except ApiException as e:
641641

642642
Name | Type | Description | Notes
643643
------------- | ------------- | ------------- | -------------
644-
**email** | **str**| Email (urlencoded) of the contact |
644+
**email** | **str**| Email (urlencoded) of the contact OR its SMS attribute value |
645645

646646
### Return type
647647

docs/ResellerApi.md

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Method | HTTP request | Description
1414
[**get_child_domains**](ResellerApi.md#get_child_domains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
1515
[**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
1616
[**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
17-
[**get_sso_token**](ResellerApi.md#get_sso_token) | **GET** /reseller/children/{childAuthKey}/auth | Generates a session token which will remain valid for a short period of time only.
17+
[**get_sso_token**](ResellerApi.md#get_sso_token) | **GET** /reseller/children/{childAuthKey}/auth | Get session token to access Sendinblue (SSO)
1818
[**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
19+
[**update_child_account_status**](ResellerApi.md#update_child_account_status) | **PUT** /reseller/children/{childAuthKey}/accountStatus | Updates infos of reseller's child account status based on the childAuthKey supplied
1920
[**update_child_domain**](ResellerApi.md#update_child_domain) | **PUT** /reseller/children/{childAuthKey}/domains/{domainName} | Updates the sender domain of reseller's child based on the childAuthKey and domainName passed
2021
[**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
2122

@@ -594,7 +595,9 @@ This endpoint does not need any parameter.
594595
# **get_sso_token**
595596
> GetSsoToken get_sso_token(child_auth_key)
596597
597-
Generates a session token which will remain valid for a short period of time only.
598+
Get session token to access Sendinblue (SSO)
599+
600+
It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]
598601

599602
### Example
600603
```python
@@ -620,7 +623,7 @@ api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration
620623
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
621624

622625
try:
623-
# Generates a session token which will remain valid for a short period of time only.
626+
# Get session token to access Sendinblue (SSO)
624627
api_response = api_instance.get_sso_token(child_auth_key)
625628
pprint(api_response)
626629
except ApiException as e:
@@ -707,6 +710,64 @@ Name | Type | Description | Notes
707710

708711
[[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)
709712

713+
# **update_child_account_status**
714+
> update_child_account_status(child_auth_key, update_child_account_status)
715+
716+
Updates infos of reseller's child account status based on the childAuthKey supplied
717+
718+
### Example
719+
```python
720+
from __future__ import print_function
721+
import time
722+
import sib_api_v3_sdk
723+
from sib_api_v3_sdk.rest import ApiException
724+
from pprint import pprint
725+
726+
# Configure API key authorization: api-key
727+
configuration = sib_api_v3_sdk.Configuration()
728+
configuration.api_key['api-key'] = 'YOUR_API_KEY'
729+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
730+
# configuration.api_key_prefix['api-key'] = 'Bearer'
731+
# Configure API key authorization: partner-key
732+
configuration = sib_api_v3_sdk.Configuration()
733+
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
734+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
735+
# configuration.api_key_prefix['partner-key'] = 'Bearer'
736+
737+
# create an instance of the API class
738+
api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration))
739+
child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child
740+
update_child_account_status = sib_api_v3_sdk.UpdateChildAccountStatus() # UpdateChildAccountStatus | values to update in child account status
741+
742+
try:
743+
# Updates infos of reseller's child account status based on the childAuthKey supplied
744+
api_instance.update_child_account_status(child_auth_key, update_child_account_status)
745+
except ApiException as e:
746+
print("Exception when calling ResellerApi->update_child_account_status: %s\n" % e)
747+
```
748+
749+
### Parameters
750+
751+
Name | Type | Description | Notes
752+
------------- | ------------- | ------------- | -------------
753+
**child_auth_key** | **str**| auth key of reseller's child |
754+
**update_child_account_status** | [**UpdateChildAccountStatus**](UpdateChildAccountStatus.md)| values to update in child account status |
755+
756+
### Return type
757+
758+
void (empty response body)
759+
760+
### Authorization
761+
762+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
763+
764+
### HTTP request headers
765+
766+
- **Content-Type**: application/json
767+
- **Accept**: application/json
768+
769+
[[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)
770+
710771
# **update_child_domain**
711772
> update_child_domain(child_auth_key, domain_name, update_child_domain)
712773

docs/SendSmtpEmail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional]
1212
**subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional]
1313
**reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional]
14-
**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, [{'url':'https://attachment.domain.com/myAttachmentFromUrl.jpg', 'name':'My attachment 1'}, {'content':'base64 exmaple content', 'name':'My attachment 2'}]. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps and odt ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional]
14+
**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional]
1515
**headers** | **object** | Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'sender.ip':'1.2.3.4'} | [optional]
1616
**template_id** | **int** | Id of the template | [optional]
1717
**params** | **object** | Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. It's considered only if template is in New Template Language format. | [optional]

docs/UpdateChildAccountStatus.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UpdateChildAccountStatus
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**transactional_email** | **bool** | Status of Transactional Email (SMTP) Platform activation for your account (true=enabled, false=disabled) | [optional]
7+
**transactional_sms** | **bool** | Status of Transactional SMS Platform activation for your account (true=enabled, false=disabled) | [optional]
8+
**marketing_automation** | **bool** | Status of Marketing Automation Platform activation for your account (true=enabled, false=disabled) | [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+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "sib-api-v3-sdk"
16-
VERSION = "6.0.0"
16+
VERSION = "6.0.1"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

sib_api_v3_sdk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration
170170
from sib_api_v3_sdk.models.update_campaign_status import UpdateCampaignStatus
171171
from sib_api_v3_sdk.models.update_child import UpdateChild
172+
from sib_api_v3_sdk.models.update_child_account_status import UpdateChildAccountStatus
172173
from sib_api_v3_sdk.models.update_child_domain import UpdateChildDomain
173174
from sib_api_v3_sdk.models.update_contact import UpdateContact
174175
from sib_api_v3_sdk.models.update_email_campaign import UpdateEmailCampaign

sib_api_v3_sdk/api/contacts_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def get_contact_info(self, email, **kwargs): # noqa: E501
10361036
>>> result = thread.get()
10371037
10381038
:param async bool
1039-
:param str email: Email (urlencoded) of the contact (required)
1039+
:param str email: Email (urlencoded) of the contact OR its SMS attribute value (required)
10401040
:return: GetExtendedContactDetails
10411041
If the method is called asynchronously,
10421042
returns the request thread.
@@ -1057,7 +1057,7 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501
10571057
>>> result = thread.get()
10581058
10591059
:param async bool
1060-
:param str email: Email (urlencoded) of the contact (required)
1060+
:param str email: Email (urlencoded) of the contact OR its SMS attribute value (required)
10611061
:return: GetExtendedContactDetails
10621062
If the method is called asynchronously,
10631063
returns the request thread.

0 commit comments

Comments
 (0)