From 7f540dcaa4bfd033e60a7d4be059a315332641ee Mon Sep 17 00:00:00 2001 From: shubhamUpadhyay Date: Wed, 11 Sep 2019 12:21:28 +0530 Subject: [PATCH 1/2] ip non-mandatory in getContact --- README.md | 3 + docs/GetContactCampaignStatsClicked.md | 2 +- docs/GetContactCampaignStatsLinks.md | 13 ++ .../GetContactCampaignStatsUnsubscriptions.md | 4 +- ...StatsUnsubscriptionsAdminUnsubscription.md | 11 + ...nStatsUnsubscriptionsUserUnsubscription.md | 12 ++ ...etExtendedContactDetailsStatisticsLinks.md | 2 +- ...tExtendedContactDetailsStatisticsOpened.md | 2 +- ...sticsUnsubscriptionsAdminUnsubscription.md | 2 +- ...isticsUnsubscriptionsUserUnsubscription.md | 2 +- docs/SendSmtpEmail.md | 2 +- setup.py | 2 +- sib_api_v3_sdk/__init__.py | 3 + sib_api_v3_sdk/models/__init__.py | 3 + .../get_contact_campaign_stats_clicked.py | 8 +- .../get_contact_campaign_stats_links.py | 202 ++++++++++++++++++ ..._contact_campaign_stats_unsubscriptions.py | 16 +- ...ts_unsubscriptions_admin_unsubscription.py | 144 +++++++++++++ ...ats_unsubscriptions_user_unsubscription.py | 173 +++++++++++++++ ...tended_contact_details_statistics_links.py | 5 +- ...ended_contact_details_statistics_opened.py | 5 +- ...cs_unsubscriptions_admin_unsubscription.py | 5 +- ...ics_unsubscriptions_user_unsubscription.py | 5 +- sib_api_v3_sdk/models/send_smtp_email.py | 4 +- test/test_get_contact_campaign_stats_links.py | 40 ++++ ...ts_unsubscriptions_admin_unsubscription.py | 40 ++++ ...ats_unsubscriptions_user_unsubscription.py | 40 ++++ 27 files changed, 715 insertions(+), 35 deletions(-) create mode 100644 docs/GetContactCampaignStatsLinks.md create mode 100644 docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md create mode 100644 docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md create mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_links.py create mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py create mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py create mode 100644 test/test_get_contact_campaign_stats_links.py create mode 100644 test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py create mode 100644 test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py diff --git a/README.md b/README.md index cd050aa..1249a3d 100644 --- a/README.md +++ b/README.md @@ -252,9 +252,12 @@ Class | Method | HTTP request | Description - [GetClient](docs/GetClient.md) - [GetContactCampaignStats](docs/GetContactCampaignStats.md) - [GetContactCampaignStatsClicked](docs/GetContactCampaignStatsClicked.md) + - [GetContactCampaignStatsLinks](docs/GetContactCampaignStatsLinks.md) - [GetContactCampaignStatsOpened](docs/GetContactCampaignStatsOpened.md) - [GetContactCampaignStatsTransacAttributes](docs/GetContactCampaignStatsTransacAttributes.md) - [GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md) + - [GetContactCampaignStatsUnsubscriptionsAdminUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) + - [GetContactCampaignStatsUnsubscriptionsUserUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) - [GetContactDetails](docs/GetContactDetails.md) - [GetContacts](docs/GetContacts.md) - [GetEmailCampaigns](docs/GetEmailCampaigns.md) diff --git a/docs/GetContactCampaignStatsClicked.md b/docs/GetContactCampaignStatsClicked.md index f16598e..5d1979e 100644 --- a/docs/GetContactCampaignStatsClicked.md +++ b/docs/GetContactCampaignStatsClicked.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | -**links** | [**list[GetExtendedContactDetailsStatisticsLinks]**](GetExtendedContactDetailsStatisticsLinks.md) | | +**links** | [**list[GetContactCampaignStatsLinks]**](GetContactCampaignStatsLinks.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetContactCampaignStatsLinks.md b/docs/GetContactCampaignStatsLinks.md new file mode 100644 index 0000000..74744e2 --- /dev/null +++ b/docs/GetContactCampaignStatsLinks.md @@ -0,0 +1,13 @@ +# GetContactCampaignStatsLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Number of clicks on this link for the campaign | +**event_time** | **datetime** | UTC date-time of the event | +**ip** | **str** | IP from which the user has clicked on the link | +**url** | **str** | URL of the clicked link | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetContactCampaignStatsUnsubscriptions.md b/docs/GetContactCampaignStatsUnsubscriptions.md index 2ac3d93..05cc424 100644 --- a/docs/GetContactCampaignStatsUnsubscriptions.md +++ b/docs/GetContactCampaignStatsUnsubscriptions.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | -**admin_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | +**user_unsubscription** | [**list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription]**](GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | +**admin_unsubscription** | [**list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription]**](GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md b/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md new file mode 100644 index 0000000..bdc5c78 --- /dev/null +++ b/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md @@ -0,0 +1,11 @@ +# GetContactCampaignStatsUnsubscriptionsAdminUnsubscription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**event_time** | **datetime** | UTC date-time of the event | +**ip** | **str** | IP from which the user has been unsubscribed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md b/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md new file mode 100644 index 0000000..a846041 --- /dev/null +++ b/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md @@ -0,0 +1,12 @@ +# GetContactCampaignStatsUnsubscriptionsUserUnsubscription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaign_id** | **int** | ID of the campaign which generated the event | +**event_time** | **datetime** | UTC date-time of the event | +**ip** | **str** | IP from which the user has unsubscribed | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetExtendedContactDetailsStatisticsLinks.md b/docs/GetExtendedContactDetailsStatisticsLinks.md index 51829e1..2fe1838 100644 --- a/docs/GetExtendedContactDetailsStatisticsLinks.md +++ b/docs/GetExtendedContactDetailsStatisticsLinks.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of clicks on this link for the campaign | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has clicked on the link | +**ip** | **str** | IP from which the user has clicked on the link | [optional] **url** | **str** | URL of the clicked link | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsOpened.md b/docs/GetExtendedContactDetailsStatisticsOpened.md index 5ba5558..55a2977 100644 --- a/docs/GetExtendedContactDetailsStatisticsOpened.md +++ b/docs/GetExtendedContactDetailsStatisticsOpened.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **campaign_id** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings for the campaign | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has opened the email | +**ip** | **str** | IP from which the user has opened the email | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md index 9ecfaef..9d99f41 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has been unsubscribed | +**ip** | **str** | IP from which the user has been unsubscribed | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md index b3d4ea6..b722d0c 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has unsubscribed | +**ip** | **str** | IP from which the user has unsubscribed | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index 471ac57..04bb8cd 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] **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] -**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] +**headers** | **object** | Pass the set of custom headers (not the standard 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, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. | [optional] **template_id** | **int** | Id of the template | [optional] **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] **tags** | **list[str]** | Tag your emails to find them more easily | [optional] diff --git a/setup.py b/setup.py index 9c091a7..71bcc00 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "sib-api-v3-sdk" -VERSION = "6.0.2" +VERSION = "6.0.3" # To install the library, run the following # # python setup.py install diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index cbba941..90458af 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -84,9 +84,12 @@ from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked +from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index 31bab6e..9aeb510 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -65,9 +65,12 @@ from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked +from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py index b30d204..ac3484a 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py @@ -16,7 +16,7 @@ import six -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks # noqa: F401,E501 +from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks # noqa: F401,E501 class GetContactCampaignStatsClicked(object): @@ -34,7 +34,7 @@ class GetContactCampaignStatsClicked(object): """ swagger_types = { 'campaign_id': 'int', - 'links': 'list[GetExtendedContactDetailsStatisticsLinks]' + 'links': 'list[GetContactCampaignStatsLinks]' } attribute_map = { @@ -83,7 +83,7 @@ def links(self): :return: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsLinks] + :rtype: list[GetContactCampaignStatsLinks] """ return self._links @@ -93,7 +93,7 @@ def links(self, links): :param links: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsLinks] + :type: list[GetContactCampaignStatsLinks] """ if links is None: raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py new file mode 100644 index 0000000..96d9af0 --- /dev/null +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetContactCampaignStatsLinks(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'event_time': 'datetime', + 'ip': 'str', + 'url': 'str' + } + + attribute_map = { + 'count': 'count', + 'event_time': 'eventTime', + 'ip': 'ip', + 'url': 'url' + } + + def __init__(self, count=None, event_time=None, ip=None, url=None): # noqa: E501 + """GetContactCampaignStatsLinks - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._event_time = None + self._ip = None + self._url = None + self.discriminator = None + + self.count = count + self.event_time = event_time + self.ip = ip + self.url = url + + @property + def count(self): + """Gets the count of this GetContactCampaignStatsLinks. # noqa: E501 + + Number of clicks on this link for the campaign # noqa: E501 + + :return: The count of this GetContactCampaignStatsLinks. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetContactCampaignStatsLinks. + + Number of clicks on this link for the campaign # noqa: E501 + + :param count: The count of this GetContactCampaignStatsLinks. # noqa: E501 + :type: int + """ + if count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + @property + def event_time(self): + """Gets the event_time of this GetContactCampaignStatsLinks. # noqa: E501 + + UTC date-time of the event # noqa: E501 + + :return: The event_time of this GetContactCampaignStatsLinks. # noqa: E501 + :rtype: datetime + """ + return self._event_time + + @event_time.setter + def event_time(self, event_time): + """Sets the event_time of this GetContactCampaignStatsLinks. + + UTC date-time of the event # noqa: E501 + + :param event_time: The event_time of this GetContactCampaignStatsLinks. # noqa: E501 + :type: datetime + """ + if event_time is None: + raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 + + self._event_time = event_time + + @property + def ip(self): + """Gets the ip of this GetContactCampaignStatsLinks. # noqa: E501 + + IP from which the user has clicked on the link # noqa: E501 + + :return: The ip of this GetContactCampaignStatsLinks. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this GetContactCampaignStatsLinks. + + IP from which the user has clicked on the link # noqa: E501 + + :param ip: The ip of this GetContactCampaignStatsLinks. # noqa: E501 + :type: str + """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + + self._ip = ip + + @property + def url(self): + """Gets the url of this GetContactCampaignStatsLinks. # noqa: E501 + + URL of the clicked link # noqa: E501 + + :return: The url of this GetContactCampaignStatsLinks. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetContactCampaignStatsLinks. + + URL of the clicked link # noqa: E501 + + :param url: The url of this GetContactCampaignStatsLinks. # noqa: E501 + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetContactCampaignStatsLinks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py index c7e2021..6223a76 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py @@ -16,8 +16,8 @@ import six -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription # noqa: F401,E501 +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription # noqa: F401,E501 class GetContactCampaignStatsUnsubscriptions(object): @@ -34,8 +34,8 @@ class GetContactCampaignStatsUnsubscriptions(object): and the value is json key in definition. """ swagger_types = { - 'user_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]', - 'admin_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]' + 'user_unsubscription': 'list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription]', + 'admin_unsubscription': 'list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription]' } attribute_map = { @@ -60,7 +60,7 @@ def user_unsubscription(self): Contact has unsubscribed via the unsubscription link in the email # noqa: E501 :return: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] + :rtype: list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription] """ return self._user_unsubscription @@ -71,7 +71,7 @@ def user_unsubscription(self, user_unsubscription): Contact has unsubscribed via the unsubscription link in the email # noqa: E501 :param user_unsubscription: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] + :type: list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription] """ if user_unsubscription is None: raise ValueError("Invalid value for `user_unsubscription`, must not be `None`") # noqa: E501 @@ -85,7 +85,7 @@ def admin_unsubscription(self): Contact has been unsubscribed from the administrator # noqa: E501 :return: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] + :rtype: list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription] """ return self._admin_unsubscription @@ -96,7 +96,7 @@ def admin_unsubscription(self, admin_unsubscription): Contact has been unsubscribed from the administrator # noqa: E501 :param admin_unsubscription: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] + :type: list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription] """ if admin_unsubscription is None: raise ValueError("Invalid value for `admin_unsubscription`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py new file mode 100644 index 0000000..00de018 --- /dev/null +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetContactCampaignStatsUnsubscriptionsAdminUnsubscription(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'event_time': 'datetime', + 'ip': 'str' + } + + attribute_map = { + 'event_time': 'eventTime', + 'ip': 'ip' + } + + def __init__(self, event_time=None, ip=None): # noqa: E501 + """GetContactCampaignStatsUnsubscriptionsAdminUnsubscription - a model defined in Swagger""" # noqa: E501 + + self._event_time = None + self._ip = None + self.discriminator = None + + self.event_time = event_time + self.ip = ip + + @property + def event_time(self): + """Gets the event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + + UTC date-time of the event # noqa: E501 + + :return: The event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :rtype: datetime + """ + return self._event_time + + @event_time.setter + def event_time(self, event_time): + """Sets the event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. + + UTC date-time of the event # noqa: E501 + + :param event_time: The event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :type: datetime + """ + if event_time is None: + raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 + + self._event_time = event_time + + @property + def ip(self): + """Gets the ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + + IP from which the user has been unsubscribed # noqa: E501 + + :return: The ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. + + IP from which the user has been unsubscribed # noqa: E501 + + :param ip: The ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :type: str + """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + + self._ip = ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetContactCampaignStatsUnsubscriptionsAdminUnsubscription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py new file mode 100644 index 0000000..df1be32 --- /dev/null +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetContactCampaignStatsUnsubscriptionsUserUnsubscription(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'campaign_id': 'int', + 'event_time': 'datetime', + 'ip': 'str' + } + + attribute_map = { + 'campaign_id': 'campaignId', + 'event_time': 'eventTime', + 'ip': 'ip' + } + + def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501 + """GetContactCampaignStatsUnsubscriptionsUserUnsubscription - a model defined in Swagger""" # noqa: E501 + + self._campaign_id = None + self._event_time = None + self._ip = None + self.discriminator = None + + self.campaign_id = campaign_id + self.event_time = event_time + self.ip = ip + + @property + def campaign_id(self): + """Gets the campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + + ID of the campaign which generated the event # noqa: E501 + + :return: The campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :rtype: int + """ + return self._campaign_id + + @campaign_id.setter + def campaign_id(self, campaign_id): + """Sets the campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. + + ID of the campaign which generated the event # noqa: E501 + + :param campaign_id: The campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :type: int + """ + if campaign_id is None: + raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 + + self._campaign_id = campaign_id + + @property + def event_time(self): + """Gets the event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + + UTC date-time of the event # noqa: E501 + + :return: The event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :rtype: datetime + """ + return self._event_time + + @event_time.setter + def event_time(self, event_time): + """Sets the event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. + + UTC date-time of the event # noqa: E501 + + :param event_time: The event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :type: datetime + """ + if event_time is None: + raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 + + self._event_time = event_time + + @property + def ip(self): + """Gets the ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + + IP from which the user has unsubscribed # noqa: E501 + + :return: The ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. + + IP from which the user has unsubscribed # noqa: E501 + + :param ip: The ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 + :type: str + """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + + self._ip = ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetContactCampaignStatsUnsubscriptionsUserUnsubscription): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py index bce9063..ec96aea 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py @@ -55,7 +55,8 @@ def __init__(self, count=None, event_time=None, ip=None, url=None): # noqa: E50 self.count = count self.event_time = event_time - self.ip = ip + if ip is not None: + self.ip = ip self.url = url @property @@ -128,8 +129,6 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py index 839648b..0830869 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py @@ -56,7 +56,8 @@ def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # n self.campaign_id = campaign_id self.count = count self.event_time = event_time - self.ip = ip + if ip is not None: + self.ip = ip @property def campaign_id(self): @@ -153,8 +154,6 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py index 2fd838b..23b0545 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py @@ -48,7 +48,8 @@ def __init__(self, event_time=None, ip=None): # noqa: E501 self.discriminator = None self.event_time = event_time - self.ip = ip + if ip is not None: + self.ip = ip @property def event_time(self): @@ -95,8 +96,6 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py index 30a24b5..ed437f5 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py @@ -52,7 +52,8 @@ def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501 self.campaign_id = campaign_id self.event_time = event_time - self.ip = ip + if ip is not None: + self.ip = ip @property def campaign_id(self): @@ -124,8 +125,6 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip diff --git a/sib_api_v3_sdk/models/send_smtp_email.py b/sib_api_v3_sdk/models/send_smtp_email.py index 0a6fa29..fdb3b8f 100644 --- a/sib_api_v3_sdk/models/send_smtp_email.py +++ b/sib_api_v3_sdk/models/send_smtp_email.py @@ -322,7 +322,7 @@ def attachment(self, attachment): def headers(self): """Gets the headers of this SendSmtpEmail. # noqa: E501 - 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'} # noqa: E501 + Pass the set of custom headers (not the standard 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, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. # noqa: E501 :return: The headers of this SendSmtpEmail. # noqa: E501 :rtype: object @@ -333,7 +333,7 @@ def headers(self): def headers(self, headers): """Sets the headers of this SendSmtpEmail. - 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'} # noqa: E501 + Pass the set of custom headers (not the standard 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, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. # noqa: E501 :param headers: The headers of this SendSmtpEmail. # noqa: E501 :type: object diff --git a/test/test_get_contact_campaign_stats_links.py b/test/test_get_contact_campaign_stats_links.py new file mode 100644 index 0000000..6230b56 --- /dev/null +++ b/test/test_get_contact_campaign_stats_links.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetContactCampaignStatsLinks(unittest.TestCase): + """GetContactCampaignStatsLinks unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetContactCampaignStatsLinks(self): + """Test GetContactCampaignStatsLinks""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_contact_campaign_stats_links.GetContactCampaignStatsLinks() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py b/test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py new file mode 100644 index 0000000..cb0b464 --- /dev/null +++ b/test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetContactCampaignStatsUnsubscriptionsAdminUnsubscription(unittest.TestCase): + """GetContactCampaignStatsUnsubscriptionsAdminUnsubscription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetContactCampaignStatsUnsubscriptionsAdminUnsubscription(self): + """Test GetContactCampaignStatsUnsubscriptionsAdminUnsubscription""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription.GetContactCampaignStatsUnsubscriptionsAdminUnsubscription() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py b/test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py new file mode 100644 index 0000000..6e759c3 --- /dev/null +++ b/test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetContactCampaignStatsUnsubscriptionsUserUnsubscription(unittest.TestCase): + """GetContactCampaignStatsUnsubscriptionsUserUnsubscription unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetContactCampaignStatsUnsubscriptionsUserUnsubscription(self): + """Test GetContactCampaignStatsUnsubscriptionsUserUnsubscription""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription.GetContactCampaignStatsUnsubscriptionsUserUnsubscription() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() From db2bc3b83c3f1e1bd59d6c98ca3e71355f055fff Mon Sep 17 00:00:00 2001 From: shubhamUpadhyay Date: Wed, 11 Sep 2019 15:11:21 +0530 Subject: [PATCH 2/2] commit as travis build failed --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a655050..69a4dd5 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,4 @@ docs/_build/ target/ #Ipython Notebook -.ipynb_checkpoints +.ipynb_checkpoints