Skip to content
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Messente API Library

- Messente API version: 1.2.0
- Python package version: 1.2.2
- Messente API version: 1.3.0
- Python package version: 1.3.0

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.

Expand Down
1 change: 1 addition & 0 deletions docs/ContactFields.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**custom2** | **str** | The second custom field | [optional]
**custom3** | **str** | The third custom field | [optional]
**custom4** | **str** | The fourth custom field | [optional]
**scheduled_deletion_date** | **date** | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [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)

Expand Down
4 changes: 2 additions & 2 deletions docs/ContactsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ configuration = messente_api.Configuration(
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.ContactsApi(api_client)
contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields |
contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"} # ContactFields |

try:
# Creates a new contact
Expand Down Expand Up @@ -575,7 +575,7 @@ with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.ContactsApi(api_client)
phone = '+37251000000' # str | A phone number
contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactUpdateFields |
contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"} # ContactUpdateFields |

try:
# Updates a contact
Expand Down
7 changes: 4 additions & 3 deletions docs/OmnimessageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description


# **cancel_scheduled_message**
> cancel_scheduled_message(omnimessage_id)
> object cancel_scheduled_message(omnimessage_id)

Cancels a scheduled Omnimessage

Expand Down Expand Up @@ -47,7 +47,8 @@ with messente_api.ApiClient(configuration) as api_client:

try:
# Cancels a scheduled Omnimessage
api_instance.cancel_scheduled_message(omnimessage_id)
api_response = api_instance.cancel_scheduled_message(omnimessage_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling OmnimessageApi->cancel_scheduled_message: %s\n" % e)
```
Expand All @@ -60,7 +61,7 @@ Name | Type | Description | Notes

### Return type

void (empty response body)
**object**

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion docs/StatisticsReportSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**start_date** | **date** | Start date for the report |
**end_date** | **date** | End date for the report |
**message_types** | **list[str]** | Optional list of message types (sms, viber, whatsapp, hlr) | [optional]
**message_types** | **list[str]** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [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)

Expand Down
4 changes: 2 additions & 2 deletions messente_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "1.2.2"
__version__ = "1.3.0"

# import apis into sdk package
from messente_api.api.blacklist_api import BlacklistApi
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/blacklist_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/contacts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/delivery_report_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/groups_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/number_lookup_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
8 changes: 4 additions & 4 deletions messente_api/api/omnimessage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -54,7 +54,7 @@ def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: None
:return: object
If the method is called asynchronously,
returns the request thread.
"""
Expand All @@ -80,7 +80,7 @@ def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): #
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: None
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -141,7 +141,7 @@ def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): #
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
response_type='object', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion messente_api/api/statistics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
4 changes: 2 additions & 2 deletions messente_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.2.2/python'
self.user_agent = 'OpenAPI-Generator/1.3.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
6 changes: 3 additions & 3 deletions messente_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -349,8 +349,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.2.0\n"\
"SDK Package Version: 1.2.2".\
"Version of the API: 1.3.0\n"\
"SDK Package Version: 1.3.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion messente_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/models/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion messente_api/models/contact_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down
35 changes: 31 additions & 4 deletions messente_api/models/contact_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501

The version of the OpenAPI document: 1.2.0
The version of the OpenAPI document: 1.3.0
Contact: messente@messente.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -43,7 +43,8 @@ class ContactFields(object):
'custom': 'str',
'custom2': 'str',
'custom3': 'str',
'custom4': 'str'
'custom4': 'str',
'scheduled_deletion_date': 'date'
}

attribute_map = {
Expand All @@ -56,10 +57,11 @@ class ContactFields(object):
'custom': 'custom',
'custom2': 'custom2',
'custom3': 'custom3',
'custom4': 'custom4'
'custom4': 'custom4',
'scheduled_deletion_date': 'scheduledDeletionDate'
}

def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None, local_vars_configuration=None): # noqa: E501
def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None, scheduled_deletion_date=None, local_vars_configuration=None): # noqa: E501
"""ContactFields - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand All @@ -75,6 +77,7 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non
self._custom2 = None
self._custom3 = None
self._custom4 = None
self._scheduled_deletion_date = None
self.discriminator = None

self.phone_number = phone_number
Expand All @@ -87,6 +90,7 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non
self.custom2 = custom2
self.custom3 = custom3
self.custom4 = custom4
self.scheduled_deletion_date = scheduled_deletion_date

@property
def phone_number(self):
Expand Down Expand Up @@ -320,6 +324,29 @@ def custom4(self, custom4):

self._custom4 = custom4

@property
def scheduled_deletion_date(self):
"""Gets the scheduled_deletion_date of this ContactFields. # noqa: E501

The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days # noqa: E501

:return: The scheduled_deletion_date of this ContactFields. # noqa: E501
:rtype: date
"""
return self._scheduled_deletion_date

@scheduled_deletion_date.setter
def scheduled_deletion_date(self, scheduled_deletion_date):
"""Sets the scheduled_deletion_date of this ContactFields.

The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days # noqa: E501

:param scheduled_deletion_date: The scheduled_deletion_date of this ContactFields. # noqa: E501
:type: date
"""

self._scheduled_deletion_date = scheduled_deletion_date

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Loading