From f75657c9cd432ad190a427e917861b744a82850c Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 23 May 2019 09:14:15 +0000 Subject: [PATCH 01/16] Travis update: May 2019 (Build 163) [skip ci] --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cb9461a..1c88757 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,5 @@ include_package_data=True, long_description="""\ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 - """, - long_description_content_type="text/markdown" + """ ) From 0258860152aebcb25c68c1d9badb1ef60a0e2ed9 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 30 May 2019 13:52:57 +0000 Subject: [PATCH 02/16] Travis update: May 2019 (Build 191) [skip ci] --- docs/SMS.md | 2 +- messente_api/models/sms.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/SMS.md b/docs/SMS.md index 1318f77..c2d87c5 100644 --- a/docs/SMS.md +++ b/docs/SMS.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **text** | **str** | Text content of the SMS | **sender** | **str** | Phone number or alphanumeric sender name | [optional] **validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] -**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] +**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] **udh** | **str** | hex-encoded string containing SMS UDH | [optional] **channel** | **str** | | [optional] [default to 'sms'] diff --git a/messente_api/models/sms.py b/messente_api/models/sms.py index a219b9c..650dfd1 100644 --- a/messente_api/models/sms.py +++ b/messente_api/models/sms.py @@ -147,7 +147,7 @@ def validity(self, validity): def autoconvert(self): """Gets the autoconvert of this SMS. # noqa: E501 - Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 + Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 :return: The autoconvert of this SMS. # noqa: E501 :rtype: str @@ -158,7 +158,7 @@ def autoconvert(self): def autoconvert(self, autoconvert): """Sets the autoconvert of this SMS. - Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 + Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 :param autoconvert: The autoconvert of this SMS. # noqa: E501 :type: str From 9e024e8a6a459b8f8080351c84f02499ff4c7f28 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Mon, 3 Jun 2019 10:50:20 +0000 Subject: [PATCH 03/16] Travis update: Jun 2019 (Build 223) [skip ci] --- docs/DeliveryReportApi.md | 2 +- messente_api/api/delivery_report_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md index c166035..3b0ee46 100644 --- a/docs/DeliveryReportApi.md +++ b/docs/DeliveryReportApi.md @@ -55,7 +55,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: */* + - **Accept**: application/json [[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) diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py index 11cf9d2..65c6721 100644 --- a/messente_api/api/delivery_report_api.py +++ b/messente_api/api/delivery_report_api.py @@ -110,7 +110,7 @@ def retrieve_delivery_report_with_http_info(self, omnimessage_id, **kwargs): # body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 + ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['basicAuth'] # noqa: E501 From aae91a669d35134f00b38abb5758a1494522ccb6 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Tue, 4 Jun 2019 13:28:05 +0000 Subject: [PATCH 04/16] Travis update: Jun 2019 (Build 249) [skip ci] --- docs/FetchBlacklistSuccess.md | 2 +- messente_api/models/fetch_blacklist_success.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/FetchBlacklistSuccess.md b/docs/FetchBlacklistSuccess.md index 1aaaddd..5f49faf 100644 --- a/docs/FetchBlacklistSuccess.md +++ b/docs/FetchBlacklistSuccess.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**phone_numbers** | **list[str]** | | [optional] +**phone_numbers** | **list[str]** | Array of unique phone numbers | [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/messente_api/models/fetch_blacklist_success.py b/messente_api/models/fetch_blacklist_success.py index 0e403c0..540b866 100644 --- a/messente_api/models/fetch_blacklist_success.py +++ b/messente_api/models/fetch_blacklist_success.py @@ -52,6 +52,7 @@ def __init__(self, phone_numbers=None): # noqa: E501 def phone_numbers(self): """Gets the phone_numbers of this FetchBlacklistSuccess. # noqa: E501 + Array of unique phone numbers # noqa: E501 :return: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 :rtype: list[str] @@ -62,6 +63,7 @@ def phone_numbers(self): def phone_numbers(self, phone_numbers): """Sets the phone_numbers of this FetchBlacklistSuccess. + Array of unique phone numbers # noqa: E501 :param phone_numbers: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 :type: list[str] From 34615bacbac8c42e45df3079f377ca44fe02a569 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Tue, 4 Jun 2019 13:45:43 +0000 Subject: [PATCH 05/16] Travis update: Jun 2019 (Build 250) [skip ci] --- README.md | 40 ++++++++++----------- docs/BlacklistApi.md | 24 ++++++------- docs/ContactsApi.md | 48 ++++++++++++------------- docs/DeliveryReportApi.md | 6 ++-- docs/GroupsApi.md | 30 ++++++++-------- docs/OmnimessageApi.md | 12 +++---- messente_api/api/blacklist_api.py | 16 ++++----- messente_api/api/contacts_api.py | 32 ++++++++--------- messente_api/api/delivery_report_api.py | 4 +-- messente_api/api/groups_api.py | 20 +++++------ messente_api/api/omnimessage_api.py | 8 ++--- test/test_blacklist_api.py | 8 ++--- test/test_contacts_api.py | 16 ++++----- test/test_delivery_report_api.py | 2 +- test/test_groups_api.py | 10 +++--- test/test_omnimessage_api.py | 4 +-- 16 files changed, 140 insertions(+), 140 deletions(-) diff --git a/README.md b/README.md index 9d0cd28..c591975 100644 --- a/README.md +++ b/README.md @@ -20,38 +20,38 @@ Messente API Library provides the operations described below to access the featu ### BlacklistApi -1. Adds a phone number to the blacklist. [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist) -1. Deletes a phone number from the blacklist. [`delete_from_blacklist`](docs/BlacklistApi.md#delete_from_blacklist) -1. Returns all blacklisted phone numbers. [`fetch_blacklist`](docs/BlacklistApi.md#fetch_blacklist) -1. Checks if a phone number is blacklisted. [`is_blacklisted`](docs/BlacklistApi.md#is_blacklisted) +1. Adds a phone number to the blacklist [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist) +1. Deletes a phone number from the blacklist [`delete_from_blacklist`](docs/BlacklistApi.md#delete_from_blacklist) +1. Returns all blacklisted phone numbers [`fetch_blacklist`](docs/BlacklistApi.md#fetch_blacklist) +1. Checks if a phone number is blacklisted [`is_blacklisted`](docs/BlacklistApi.md#is_blacklisted) ### ContactsApi -1. Adds a contact to a group. [`add_contact_to_group`](docs/ContactsApi.md#add_contact_to_group) -1. Creates a new contact. [`create_contact`](docs/ContactsApi.md#create_contact) -1. Deletes a contact. [`delete_contact`](docs/ContactsApi.md#delete_contact) -1. Lists a contact. [`fetch_contact`](docs/ContactsApi.md#fetch_contact) -1. Lists groups of a contact. [`fetch_contact_groups`](docs/ContactsApi.md#fetch_contact_groups) -1. Returns all contacts. [`fetch_contacts`](docs/ContactsApi.md#fetch_contacts) -1. Removes a contact from a group. [`remove_contact_from_group`](docs/ContactsApi.md#remove_contact_from_group) -1. Updates a contact. [`update_contact`](docs/ContactsApi.md#update_contact) +1. Adds a contact to a group [`add_contact_to_group`](docs/ContactsApi.md#add_contact_to_group) +1. Creates a new contact [`create_contact`](docs/ContactsApi.md#create_contact) +1. Deletes a contact [`delete_contact`](docs/ContactsApi.md#delete_contact) +1. Lists a contact [`fetch_contact`](docs/ContactsApi.md#fetch_contact) +1. Lists groups of a contact [`fetch_contact_groups`](docs/ContactsApi.md#fetch_contact_groups) +1. Returns all contacts [`fetch_contacts`](docs/ContactsApi.md#fetch_contacts) +1. Removes a contact from a group [`remove_contact_from_group`](docs/ContactsApi.md#remove_contact_from_group) +1. Updates a contact [`update_contact`](docs/ContactsApi.md#update_contact) ### DeliveryReportApi -1. Retrieves the delivery report for the Omnimessage. [`retrieve_delivery_report`](docs/DeliveryReportApi.md#retrieve_delivery_report) +1. Retrieves the delivery report for the Omnimessage [`retrieve_delivery_report`](docs/DeliveryReportApi.md#retrieve_delivery_report) ### GroupsApi -1. Creates a new group with the provided name. [`create_group`](docs/GroupsApi.md#create_group) -1. Deletes a group. [`delete_group`](docs/GroupsApi.md#delete_group) -1. Lists a group. [`fetch_group`](docs/GroupsApi.md#fetch_group) -1. Returns all groups. [`fetch_groups`](docs/GroupsApi.md#fetch_groups) -1. Updates a group with the provided name. [`update_group`](docs/GroupsApi.md#update_group) +1. Creates a new group with the provided name [`create_group`](docs/GroupsApi.md#create_group) +1. Deletes a group [`delete_group`](docs/GroupsApi.md#delete_group) +1. Lists a group [`fetch_group`](docs/GroupsApi.md#fetch_group) +1. Returns all groups [`fetch_groups`](docs/GroupsApi.md#fetch_groups) +1. Updates a group with the provided name [`update_group`](docs/GroupsApi.md#update_group) ### OmnimessageApi -1. Cancels a scheduled Omnimessage. [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message) -1. Sends an Omnimessage. [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage) +1. Cancels a scheduled Omnimessage [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message) +1. Sends an Omnimessage [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage) ## Auth diff --git a/docs/BlacklistApi.md b/docs/BlacklistApi.md index 33c85d8..d883382 100644 --- a/docs/BlacklistApi.md +++ b/docs/BlacklistApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist. -[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist. -[**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers. -[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted. +[**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist +[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist +[**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers +[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted # **add_to_blacklist** > add_to_blacklist(number_to_blacklist) -Adds a phone number to the blacklist. +Adds a phone number to the blacklist ### Example @@ -34,7 +34,7 @@ api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) number_to_blacklist = messente_api.NumberToBlacklist() # NumberToBlacklist | Phone number to be blacklisted try: - # Adds a phone number to the blacklist. + # Adds a phone number to the blacklist api_instance.add_to_blacklist(number_to_blacklist) except ApiException as e: print("Exception when calling BlacklistApi->add_to_blacklist: %s\n" % e) @@ -64,7 +64,7 @@ void (empty response body) # **delete_from_blacklist** > delete_from_blacklist(phone) -Deletes a phone number from the blacklist. +Deletes a phone number from the blacklist ### Example @@ -85,7 +85,7 @@ api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) phone = 'phone_example' # str | A phone number try: - # Deletes a phone number from the blacklist. + # Deletes a phone number from the blacklist api_instance.delete_from_blacklist(phone) except ApiException as e: print("Exception when calling BlacklistApi->delete_from_blacklist: %s\n" % e) @@ -115,7 +115,7 @@ void (empty response body) # **fetch_blacklist** > FetchBlacklistSuccess fetch_blacklist() -Returns all blacklisted phone numbers. +Returns all blacklisted phone numbers ### Example @@ -135,7 +135,7 @@ configuration.password = 'YOUR_PASSWORD' api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) try: - # Returns all blacklisted phone numbers. + # Returns all blacklisted phone numbers api_response = api_instance.fetch_blacklist() pprint(api_response) except ApiException as e: @@ -163,7 +163,7 @@ This endpoint does not need any parameter. # **is_blacklisted** > is_blacklisted(phone) -Checks if a phone number is blacklisted. +Checks if a phone number is blacklisted ### Example @@ -184,7 +184,7 @@ api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) phone = 'phone_example' # str | A phone number try: - # Checks if a phone number is blacklisted. + # Checks if a phone number is blacklisted api_instance.is_blacklisted(phone) except ApiException as e: print("Exception when calling BlacklistApi->is_blacklisted: %s\n" % e) diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index d2d9617..a6c2813 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -4,20 +4,20 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group. -[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact. -[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact. -[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact. -[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact. -[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts. -[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group. -[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact. +[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group +[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact +[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact +[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact +[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact +[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts +[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group +[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact # **add_contact_to_group** > object add_contact_to_group(group_id, phone) -Adds a contact to a group. +Adds a contact to a group ### Example @@ -39,7 +39,7 @@ group_id = 'group_id_example' # str | String in uuid format. phone = 'phone_example' # str | A phone number try: - # Adds a contact to a group. + # Adds a contact to a group api_response = api_instance.add_contact_to_group(group_id, phone) pprint(api_response) except ApiException as e: @@ -71,7 +71,7 @@ Name | Type | Description | Notes # **create_contact** > ContactEnvelope create_contact(contact_fields) -Creates a new contact. +Creates a new contact ### Example @@ -92,7 +92,7 @@ api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) contact_fields = messente_api.ContactFields() # ContactFields | try: - # Creates a new contact. + # Creates a new contact api_response = api_instance.create_contact(contact_fields) pprint(api_response) except ApiException as e: @@ -123,7 +123,7 @@ Name | Type | Description | Notes # **delete_contact** > delete_contact(phone) -Deletes a contact. +Deletes a contact ### Example @@ -144,7 +144,7 @@ api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) phone = 'phone_example' # str | A phone number try: - # Deletes a contact. + # Deletes a contact api_instance.delete_contact(phone) except ApiException as e: print("Exception when calling ContactsApi->delete_contact: %s\n" % e) @@ -174,7 +174,7 @@ void (empty response body) # **fetch_contact** > ContactEnvelope fetch_contact(phone) -Lists a contact. +Lists a contact ### Example @@ -195,7 +195,7 @@ api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) phone = 'phone_example' # str | A phone number try: - # Lists a contact. + # Lists a contact api_response = api_instance.fetch_contact(phone) pprint(api_response) except ApiException as e: @@ -226,7 +226,7 @@ Name | Type | Description | Notes # **fetch_contact_groups** > GroupListEnvelope fetch_contact_groups(phone) -Lists groups of a contact. +Lists groups of a contact ### Example @@ -247,7 +247,7 @@ api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) phone = 'phone_example' # str | A phone number try: - # Lists groups of a contact. + # Lists groups of a contact api_response = api_instance.fetch_contact_groups(phone) pprint(api_response) except ApiException as e: @@ -278,7 +278,7 @@ Name | Type | Description | Notes # **fetch_contacts** > ContactListEnvelope fetch_contacts(group_ids=group_ids) -Returns all contacts. +Returns all contacts ### Example @@ -299,7 +299,7 @@ api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional) try: - # Returns all contacts. + # Returns all contacts api_response = api_instance.fetch_contacts(group_ids=group_ids) pprint(api_response) except ApiException as e: @@ -330,7 +330,7 @@ Name | Type | Description | Notes # **remove_contact_from_group** > remove_contact_from_group(group_id, phone) -Removes a contact from a group. +Removes a contact from a group ### Example @@ -352,7 +352,7 @@ group_id = 'group_id_example' # str | String in uuid format. phone = 'phone_example' # str | A phone number try: - # Removes a contact from a group. + # Removes a contact from a group api_instance.remove_contact_from_group(group_id, phone) except ApiException as e: print("Exception when calling ContactsApi->remove_contact_from_group: %s\n" % e) @@ -383,7 +383,7 @@ void (empty response body) # **update_contact** > ContactEnvelope update_contact(phone, contact_update_fields) -Updates a contact. +Updates a contact ### Example @@ -405,7 +405,7 @@ phone = 'phone_example' # str | A phone number contact_update_fields = messente_api.ContactUpdateFields() # ContactUpdateFields | try: - # Updates a contact. + # Updates a contact api_response = api_instance.update_contact(phone, contact_update_fields) pprint(api_response) except ApiException as e: diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md index 3b0ee46..c9c5e9f 100644 --- a/docs/DeliveryReportApi.md +++ b/docs/DeliveryReportApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrieve_delivery_report**](DeliveryReportApi.md#retrieve_delivery_report) | **GET** /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage. +[**retrieve_delivery_report**](DeliveryReportApi.md#retrieve_delivery_report) | **GET** /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage # **retrieve_delivery_report** > DeliveryReportResponse retrieve_delivery_report(omnimessage_id) -Retrieves the delivery report for the Omnimessage. +Retrieves the delivery report for the Omnimessage ### Example @@ -31,7 +31,7 @@ api_instance = messente_api.DeliveryReportApi(messente_api.ApiClient(configurati omnimessage_id = 'omnimessage_id_example' # str | UUID of the Omnimessage to for which the delivery report is to be retrieved try: - # Retrieves the delivery report for the Omnimessage. + # Retrieves the delivery report for the Omnimessage api_response = api_instance.retrieve_delivery_report(omnimessage_id) pprint(api_response) except ApiException as e: diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 46d6c97..52bdacf 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name. -[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group. -[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group. -[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups. -[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name. +[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name +[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group +[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group +[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups +[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name # **create_group** > GroupEnvelope create_group(group_name) -Creates a new group with the provided name. +Creates a new group with the provided name ### Example @@ -35,7 +35,7 @@ api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) group_name = messente_api.GroupName() # GroupName | try: - # Creates a new group with the provided name. + # Creates a new group with the provided name api_response = api_instance.create_group(group_name) pprint(api_response) except ApiException as e: @@ -66,7 +66,7 @@ Name | Type | Description | Notes # **delete_group** > delete_group(group_id) -Deletes a group. +Deletes a group ### Example @@ -87,7 +87,7 @@ api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) group_id = 'group_id_example' # str | String in uuid format. try: - # Deletes a group. + # Deletes a group api_instance.delete_group(group_id) except ApiException as e: print("Exception when calling GroupsApi->delete_group: %s\n" % e) @@ -117,7 +117,7 @@ void (empty response body) # **fetch_group** > GroupEnvelope fetch_group(group_id) -Lists a group. +Lists a group ### Example @@ -138,7 +138,7 @@ api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) group_id = 'group_id_example' # str | String in uuid format. try: - # Lists a group. + # Lists a group api_response = api_instance.fetch_group(group_id) pprint(api_response) except ApiException as e: @@ -169,7 +169,7 @@ Name | Type | Description | Notes # **fetch_groups** > GroupListEnvelope fetch_groups() -Returns all groups. +Returns all groups ### Example @@ -189,7 +189,7 @@ configuration.password = 'YOUR_PASSWORD' api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) try: - # Returns all groups. + # Returns all groups api_response = api_instance.fetch_groups() pprint(api_response) except ApiException as e: @@ -217,7 +217,7 @@ This endpoint does not need any parameter. # **update_group** > GroupEnvelope update_group(group_id, group_name) -Updates a group with the provided name. +Updates a group with the provided name ### Example @@ -239,7 +239,7 @@ group_id = 'group_id_example' # str | String in uuid format. group_name = messente_api.GroupName() # GroupName | try: - # Updates a group with the provided name. + # Updates a group with the provided name api_response = api_instance.update_group(group_id, group_name) pprint(api_response) except ApiException as e: diff --git a/docs/OmnimessageApi.md b/docs/OmnimessageApi.md index 295ca23..60d91e9 100644 --- a/docs/OmnimessageApi.md +++ b/docs/OmnimessageApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage. -[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage. +[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage +[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage # **cancel_scheduled_message** > cancel_scheduled_message(omnimessage_id) -Cancels a scheduled Omnimessage. +Cancels a scheduled Omnimessage ### Example @@ -32,7 +32,7 @@ api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration) omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled Omnimessage to be cancelled try: - # Cancels a scheduled Omnimessage. + # Cancels a scheduled Omnimessage api_instance.cancel_scheduled_message(omnimessage_id) except ApiException as e: print("Exception when calling OmnimessageApi->cancel_scheduled_message: %s\n" % e) @@ -62,7 +62,7 @@ void (empty response body) # **send_omnimessage** > OmniMessageCreateSuccessResponse send_omnimessage(omnimessage) -Sends an Omnimessage. +Sends an Omnimessage ### Example @@ -83,7 +83,7 @@ api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration) omnimessage = messente_api.Omnimessage() # Omnimessage | Omnimessage to be sent try: - # Sends an Omnimessage. + # Sends an Omnimessage api_response = api_instance.send_omnimessage(omnimessage) pprint(api_response) except ApiException as e: diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py index c0938c2..f3667b8 100644 --- a/messente_api/api/blacklist_api.py +++ b/messente_api/api/blacklist_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def add_to_blacklist(self, number_to_blacklist, **kwargs): # noqa: E501 - """Adds a phone number to the blacklist. # noqa: E501 + """Adds a phone number to the blacklist # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -59,7 +59,7 @@ def add_to_blacklist(self, number_to_blacklist, **kwargs): # noqa: E501 return data def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noqa: E501 - """Adds a phone number to the blacklist. # noqa: E501 + """Adds a phone number to the blacklist # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -136,7 +136,7 @@ def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noq collection_formats=collection_formats) def delete_from_blacklist(self, phone, **kwargs): # noqa: E501 - """Deletes a phone number from the blacklist. # noqa: E501 + """Deletes a phone number from the blacklist # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -157,7 +157,7 @@ def delete_from_blacklist(self, phone, **kwargs): # noqa: E501 return data def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501 - """Deletes a phone number from the blacklist. # noqa: E501 + """Deletes a phone number from the blacklist # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -230,7 +230,7 @@ def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_blacklist(self, **kwargs): # noqa: E501 - """Returns all blacklisted phone numbers. # noqa: E501 + """Returns all blacklisted phone numbers # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -250,7 +250,7 @@ def fetch_blacklist(self, **kwargs): # noqa: E501 return data def fetch_blacklist_with_http_info(self, **kwargs): # noqa: E501 - """Returns all blacklisted phone numbers. # noqa: E501 + """Returns all blacklisted phone numbers # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -316,7 +316,7 @@ def fetch_blacklist_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def is_blacklisted(self, phone, **kwargs): # noqa: E501 - """Checks if a phone number is blacklisted. # noqa: E501 + """Checks if a phone number is blacklisted # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -337,7 +337,7 @@ def is_blacklisted(self, phone, **kwargs): # noqa: E501 return data def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501 - """Checks if a phone number is blacklisted. # noqa: E501 + """Checks if a phone number is blacklisted # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index 4dd9a6e..429943a 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 - """Adds a contact to a group. # noqa: E501 + """Adds a contact to a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -60,7 +60,7 @@ def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 return data def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 - """Adds a contact to a group. # noqa: E501 + """Adds a contact to a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -140,7 +140,7 @@ def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noq collection_formats=collection_formats) def create_contact(self, contact_fields, **kwargs): # noqa: E501 - """Creates a new contact. # noqa: E501 + """Creates a new contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -161,7 +161,7 @@ def create_contact(self, contact_fields, **kwargs): # noqa: E501 return data def create_contact_with_http_info(self, contact_fields, **kwargs): # noqa: E501 - """Creates a new contact. # noqa: E501 + """Creates a new contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -238,7 +238,7 @@ def create_contact_with_http_info(self, contact_fields, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_contact(self, phone, **kwargs): # noqa: E501 - """Deletes a contact. # noqa: E501 + """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -259,7 +259,7 @@ def delete_contact(self, phone, **kwargs): # noqa: E501 return data def delete_contact_with_http_info(self, phone, **kwargs): # noqa: E501 - """Deletes a contact. # noqa: E501 + """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -332,7 +332,7 @@ def delete_contact_with_http_info(self, phone, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_contact(self, phone, **kwargs): # noqa: E501 - """Lists a contact. # noqa: E501 + """Lists a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -353,7 +353,7 @@ def fetch_contact(self, phone, **kwargs): # noqa: E501 return data def fetch_contact_with_http_info(self, phone, **kwargs): # noqa: E501 - """Lists a contact. # noqa: E501 + """Lists a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -426,7 +426,7 @@ def fetch_contact_with_http_info(self, phone, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_contact_groups(self, phone, **kwargs): # noqa: E501 - """Lists groups of a contact. # noqa: E501 + """Lists groups of a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -447,7 +447,7 @@ def fetch_contact_groups(self, phone, **kwargs): # noqa: E501 return data def fetch_contact_groups_with_http_info(self, phone, **kwargs): # noqa: E501 - """Lists groups of a contact. # noqa: E501 + """Lists groups of a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -520,7 +520,7 @@ def fetch_contact_groups_with_http_info(self, phone, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_contacts(self, **kwargs): # noqa: E501 - """Returns all contacts. # noqa: E501 + """Returns all contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -541,7 +541,7 @@ def fetch_contacts(self, **kwargs): # noqa: E501 return data def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 - """Returns all contacts. # noqa: E501 + """Returns all contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -611,7 +611,7 @@ def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 - """Removes a contact from a group. # noqa: E501 + """Removes a contact from a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -633,7 +633,7 @@ def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 return data def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 - """Removes a contact from a group. # noqa: E501 + """Removes a contact from a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -713,7 +713,7 @@ def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): collection_formats=collection_formats) def update_contact(self, phone, contact_update_fields, **kwargs): # noqa: E501 - """Updates a contact. # noqa: E501 + """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -735,7 +735,7 @@ def update_contact(self, phone, contact_update_fields, **kwargs): # noqa: E501 return data def update_contact_with_http_info(self, phone, contact_update_fields, **kwargs): # noqa: E501 - """Updates a contact. # noqa: E501 + """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py index 65c6721..8ce819b 100644 --- a/messente_api/api/delivery_report_api.py +++ b/messente_api/api/delivery_report_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def retrieve_delivery_report(self, omnimessage_id, **kwargs): # noqa: E501 - """Retrieves the delivery report for the Omnimessage. # noqa: E501 + """Retrieves the delivery report for the Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -59,7 +59,7 @@ def retrieve_delivery_report(self, omnimessage_id, **kwargs): # noqa: E501 return data def retrieve_delivery_report_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 - """Retrieves the delivery report for the Omnimessage. # noqa: E501 + """Retrieves the delivery report for the Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 86f0edb..5df38f5 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def create_group(self, group_name, **kwargs): # noqa: E501 - """Creates a new group with the provided name. # noqa: E501 + """Creates a new group with the provided name # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -59,7 +59,7 @@ def create_group(self, group_name, **kwargs): # noqa: E501 return data def create_group_with_http_info(self, group_name, **kwargs): # noqa: E501 - """Creates a new group with the provided name. # noqa: E501 + """Creates a new group with the provided name # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -136,7 +136,7 @@ def create_group_with_http_info(self, group_name, **kwargs): # noqa: E501 collection_formats=collection_formats) def delete_group(self, group_id, **kwargs): # noqa: E501 - """Deletes a group. # noqa: E501 + """Deletes a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -157,7 +157,7 @@ def delete_group(self, group_id, **kwargs): # noqa: E501 return data def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 - """Deletes a group. # noqa: E501 + """Deletes a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -230,7 +230,7 @@ def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_group(self, group_id, **kwargs): # noqa: E501 - """Lists a group. # noqa: E501 + """Lists a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -251,7 +251,7 @@ def fetch_group(self, group_id, **kwargs): # noqa: E501 return data def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 - """Lists a group. # noqa: E501 + """Lists a group # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -324,7 +324,7 @@ def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 collection_formats=collection_formats) def fetch_groups(self, **kwargs): # noqa: E501 - """Returns all groups. # noqa: E501 + """Returns all groups # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -344,7 +344,7 @@ def fetch_groups(self, **kwargs): # noqa: E501 return data def fetch_groups_with_http_info(self, **kwargs): # noqa: E501 - """Returns all groups. # noqa: E501 + """Returns all groups # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -410,7 +410,7 @@ def fetch_groups_with_http_info(self, **kwargs): # noqa: E501 collection_formats=collection_formats) def update_group(self, group_id, group_name, **kwargs): # noqa: E501 - """Updates a group with the provided name. # noqa: E501 + """Updates a group with the provided name # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -432,7 +432,7 @@ def update_group(self, group_id, group_name, **kwargs): # noqa: E501 return data def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: E501 - """Updates a group with the provided name. # noqa: E501 + """Updates a group with the provided name # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py index 46200fd..4dc948f 100644 --- a/messente_api/api/omnimessage_api.py +++ b/messente_api/api/omnimessage_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501 - """Cancels a scheduled Omnimessage. # noqa: E501 + """Cancels a scheduled Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -59,7 +59,7 @@ def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501 return data def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 - """Cancels a scheduled Omnimessage. # noqa: E501 + """Cancels a scheduled Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -132,7 +132,7 @@ def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): # collection_formats=collection_formats) def send_omnimessage(self, omnimessage, **kwargs): # noqa: E501 - """Sends an Omnimessage. # noqa: E501 + """Sends an Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -153,7 +153,7 @@ def send_omnimessage(self, omnimessage, **kwargs): # noqa: E501 return data def send_omnimessage_with_http_info(self, omnimessage, **kwargs): # noqa: E501 - """Sends an Omnimessage. # noqa: E501 + """Sends an Omnimessage # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/test/test_blacklist_api.py b/test/test_blacklist_api.py index a3e6b34..cc394ff 100644 --- a/test/test_blacklist_api.py +++ b/test/test_blacklist_api.py @@ -32,28 +32,28 @@ def tearDown(self): def test_add_to_blacklist(self): """Test case for add_to_blacklist - Adds a phone number to the blacklist. # noqa: E501 + Adds a phone number to the blacklist # noqa: E501 """ pass def test_delete_from_blacklist(self): """Test case for delete_from_blacklist - Deletes a phone number from the blacklist. # noqa: E501 + Deletes a phone number from the blacklist # noqa: E501 """ pass def test_fetch_blacklist(self): """Test case for fetch_blacklist - Returns all blacklisted phone numbers. # noqa: E501 + Returns all blacklisted phone numbers # noqa: E501 """ pass def test_is_blacklisted(self): """Test case for is_blacklisted - Checks if a phone number is blacklisted. # noqa: E501 + Checks if a phone number is blacklisted # noqa: E501 """ pass diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py index a8ee818..2e1293c 100644 --- a/test/test_contacts_api.py +++ b/test/test_contacts_api.py @@ -32,56 +32,56 @@ def tearDown(self): def test_add_contact_to_group(self): """Test case for add_contact_to_group - Adds a contact to a group. # noqa: E501 + Adds a contact to a group # noqa: E501 """ pass def test_create_contact(self): """Test case for create_contact - Creates a new contact. # noqa: E501 + Creates a new contact # noqa: E501 """ pass def test_delete_contact(self): """Test case for delete_contact - Deletes a contact. # noqa: E501 + Deletes a contact # noqa: E501 """ pass def test_fetch_contact(self): """Test case for fetch_contact - Lists a contact. # noqa: E501 + Lists a contact # noqa: E501 """ pass def test_fetch_contact_groups(self): """Test case for fetch_contact_groups - Lists groups of a contact. # noqa: E501 + Lists groups of a contact # noqa: E501 """ pass def test_fetch_contacts(self): """Test case for fetch_contacts - Returns all contacts. # noqa: E501 + Returns all contacts # noqa: E501 """ pass def test_remove_contact_from_group(self): """Test case for remove_contact_from_group - Removes a contact from a group. # noqa: E501 + Removes a contact from a group # noqa: E501 """ pass def test_update_contact(self): """Test case for update_contact - Updates a contact. # noqa: E501 + Updates a contact # noqa: E501 """ pass diff --git a/test/test_delivery_report_api.py b/test/test_delivery_report_api.py index 9cf049b..a3558c7 100644 --- a/test/test_delivery_report_api.py +++ b/test/test_delivery_report_api.py @@ -32,7 +32,7 @@ def tearDown(self): def test_retrieve_delivery_report(self): """Test case for retrieve_delivery_report - Retrieves the delivery report for the Omnimessage. # noqa: E501 + Retrieves the delivery report for the Omnimessage # noqa: E501 """ pass diff --git a/test/test_groups_api.py b/test/test_groups_api.py index 674b751..d772c50 100644 --- a/test/test_groups_api.py +++ b/test/test_groups_api.py @@ -32,35 +32,35 @@ def tearDown(self): def test_create_group(self): """Test case for create_group - Creates a new group with the provided name. # noqa: E501 + Creates a new group with the provided name # noqa: E501 """ pass def test_delete_group(self): """Test case for delete_group - Deletes a group. # noqa: E501 + Deletes a group # noqa: E501 """ pass def test_fetch_group(self): """Test case for fetch_group - Lists a group. # noqa: E501 + Lists a group # noqa: E501 """ pass def test_fetch_groups(self): """Test case for fetch_groups - Returns all groups. # noqa: E501 + Returns all groups # noqa: E501 """ pass def test_update_group(self): """Test case for update_group - Updates a group with the provided name. # noqa: E501 + Updates a group with the provided name # noqa: E501 """ pass diff --git a/test/test_omnimessage_api.py b/test/test_omnimessage_api.py index 9cc0a48..a9d2fb3 100644 --- a/test/test_omnimessage_api.py +++ b/test/test_omnimessage_api.py @@ -32,14 +32,14 @@ def tearDown(self): def test_cancel_scheduled_message(self): """Test case for cancel_scheduled_message - Cancels a scheduled Omnimessage. # noqa: E501 + Cancels a scheduled Omnimessage # noqa: E501 """ pass def test_send_omnimessage(self): """Test case for send_omnimessage - Sends an Omnimessage. # noqa: E501 + Sends an Omnimessage # noqa: E501 """ pass From e6ca4f2dc21ba2afe0264060c3bb2cfcf11d0b1c Mon Sep 17 00:00:00 2001 From: api-librarian Date: Tue, 4 Jun 2019 13:52:17 +0000 Subject: [PATCH 06/16] Travis update: Jun 2019 (Build 251) [skip ci] --- docs/ContactsApi.md | 12 ++++++------ docs/DeliveryReportApi.md | 2 +- docs/GroupResponseFields.md | 2 +- docs/GroupsApi.md | 12 ++++++------ docs/OmnimessageApi.md | 2 +- messente_api/api/contacts_api.py | 12 ++++++------ messente_api/api/groups_api.py | 12 ++++++------ messente_api/models/group_response_fields.py | 4 ++-- 8 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index a6c2813..264338b 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -35,7 +35,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in uuid format. +group_id = 'group_id_example' # str | String in UUID format. phone = 'phone_example' # str | A phone number try: @@ -50,7 +50,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in uuid format. | + **group_id** | **str**| String in UUID format. | **phone** | **str**| A phone number | ### Return type @@ -296,7 +296,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional) +group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional) try: # Returns all contacts @@ -310,7 +310,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_ids** | [**list[str]**](str.md)| Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional] + **group_ids** | [**list[str]**](str.md)| Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional] ### Return type @@ -348,7 +348,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in uuid format. +group_id = 'group_id_example' # str | String in UUID format. phone = 'phone_example' # str | A phone number try: @@ -362,7 +362,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in uuid format. | + **group_id** | **str**| String in UUID format. | **phone** | **str**| A phone number | ### Return type diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md index c9c5e9f..4f7da78 100644 --- a/docs/DeliveryReportApi.md +++ b/docs/DeliveryReportApi.md @@ -42,7 +42,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **omnimessage_id** | [**str**](.md)| UUID of the Omnimessage to for which the delivery report is to be retrieved | + **omnimessage_id** | **str**| UUID of the Omnimessage to for which the delivery report is to be retrieved | ### Return type diff --git a/docs/GroupResponseFields.md b/docs/GroupResponseFields.md index f77313c..7adbee5 100644 --- a/docs/GroupResponseFields.md +++ b/docs/GroupResponseFields.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | Id string in uuid format | +**id** | **str** | Id string in UUID format | **name** | **str** | | **created_on** | **str** | format %Y-%m-%dT%H:%M:%S.%fZ | [optional] **contacts_count** | **int** | | diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 52bdacf..14afd14 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -84,7 +84,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in uuid format. +group_id = 'group_id_example' # str | String in UUID format. try: # Deletes a group @@ -97,7 +97,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in uuid format. | + **group_id** | **str**| String in UUID format. | ### Return type @@ -135,7 +135,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in uuid format. +group_id = 'group_id_example' # str | String in UUID format. try: # Lists a group @@ -149,7 +149,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in uuid format. | + **group_id** | **str**| String in UUID format. | ### Return type @@ -235,7 +235,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in uuid format. +group_id = 'group_id_example' # str | String in UUID format. group_name = messente_api.GroupName() # GroupName | try: @@ -250,7 +250,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in uuid format. | + **group_id** | **str**| String in UUID format. | **group_name** | [**GroupName**](GroupName.md)| | ### Return type diff --git a/docs/OmnimessageApi.md b/docs/OmnimessageApi.md index 60d91e9..b64c474 100644 --- a/docs/OmnimessageApi.md +++ b/docs/OmnimessageApi.md @@ -42,7 +42,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **omnimessage_id** | [**str**](.md)| UUID of the scheduled Omnimessage to be cancelled | + **omnimessage_id** | **str**| UUID of the scheduled Omnimessage to be cancelled | ### Return type diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index 429943a..9be50c8 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -46,7 +46,7 @@ def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param str phone: A phone number (required) :return: object If the method is called asynchronously, @@ -68,7 +68,7 @@ def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param str phone: A phone number (required) :return: object If the method is called asynchronously, @@ -528,7 +528,7 @@ def fetch_contacts(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param list[str] group_ids: Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" + :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" :return: ContactListEnvelope If the method is called asynchronously, returns the request thread. @@ -549,7 +549,7 @@ def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param list[str] group_ids: Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" + :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" :return: ContactListEnvelope If the method is called asynchronously, returns the request thread. @@ -619,7 +619,7 @@ def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param str phone: A phone number (required) :return: None If the method is called asynchronously, @@ -641,7 +641,7 @@ def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param str phone: A phone number (required) :return: None If the method is called asynchronously, diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 5df38f5..11f34e5 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -144,7 +144,7 @@ def delete_group(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :return: None If the method is called asynchronously, returns the request thread. @@ -165,7 +165,7 @@ def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :return: None If the method is called asynchronously, returns the request thread. @@ -238,7 +238,7 @@ def fetch_group(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :return: GroupEnvelope If the method is called asynchronously, returns the request thread. @@ -259,7 +259,7 @@ def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :return: GroupEnvelope If the method is called asynchronously, returns the request thread. @@ -418,7 +418,7 @@ def update_group(self, group_id, group_name, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param GroupName group_name: (required) :return: GroupEnvelope If the method is called asynchronously, @@ -440,7 +440,7 @@ def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str group_id: String in uuid format. (required) + :param str group_id: String in UUID format. (required) :param GroupName group_name: (required) :return: GroupEnvelope If the method is called asynchronously, diff --git a/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py index c1ff471..c76b95d 100644 --- a/messente_api/models/group_response_fields.py +++ b/messente_api/models/group_response_fields.py @@ -63,7 +63,7 @@ def __init__(self, id=None, name=None, created_on=None, contacts_count=None): # def id(self): """Gets the id of this GroupResponseFields. # noqa: E501 - Id string in uuid format # noqa: E501 + Id string in UUID format # noqa: E501 :return: The id of this GroupResponseFields. # noqa: E501 :rtype: str @@ -74,7 +74,7 @@ def id(self): def id(self, id): """Sets the id of this GroupResponseFields. - Id string in uuid format # noqa: E501 + Id string in UUID format # noqa: E501 :param id: The id of this GroupResponseFields. # noqa: E501 :type: str From 69d7ad97d6dd7dabc7946b0d98be62b8e4bb2db2 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Wed, 5 Jun 2019 07:20:41 +0000 Subject: [PATCH 07/16] Travis update: Jun 2019 (Build 253) [skip ci] --- docs/DeliveryReportApi.md | 4 ++-- docs/DeliveryReportResponse.md | 2 +- docs/DeliveryResult.md | 2 +- docs/GroupResponseFields.md | 2 +- docs/OmniMessageCreateSuccessResponse.md | 4 ++-- docs/OmnimessageApi.md | 4 ++-- messente_api/api/delivery_report_api.py | 4 ++-- messente_api/api/omnimessage_api.py | 4 ++-- messente_api/models/delivery_report_response.py | 4 ++-- messente_api/models/delivery_result.py | 4 ++-- messente_api/models/group_response_fields.py | 4 ++-- .../models/omni_message_create_success_response.py | 8 ++++---- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md index 4f7da78..26612eb 100644 --- a/docs/DeliveryReportApi.md +++ b/docs/DeliveryReportApi.md @@ -28,7 +28,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.DeliveryReportApi(messente_api.ApiClient(configuration)) -omnimessage_id = 'omnimessage_id_example' # str | UUID of the Omnimessage to for which the delivery report is to be retrieved +omnimessage_id = 'omnimessage_id_example' # str | UUID of the omnimessage to for which the delivery report is to be retrieved try: # Retrieves the delivery report for the Omnimessage @@ -42,7 +42,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **omnimessage_id** | **str**| UUID of the Omnimessage to for which the delivery report is to be retrieved | + **omnimessage_id** | **str**| UUID of the omnimessage to for which the delivery report is to be retrieved | ### Return type diff --git a/docs/DeliveryReportResponse.md b/docs/DeliveryReportResponse.md index b80d993..8e6e40b 100644 --- a/docs/DeliveryReportResponse.md +++ b/docs/DeliveryReportResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **statuses** | [**list[DeliveryResult]**](DeliveryResult.md) | Contains the delivery reports for each channnel, ordered by send order | **to** | **str** | Phone number in e.164 format | -**omnimessage_id** | **str** | Unique identifier for the Omnimessage | +**omnimessage_id** | **str** | Unique identifier for the omnimessage | [[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/DeliveryResult.md b/docs/DeliveryResult.md index 7a96da3..f038a75 100644 --- a/docs/DeliveryResult.md +++ b/docs/DeliveryResult.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **status** | [**Status**](Status.md) | | [optional] **channel** | [**Channel**](Channel.md) | | [optional] **message_id** | **str** | Unique identifier for the message | [optional] -**error** | **str** | Human-readable description of what went wrong, *null* in case of success or if the messages has not been processed yet | [optional] +**error** | **str** | Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet | [optional] **err** | [**ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional] **timestamp** | **datetime** | When this status was received by Omnichannel API | [optional] diff --git a/docs/GroupResponseFields.md b/docs/GroupResponseFields.md index 7adbee5..8eff35d 100644 --- a/docs/GroupResponseFields.md +++ b/docs/GroupResponseFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Id string in UUID format | **name** | **str** | | -**created_on** | **str** | format %Y-%m-%dT%H:%M:%S.%fZ | [optional] +**created_on** | **str** | Format %Y-%m-%dT%H:%M:%S.%fZ | [optional] **contacts_count** | **int** | | [[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/OmniMessageCreateSuccessResponse.md b/docs/OmniMessageCreateSuccessResponse.md index 4589e0a..ef5e2d4 100644 --- a/docs/OmniMessageCreateSuccessResponse.md +++ b/docs/OmniMessageCreateSuccessResponse.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**list[MessageResult]**](MessageResult.md) | List of messages that compose the Omnimessage | +**messages** | [**list[MessageResult]**](MessageResult.md) | List of messages that compose the omnimessage | **to** | **str** | Phone number in e.164 format | -**omnimessage_id** | **str** | Unique identifier for the Omnimessage | +**omnimessage_id** | **str** | Unique identifier for the omnimessage | [[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/OmnimessageApi.md b/docs/OmnimessageApi.md index b64c474..c3365fa 100644 --- a/docs/OmnimessageApi.md +++ b/docs/OmnimessageApi.md @@ -29,7 +29,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration)) -omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled Omnimessage to be cancelled +omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled omnimessage to be cancelled try: # Cancels a scheduled Omnimessage @@ -42,7 +42,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **omnimessage_id** | **str**| UUID of the scheduled Omnimessage to be cancelled | + **omnimessage_id** | **str**| UUID of the scheduled omnimessage to be cancelled | ### Return type diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py index 8ce819b..a731e5c 100644 --- a/messente_api/api/delivery_report_api.py +++ b/messente_api/api/delivery_report_api.py @@ -46,7 +46,7 @@ def retrieve_delivery_report(self, omnimessage_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str omnimessage_id: UUID of the Omnimessage to for which the delivery report is to be retrieved (required) + :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) :return: DeliveryReportResponse If the method is called asynchronously, returns the request thread. @@ -67,7 +67,7 @@ def retrieve_delivery_report_with_http_info(self, omnimessage_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str omnimessage_id: UUID of the Omnimessage to for which the delivery report is to be retrieved (required) + :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) :return: DeliveryReportResponse If the method is called asynchronously, returns the request thread. diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py index 4dc948f..32ef137 100644 --- a/messente_api/api/omnimessage_api.py +++ b/messente_api/api/omnimessage_api.py @@ -46,7 +46,7 @@ def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str omnimessage_id: UUID of the scheduled Omnimessage to be cancelled (required) + :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) :return: None If the method is called asynchronously, returns the request thread. @@ -67,7 +67,7 @@ def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): # >>> result = thread.get() :param async_req bool - :param str omnimessage_id: UUID of the scheduled Omnimessage to be cancelled (required) + :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) :return: None If the method is called asynchronously, returns the request thread. diff --git a/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py index c2a29e5..c34fc75 100644 --- a/messente_api/models/delivery_report_response.py +++ b/messente_api/models/delivery_report_response.py @@ -109,7 +109,7 @@ def to(self, to): def omnimessage_id(self): """Gets the omnimessage_id of this DeliveryReportResponse. # noqa: E501 - Unique identifier for the Omnimessage # noqa: E501 + Unique identifier for the omnimessage # noqa: E501 :return: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 :rtype: str @@ -120,7 +120,7 @@ def omnimessage_id(self): def omnimessage_id(self, omnimessage_id): """Sets the omnimessage_id of this DeliveryReportResponse. - Unique identifier for the Omnimessage # noqa: E501 + Unique identifier for the omnimessage # noqa: E501 :param omnimessage_id: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 :type: str diff --git a/messente_api/models/delivery_result.py b/messente_api/models/delivery_result.py index 9e1dd24..e4b38d3 100644 --- a/messente_api/models/delivery_result.py +++ b/messente_api/models/delivery_result.py @@ -142,7 +142,7 @@ def message_id(self, message_id): def error(self): """Gets the error of this DeliveryResult. # noqa: E501 - Human-readable description of what went wrong, *null* in case of success or if the messages has not been processed yet # noqa: E501 + Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 :return: The error of this DeliveryResult. # noqa: E501 :rtype: str @@ -153,7 +153,7 @@ def error(self): def error(self, error): """Sets the error of this DeliveryResult. - Human-readable description of what went wrong, *null* in case of success or if the messages has not been processed yet # noqa: E501 + Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 :param error: The error of this DeliveryResult. # noqa: E501 :type: str diff --git a/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py index c76b95d..9046a05 100644 --- a/messente_api/models/group_response_fields.py +++ b/messente_api/models/group_response_fields.py @@ -111,7 +111,7 @@ def name(self, name): def created_on(self): """Gets the created_on of this GroupResponseFields. # noqa: E501 - format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 + Format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 :return: The created_on of this GroupResponseFields. # noqa: E501 :rtype: str @@ -122,7 +122,7 @@ def created_on(self): def created_on(self, created_on): """Sets the created_on of this GroupResponseFields. - format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 + Format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 :param created_on: The created_on of this GroupResponseFields. # noqa: E501 :type: str diff --git a/messente_api/models/omni_message_create_success_response.py b/messente_api/models/omni_message_create_success_response.py index dc487e8..f766585 100644 --- a/messente_api/models/omni_message_create_success_response.py +++ b/messente_api/models/omni_message_create_success_response.py @@ -59,7 +59,7 @@ def __init__(self, messages=None, to=None, omnimessage_id=None): # noqa: E501 def messages(self): """Gets the messages of this OmniMessageCreateSuccessResponse. # noqa: E501 - List of messages that compose the Omnimessage # noqa: E501 + List of messages that compose the omnimessage # noqa: E501 :return: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 :rtype: list[MessageResult] @@ -70,7 +70,7 @@ def messages(self): def messages(self, messages): """Sets the messages of this OmniMessageCreateSuccessResponse. - List of messages that compose the Omnimessage # noqa: E501 + List of messages that compose the omnimessage # noqa: E501 :param messages: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 :type: list[MessageResult] @@ -109,7 +109,7 @@ def to(self, to): def omnimessage_id(self): """Gets the omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 - Unique identifier for the Omnimessage # noqa: E501 + Unique identifier for the omnimessage # noqa: E501 :return: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 :rtype: str @@ -120,7 +120,7 @@ def omnimessage_id(self): def omnimessage_id(self, omnimessage_id): """Sets the omnimessage_id of this OmniMessageCreateSuccessResponse. - Unique identifier for the Omnimessage # noqa: E501 + Unique identifier for the omnimessage # noqa: E501 :param omnimessage_id: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 :type: str From 51ecb39512289eb7c4461896af573eb532870ae5 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Wed, 5 Jun 2019 10:10:29 +0000 Subject: [PATCH 08/16] Travis update: Jun 2019 (Build 256) [skip ci] --- docs/ContactFields.md | 18 +++++++++--------- docs/ContactListEnvelope.md | 2 +- docs/ContactUpdateFields.md | 18 +++++++++--------- docs/DeliveryReportResponse.md | 2 +- docs/ErrorOmnichannel.md | 2 +- docs/ErrorPhonebook.md | 2 +- docs/GroupListEnvelope.md | 2 +- docs/GroupName.md | 2 +- docs/GroupResponseFields.md | 6 +++--- docs/Omnimessage.md | 2 +- docs/SMS.md | 2 +- docs/Viber.md | 2 +- docs/WhatsApp.md | 2 +- messente_api/models/contact_fields.py | 18 ++++++++++++++++++ messente_api/models/contact_list_envelope.py | 2 ++ messente_api/models/contact_update_fields.py | 18 ++++++++++++++++++ .../models/delivery_report_response.py | 4 ++-- messente_api/models/error_omnichannel.py | 2 ++ messente_api/models/error_phonebook.py | 2 ++ messente_api/models/group_list_envelope.py | 2 ++ messente_api/models/group_name.py | 2 ++ messente_api/models/group_response_fields.py | 8 ++++++-- messente_api/models/omnimessage.py | 2 ++ messente_api/models/sms.py | 2 ++ messente_api/models/viber.py | 2 ++ messente_api/models/whats_app.py | 2 ++ 26 files changed, 93 insertions(+), 35 deletions(-) diff --git a/docs/ContactFields.md b/docs/ContactFields.md index e66daa3..03f273a 100644 --- a/docs/ContactFields.md +++ b/docs/ContactFields.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phone_number** | **str** | Phone number in e.164 format | -**email** | **str** | | [optional] -**first_name** | **str** | | [optional] -**last_name** | **str** | | [optional] -**company** | **str** | | [optional] -**title** | **str** | | [optional] -**custom** | **str** | | [optional] -**custom2** | **str** | | [optional] -**custom3** | **str** | | [optional] -**custom4** | **str** | | [optional] +**email** | **str** | The contact's email | [optional] +**first_name** | **str** | The contact's first name | [optional] +**last_name** | **str** | The contact's last name | [optional] +**company** | **str** | The contact's company | [optional] +**title** | **str** | The contact's title | [optional] +**custom** | **str** | The first custom field | [optional] +**custom2** | **str** | The second custom field | [optional] +**custom3** | **str** | The third custom field | [optional] +**custom4** | **str** | The fourth custom field | [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/ContactListEnvelope.md b/docs/ContactListEnvelope.md index 1eba474..22b82de 100644 --- a/docs/ContactListEnvelope.md +++ b/docs/ContactListEnvelope.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contacts** | [**list[ContactFields]**](ContactFields.md) | | [optional] +**contacts** | [**list[ContactFields]**](ContactFields.md) | An array of contacts | [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/ContactUpdateFields.md b/docs/ContactUpdateFields.md index f3e7af6..399a235 100644 --- a/docs/ContactUpdateFields.md +++ b/docs/ContactUpdateFields.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**first_name** | **str** | | [optional] -**last_name** | **str** | | [optional] -**company** | **str** | | [optional] -**title** | **str** | | [optional] -**custom** | **str** | | [optional] -**custom2** | **str** | | [optional] -**custom3** | **str** | | [optional] -**custom4** | **str** | | [optional] +**email** | **str** | The contact's email | [optional] +**first_name** | **str** | The contact's first name | [optional] +**last_name** | **str** | The contact's last name | [optional] +**company** | **str** | The contact's company | [optional] +**title** | **str** | The contact's title | [optional] +**custom** | **str** | The first custom field | [optional] +**custom2** | **str** | The second custom field | [optional] +**custom3** | **str** | The third custom field | [optional] +**custom4** | **str** | The fourth custom field | [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/DeliveryReportResponse.md b/docs/DeliveryReportResponse.md index 8e6e40b..b6b6360 100644 --- a/docs/DeliveryReportResponse.md +++ b/docs/DeliveryReportResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**statuses** | [**list[DeliveryResult]**](DeliveryResult.md) | Contains the delivery reports for each channnel, ordered by send order | +**statuses** | [**list[DeliveryResult]**](DeliveryResult.md) | Contains the delivery reports for each channel, ordered by send order | **to** | **str** | Phone number in e.164 format | **omnimessage_id** | **str** | Unique identifier for the omnimessage | diff --git a/docs/ErrorOmnichannel.md b/docs/ErrorOmnichannel.md index afe2b54..c99d1c7 100644 --- a/docs/ErrorOmnichannel.md +++ b/docs/ErrorOmnichannel.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**list[ErrorItemOmnichannel]**](ErrorItemOmnichannel.md) | | +**errors** | [**list[ErrorItemOmnichannel]**](ErrorItemOmnichannel.md) | An array of errors | [[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/ErrorPhonebook.md b/docs/ErrorPhonebook.md index ea9d9e2..9268f29 100644 --- a/docs/ErrorPhonebook.md +++ b/docs/ErrorPhonebook.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | [**list[ErrorItemPhonebook]**](ErrorItemPhonebook.md) | | +**errors** | [**list[ErrorItemPhonebook]**](ErrorItemPhonebook.md) | An array of errors | [[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/GroupListEnvelope.md b/docs/GroupListEnvelope.md index 9532554..ce4e0e2 100644 --- a/docs/GroupListEnvelope.md +++ b/docs/GroupListEnvelope.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**groups** | [**list[GroupResponseFields]**](GroupResponseFields.md) | | [optional] +**groups** | [**list[GroupResponseFields]**](GroupResponseFields.md) | An array of groups | [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/GroupName.md b/docs/GroupName.md index 474c165..de04bf6 100644 --- a/docs/GroupName.md +++ b/docs/GroupName.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | +**name** | **str** | The name of the group | [[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/GroupResponseFields.md b/docs/GroupResponseFields.md index 8eff35d..5ef7581 100644 --- a/docs/GroupResponseFields.md +++ b/docs/GroupResponseFields.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | Id string in UUID format | -**name** | **str** | | -**created_on** | **str** | Format %Y-%m-%dT%H:%M:%S.%fZ | [optional] -**contacts_count** | **int** | | +**name** | **str** | The name of the group | +**created_on** | **str** | When the group was created | [optional] +**contacts_count** | **int** | The count of contacts in the group | [[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/Omnimessage.md b/docs/Omnimessage.md index e360d09..496f2c4 100644 --- a/docs/Omnimessage.md +++ b/docs/Omnimessage.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **to** | **str** | Phone number in e.164 format | -**messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | | +**messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | An array of messages | **dlr_url** | **str** | URL where the delivery report will be sent | [optional] **text_store** | [**TextStore**](TextStore.md) | | [optional] **time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional] diff --git a/docs/SMS.md b/docs/SMS.md index c2d87c5..05d2751 100644 --- a/docs/SMS.md +++ b/docs/SMS.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] **autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] **udh** | **str** | hex-encoded string containing SMS UDH | [optional] -**channel** | **str** | | [optional] [default to 'sms'] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'sms'] [[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/Viber.md b/docs/Viber.md index e28b91a..5c92fea 100644 --- a/docs/Viber.md +++ b/docs/Viber.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **image_url** | **str** | URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] **button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] **button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] -**channel** | **str** | | [optional] [default to 'viber'] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber'] [[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/WhatsApp.md b/docs/WhatsApp.md index 0c01edf..191e095 100644 --- a/docs/WhatsApp.md +++ b/docs/WhatsApp.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional] **document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional] **audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional] -**channel** | **str** | | [optional] [default to 'whatsapp'] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'whatsapp'] [[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/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py index cfc4beb..70dc80c 100644 --- a/messente_api/models/contact_fields.py +++ b/messente_api/models/contact_fields.py @@ -112,6 +112,7 @@ def phone_number(self, phone_number): def email(self): """Gets the email of this ContactFields. # noqa: E501 + The contact's email # noqa: E501 :return: The email of this ContactFields. # noqa: E501 :rtype: str @@ -122,6 +123,7 @@ def email(self): def email(self, email): """Sets the email of this ContactFields. + The contact's email # noqa: E501 :param email: The email of this ContactFields. # noqa: E501 :type: str @@ -133,6 +135,7 @@ def email(self, email): def first_name(self): """Gets the first_name of this ContactFields. # noqa: E501 + The contact's first name # noqa: E501 :return: The first_name of this ContactFields. # noqa: E501 :rtype: str @@ -143,6 +146,7 @@ def first_name(self): def first_name(self, first_name): """Sets the first_name of this ContactFields. + The contact's first name # noqa: E501 :param first_name: The first_name of this ContactFields. # noqa: E501 :type: str @@ -154,6 +158,7 @@ def first_name(self, first_name): def last_name(self): """Gets the last_name of this ContactFields. # noqa: E501 + The contact's last name # noqa: E501 :return: The last_name of this ContactFields. # noqa: E501 :rtype: str @@ -164,6 +169,7 @@ def last_name(self): def last_name(self, last_name): """Sets the last_name of this ContactFields. + The contact's last name # noqa: E501 :param last_name: The last_name of this ContactFields. # noqa: E501 :type: str @@ -175,6 +181,7 @@ def last_name(self, last_name): def company(self): """Gets the company of this ContactFields. # noqa: E501 + The contact's company # noqa: E501 :return: The company of this ContactFields. # noqa: E501 :rtype: str @@ -185,6 +192,7 @@ def company(self): def company(self, company): """Sets the company of this ContactFields. + The contact's company # noqa: E501 :param company: The company of this ContactFields. # noqa: E501 :type: str @@ -196,6 +204,7 @@ def company(self, company): def title(self): """Gets the title of this ContactFields. # noqa: E501 + The contact's title # noqa: E501 :return: The title of this ContactFields. # noqa: E501 :rtype: str @@ -206,6 +215,7 @@ def title(self): def title(self, title): """Sets the title of this ContactFields. + The contact's title # noqa: E501 :param title: The title of this ContactFields. # noqa: E501 :type: str @@ -217,6 +227,7 @@ def title(self, title): def custom(self): """Gets the custom of this ContactFields. # noqa: E501 + The first custom field # noqa: E501 :return: The custom of this ContactFields. # noqa: E501 :rtype: str @@ -227,6 +238,7 @@ def custom(self): def custom(self, custom): """Sets the custom of this ContactFields. + The first custom field # noqa: E501 :param custom: The custom of this ContactFields. # noqa: E501 :type: str @@ -238,6 +250,7 @@ def custom(self, custom): def custom2(self): """Gets the custom2 of this ContactFields. # noqa: E501 + The second custom field # noqa: E501 :return: The custom2 of this ContactFields. # noqa: E501 :rtype: str @@ -248,6 +261,7 @@ def custom2(self): def custom2(self, custom2): """Sets the custom2 of this ContactFields. + The second custom field # noqa: E501 :param custom2: The custom2 of this ContactFields. # noqa: E501 :type: str @@ -259,6 +273,7 @@ def custom2(self, custom2): def custom3(self): """Gets the custom3 of this ContactFields. # noqa: E501 + The third custom field # noqa: E501 :return: The custom3 of this ContactFields. # noqa: E501 :rtype: str @@ -269,6 +284,7 @@ def custom3(self): def custom3(self, custom3): """Sets the custom3 of this ContactFields. + The third custom field # noqa: E501 :param custom3: The custom3 of this ContactFields. # noqa: E501 :type: str @@ -280,6 +296,7 @@ def custom3(self, custom3): def custom4(self): """Gets the custom4 of this ContactFields. # noqa: E501 + The fourth custom field # noqa: E501 :return: The custom4 of this ContactFields. # noqa: E501 :rtype: str @@ -290,6 +307,7 @@ def custom4(self): def custom4(self, custom4): """Sets the custom4 of this ContactFields. + The fourth custom field # noqa: E501 :param custom4: The custom4 of this ContactFields. # noqa: E501 :type: str diff --git a/messente_api/models/contact_list_envelope.py b/messente_api/models/contact_list_envelope.py index bd95378..24e021a 100644 --- a/messente_api/models/contact_list_envelope.py +++ b/messente_api/models/contact_list_envelope.py @@ -52,6 +52,7 @@ def __init__(self, contacts=None): # noqa: E501 def contacts(self): """Gets the contacts of this ContactListEnvelope. # noqa: E501 + An array of contacts # noqa: E501 :return: The contacts of this ContactListEnvelope. # noqa: E501 :rtype: list[ContactFields] @@ -62,6 +63,7 @@ def contacts(self): def contacts(self, contacts): """Sets the contacts of this ContactListEnvelope. + An array of contacts # noqa: E501 :param contacts: The contacts of this ContactListEnvelope. # noqa: E501 :type: list[ContactFields] diff --git a/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py index 0d6678c..9f93f48 100644 --- a/messente_api/models/contact_update_fields.py +++ b/messente_api/models/contact_update_fields.py @@ -83,6 +83,7 @@ def __init__(self, email=None, first_name=None, last_name=None, company=None, ti def email(self): """Gets the email of this ContactUpdateFields. # noqa: E501 + The contact's email # noqa: E501 :return: The email of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -93,6 +94,7 @@ def email(self): def email(self, email): """Sets the email of this ContactUpdateFields. + The contact's email # noqa: E501 :param email: The email of this ContactUpdateFields. # noqa: E501 :type: str @@ -104,6 +106,7 @@ def email(self, email): def first_name(self): """Gets the first_name of this ContactUpdateFields. # noqa: E501 + The contact's first name # noqa: E501 :return: The first_name of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -114,6 +117,7 @@ def first_name(self): def first_name(self, first_name): """Sets the first_name of this ContactUpdateFields. + The contact's first name # noqa: E501 :param first_name: The first_name of this ContactUpdateFields. # noqa: E501 :type: str @@ -125,6 +129,7 @@ def first_name(self, first_name): def last_name(self): """Gets the last_name of this ContactUpdateFields. # noqa: E501 + The contact's last name # noqa: E501 :return: The last_name of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -135,6 +140,7 @@ def last_name(self): def last_name(self, last_name): """Sets the last_name of this ContactUpdateFields. + The contact's last name # noqa: E501 :param last_name: The last_name of this ContactUpdateFields. # noqa: E501 :type: str @@ -146,6 +152,7 @@ def last_name(self, last_name): def company(self): """Gets the company of this ContactUpdateFields. # noqa: E501 + The contact's company # noqa: E501 :return: The company of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -156,6 +163,7 @@ def company(self): def company(self, company): """Sets the company of this ContactUpdateFields. + The contact's company # noqa: E501 :param company: The company of this ContactUpdateFields. # noqa: E501 :type: str @@ -167,6 +175,7 @@ def company(self, company): def title(self): """Gets the title of this ContactUpdateFields. # noqa: E501 + The contact's title # noqa: E501 :return: The title of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -177,6 +186,7 @@ def title(self): def title(self, title): """Sets the title of this ContactUpdateFields. + The contact's title # noqa: E501 :param title: The title of this ContactUpdateFields. # noqa: E501 :type: str @@ -188,6 +198,7 @@ def title(self, title): def custom(self): """Gets the custom of this ContactUpdateFields. # noqa: E501 + The first custom field # noqa: E501 :return: The custom of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -198,6 +209,7 @@ def custom(self): def custom(self, custom): """Sets the custom of this ContactUpdateFields. + The first custom field # noqa: E501 :param custom: The custom of this ContactUpdateFields. # noqa: E501 :type: str @@ -209,6 +221,7 @@ def custom(self, custom): def custom2(self): """Gets the custom2 of this ContactUpdateFields. # noqa: E501 + The second custom field # noqa: E501 :return: The custom2 of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -219,6 +232,7 @@ def custom2(self): def custom2(self, custom2): """Sets the custom2 of this ContactUpdateFields. + The second custom field # noqa: E501 :param custom2: The custom2 of this ContactUpdateFields. # noqa: E501 :type: str @@ -230,6 +244,7 @@ def custom2(self, custom2): def custom3(self): """Gets the custom3 of this ContactUpdateFields. # noqa: E501 + The third custom field # noqa: E501 :return: The custom3 of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -240,6 +255,7 @@ def custom3(self): def custom3(self, custom3): """Sets the custom3 of this ContactUpdateFields. + The third custom field # noqa: E501 :param custom3: The custom3 of this ContactUpdateFields. # noqa: E501 :type: str @@ -251,6 +267,7 @@ def custom3(self, custom3): def custom4(self): """Gets the custom4 of this ContactUpdateFields. # noqa: E501 + The fourth custom field # noqa: E501 :return: The custom4 of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -261,6 +278,7 @@ def custom4(self): def custom4(self, custom4): """Sets the custom4 of this ContactUpdateFields. + The fourth custom field # noqa: E501 :param custom4: The custom4 of this ContactUpdateFields. # noqa: E501 :type: str diff --git a/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py index c34fc75..da1e0f1 100644 --- a/messente_api/models/delivery_report_response.py +++ b/messente_api/models/delivery_report_response.py @@ -59,7 +59,7 @@ def __init__(self, statuses=None, to=None, omnimessage_id=None): # noqa: E501 def statuses(self): """Gets the statuses of this DeliveryReportResponse. # noqa: E501 - Contains the delivery reports for each channnel, ordered by send order # noqa: E501 + Contains the delivery reports for each channel, ordered by send order # noqa: E501 :return: The statuses of this DeliveryReportResponse. # noqa: E501 :rtype: list[DeliveryResult] @@ -70,7 +70,7 @@ def statuses(self): def statuses(self, statuses): """Sets the statuses of this DeliveryReportResponse. - Contains the delivery reports for each channnel, ordered by send order # noqa: E501 + Contains the delivery reports for each channel, ordered by send order # noqa: E501 :param statuses: The statuses of this DeliveryReportResponse. # noqa: E501 :type: list[DeliveryResult] diff --git a/messente_api/models/error_omnichannel.py b/messente_api/models/error_omnichannel.py index a5a7213..899311d 100644 --- a/messente_api/models/error_omnichannel.py +++ b/messente_api/models/error_omnichannel.py @@ -51,6 +51,7 @@ def __init__(self, errors=None): # noqa: E501 def errors(self): """Gets the errors of this ErrorOmnichannel. # noqa: E501 + An array of errors # noqa: E501 :return: The errors of this ErrorOmnichannel. # noqa: E501 :rtype: list[ErrorItemOmnichannel] @@ -61,6 +62,7 @@ def errors(self): def errors(self, errors): """Sets the errors of this ErrorOmnichannel. + An array of errors # noqa: E501 :param errors: The errors of this ErrorOmnichannel. # noqa: E501 :type: list[ErrorItemOmnichannel] diff --git a/messente_api/models/error_phonebook.py b/messente_api/models/error_phonebook.py index 79294fc..d6503b4 100644 --- a/messente_api/models/error_phonebook.py +++ b/messente_api/models/error_phonebook.py @@ -51,6 +51,7 @@ def __init__(self, errors=None): # noqa: E501 def errors(self): """Gets the errors of this ErrorPhonebook. # noqa: E501 + An array of errors # noqa: E501 :return: The errors of this ErrorPhonebook. # noqa: E501 :rtype: list[ErrorItemPhonebook] @@ -61,6 +62,7 @@ def errors(self): def errors(self, errors): """Sets the errors of this ErrorPhonebook. + An array of errors # noqa: E501 :param errors: The errors of this ErrorPhonebook. # noqa: E501 :type: list[ErrorItemPhonebook] diff --git a/messente_api/models/group_list_envelope.py b/messente_api/models/group_list_envelope.py index 129232d..b727f91 100644 --- a/messente_api/models/group_list_envelope.py +++ b/messente_api/models/group_list_envelope.py @@ -52,6 +52,7 @@ def __init__(self, groups=None): # noqa: E501 def groups(self): """Gets the groups of this GroupListEnvelope. # noqa: E501 + An array of groups # noqa: E501 :return: The groups of this GroupListEnvelope. # noqa: E501 :rtype: list[GroupResponseFields] @@ -62,6 +63,7 @@ def groups(self): def groups(self, groups): """Sets the groups of this GroupListEnvelope. + An array of groups # noqa: E501 :param groups: The groups of this GroupListEnvelope. # noqa: E501 :type: list[GroupResponseFields] diff --git a/messente_api/models/group_name.py b/messente_api/models/group_name.py index e09b8c4..533e32b 100644 --- a/messente_api/models/group_name.py +++ b/messente_api/models/group_name.py @@ -51,6 +51,7 @@ def __init__(self, name=None): # noqa: E501 def name(self): """Gets the name of this GroupName. # noqa: E501 + The name of the group # noqa: E501 :return: The name of this GroupName. # noqa: E501 :rtype: str @@ -61,6 +62,7 @@ def name(self): def name(self, name): """Sets the name of this GroupName. + The name of the group # noqa: E501 :param name: The name of this GroupName. # noqa: E501 :type: str diff --git a/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py index 9046a05..0a8eaca 100644 --- a/messente_api/models/group_response_fields.py +++ b/messente_api/models/group_response_fields.py @@ -88,6 +88,7 @@ def id(self, id): def name(self): """Gets the name of this GroupResponseFields. # noqa: E501 + The name of the group # noqa: E501 :return: The name of this GroupResponseFields. # noqa: E501 :rtype: str @@ -98,6 +99,7 @@ def name(self): def name(self, name): """Sets the name of this GroupResponseFields. + The name of the group # noqa: E501 :param name: The name of this GroupResponseFields. # noqa: E501 :type: str @@ -111,7 +113,7 @@ def name(self, name): def created_on(self): """Gets the created_on of this GroupResponseFields. # noqa: E501 - Format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 + When the group was created # noqa: E501 :return: The created_on of this GroupResponseFields. # noqa: E501 :rtype: str @@ -122,7 +124,7 @@ def created_on(self): def created_on(self, created_on): """Sets the created_on of this GroupResponseFields. - Format %Y-%m-%dT%H:%M:%S.%fZ # noqa: E501 + When the group was created # noqa: E501 :param created_on: The created_on of this GroupResponseFields. # noqa: E501 :type: str @@ -134,6 +136,7 @@ def created_on(self, created_on): def contacts_count(self): """Gets the contacts_count of this GroupResponseFields. # noqa: E501 + The count of contacts in the group # noqa: E501 :return: The contacts_count of this GroupResponseFields. # noqa: E501 :rtype: int @@ -144,6 +147,7 @@ def contacts_count(self): def contacts_count(self, contacts_count): """Sets the contacts_count of this GroupResponseFields. + The count of contacts in the group # noqa: E501 :param contacts_count: The contacts_count of this GroupResponseFields. # noqa: E501 :type: int diff --git a/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py index f738304..b48064f 100644 --- a/messente_api/models/omnimessage.py +++ b/messente_api/models/omnimessage.py @@ -95,6 +95,7 @@ def to(self, to): def messages(self): """Gets the messages of this Omnimessage. # noqa: E501 + An array of messages # noqa: E501 :return: The messages of this Omnimessage. # noqa: E501 :rtype: list[OneOfViberSMSWhatsApp] @@ -105,6 +106,7 @@ def messages(self): def messages(self, messages): """Sets the messages of this Omnimessage. + An array of messages # noqa: E501 :param messages: The messages of this Omnimessage. # noqa: E501 :type: list[OneOfViberSMSWhatsApp] diff --git a/messente_api/models/sms.py b/messente_api/models/sms.py index 650dfd1..7b354dc 100644 --- a/messente_api/models/sms.py +++ b/messente_api/models/sms.py @@ -199,6 +199,7 @@ def udh(self, udh): def channel(self): """Gets the channel of this SMS. # noqa: E501 + The channel used to deliver the message # noqa: E501 :return: The channel of this SMS. # noqa: E501 :rtype: str @@ -209,6 +210,7 @@ def channel(self): def channel(self, channel): """Sets the channel of this SMS. + The channel used to deliver the message # noqa: E501 :param channel: The channel of this SMS. # noqa: E501 :type: str diff --git a/messente_api/models/viber.py b/messente_api/models/viber.py index ee69376..b9259a9 100644 --- a/messente_api/models/viber.py +++ b/messente_api/models/viber.py @@ -220,6 +220,7 @@ def button_text(self, button_text): def channel(self): """Gets the channel of this Viber. # noqa: E501 + The channel used to deliver the message # noqa: E501 :return: The channel of this Viber. # noqa: E501 :rtype: str @@ -230,6 +231,7 @@ def channel(self): def channel(self, channel): """Sets the channel of this Viber. + The channel used to deliver the message # noqa: E501 :param channel: The channel of this Viber. # noqa: E501 :type: str diff --git a/messente_api/models/whats_app.py b/messente_api/models/whats_app.py index d897f52..18f6133 100644 --- a/messente_api/models/whats_app.py +++ b/messente_api/models/whats_app.py @@ -212,6 +212,7 @@ def audio(self, audio): def channel(self): """Gets the channel of this WhatsApp. # noqa: E501 + The channel used to deliver the message # noqa: E501 :return: The channel of this WhatsApp. # noqa: E501 :rtype: str @@ -222,6 +223,7 @@ def channel(self): def channel(self, channel): """Sets the channel of this WhatsApp. + The channel used to deliver the message # noqa: E501 :param channel: The channel of this WhatsApp. # noqa: E501 :type: str From 41568227776433e4aa4d8a7898af18e9f7707b29 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Wed, 5 Jun 2019 10:34:57 +0000 Subject: [PATCH 09/16] Travis update: Jun 2019 (Build 257) [skip ci] --- docs/ContactFields.md | 9 ++-- docs/ContactUpdateFields.md | 9 ++-- messente_api/models/contact_fields.py | 45 ++++---------------- messente_api/models/contact_update_fields.py | 45 ++++---------------- 4 files changed, 26 insertions(+), 82 deletions(-) diff --git a/docs/ContactFields.md b/docs/ContactFields.md index 03f273a..380e424 100644 --- a/docs/ContactFields.md +++ b/docs/ContactFields.md @@ -4,11 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phone_number** | **str** | Phone number in e.164 format | -**email** | **str** | The contact's email | [optional] -**first_name** | **str** | The contact's first name | [optional] -**last_name** | **str** | The contact's last name | [optional] -**company** | **str** | The contact's company | [optional] -**title** | **str** | The contact's title | [optional] +**email** | **str** | The email of the contact | [optional] +**first_name** | **str** | The first name of the contact | [optional] +**last_name** | **str** | The last name of the contact | [optional] +**company** | **str** | The company of the contact | [optional] **custom** | **str** | The first custom field | [optional] **custom2** | **str** | The second custom field | [optional] **custom3** | **str** | The third custom field | [optional] diff --git a/docs/ContactUpdateFields.md b/docs/ContactUpdateFields.md index 399a235..08e6f9e 100644 --- a/docs/ContactUpdateFields.md +++ b/docs/ContactUpdateFields.md @@ -3,11 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | The contact's email | [optional] -**first_name** | **str** | The contact's first name | [optional] -**last_name** | **str** | The contact's last name | [optional] -**company** | **str** | The contact's company | [optional] -**title** | **str** | The contact's title | [optional] +**email** | **str** | The email of the contact | [optional] +**first_name** | **str** | The first name of the contact | [optional] +**last_name** | **str** | The last name of the contact | [optional] +**company** | **str** | The company of the contact | [optional] **custom** | **str** | The first custom field | [optional] **custom2** | **str** | The second custom field | [optional] **custom3** | **str** | The third custom field | [optional] diff --git a/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py index 70dc80c..9b221c7 100644 --- a/messente_api/models/contact_fields.py +++ b/messente_api/models/contact_fields.py @@ -37,7 +37,6 @@ class ContactFields(object): 'first_name': 'str', 'last_name': 'str', 'company': 'str', - 'title': 'str', 'custom': 'str', 'custom2': 'str', 'custom3': 'str', @@ -50,14 +49,13 @@ class ContactFields(object): 'first_name': 'firstName', 'last_name': 'lastName', 'company': 'company', - 'title': 'title', 'custom': 'custom', 'custom2': 'custom2', 'custom3': 'custom3', 'custom4': 'custom4' } - 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): # noqa: E501 + def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 """ContactFields - a model defined in OpenAPI""" # noqa: E501 self._phone_number = None @@ -65,7 +63,6 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non self._first_name = None self._last_name = None self._company = None - self._title = None self._custom = None self._custom2 = None self._custom3 = None @@ -77,7 +74,6 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non self.first_name = first_name self.last_name = last_name self.company = company - self.title = title self.custom = custom self.custom2 = custom2 self.custom3 = custom3 @@ -112,7 +108,7 @@ def phone_number(self, phone_number): def email(self): """Gets the email of this ContactFields. # noqa: E501 - The contact's email # noqa: E501 + The email of the contact # noqa: E501 :return: The email of this ContactFields. # noqa: E501 :rtype: str @@ -123,7 +119,7 @@ def email(self): def email(self, email): """Sets the email of this ContactFields. - The contact's email # noqa: E501 + The email of the contact # noqa: E501 :param email: The email of this ContactFields. # noqa: E501 :type: str @@ -135,7 +131,7 @@ def email(self, email): def first_name(self): """Gets the first_name of this ContactFields. # noqa: E501 - The contact's first name # noqa: E501 + The first name of the contact # noqa: E501 :return: The first_name of this ContactFields. # noqa: E501 :rtype: str @@ -146,7 +142,7 @@ def first_name(self): def first_name(self, first_name): """Sets the first_name of this ContactFields. - The contact's first name # noqa: E501 + The first name of the contact # noqa: E501 :param first_name: The first_name of this ContactFields. # noqa: E501 :type: str @@ -158,7 +154,7 @@ def first_name(self, first_name): def last_name(self): """Gets the last_name of this ContactFields. # noqa: E501 - The contact's last name # noqa: E501 + The last name of the contact # noqa: E501 :return: The last_name of this ContactFields. # noqa: E501 :rtype: str @@ -169,7 +165,7 @@ def last_name(self): def last_name(self, last_name): """Sets the last_name of this ContactFields. - The contact's last name # noqa: E501 + The last name of the contact # noqa: E501 :param last_name: The last_name of this ContactFields. # noqa: E501 :type: str @@ -181,7 +177,7 @@ def last_name(self, last_name): def company(self): """Gets the company of this ContactFields. # noqa: E501 - The contact's company # noqa: E501 + The company of the contact # noqa: E501 :return: The company of this ContactFields. # noqa: E501 :rtype: str @@ -192,7 +188,7 @@ def company(self): def company(self, company): """Sets the company of this ContactFields. - The contact's company # noqa: E501 + The company of the contact # noqa: E501 :param company: The company of this ContactFields. # noqa: E501 :type: str @@ -200,29 +196,6 @@ def company(self, company): self._company = company - @property - def title(self): - """Gets the title of this ContactFields. # noqa: E501 - - The contact's title # noqa: E501 - - :return: The title of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ContactFields. - - The contact's title # noqa: E501 - - :param title: The title of this ContactFields. # noqa: E501 - :type: str - """ - - self._title = title - @property def custom(self): """Gets the custom of this ContactFields. # noqa: E501 diff --git a/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py index 9f93f48..9466b01 100644 --- a/messente_api/models/contact_update_fields.py +++ b/messente_api/models/contact_update_fields.py @@ -36,7 +36,6 @@ class ContactUpdateFields(object): 'first_name': 'str', 'last_name': 'str', 'company': 'str', - 'title': 'str', 'custom': 'str', 'custom2': 'str', 'custom3': 'str', @@ -48,21 +47,19 @@ class ContactUpdateFields(object): 'first_name': 'firstName', 'last_name': 'lastName', 'company': 'company', - 'title': 'title', 'custom': 'custom', 'custom2': 'custom2', 'custom3': 'custom3', 'custom4': 'custom4' } - def __init__(self, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 + def __init__(self, email=None, first_name=None, last_name=None, company=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 """ContactUpdateFields - a model defined in OpenAPI""" # noqa: E501 self._email = None self._first_name = None self._last_name = None self._company = None - self._title = None self._custom = None self._custom2 = None self._custom3 = None @@ -73,7 +70,6 @@ def __init__(self, email=None, first_name=None, last_name=None, company=None, ti self.first_name = first_name self.last_name = last_name self.company = company - self.title = title self.custom = custom self.custom2 = custom2 self.custom3 = custom3 @@ -83,7 +79,7 @@ def __init__(self, email=None, first_name=None, last_name=None, company=None, ti def email(self): """Gets the email of this ContactUpdateFields. # noqa: E501 - The contact's email # noqa: E501 + The email of the contact # noqa: E501 :return: The email of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -94,7 +90,7 @@ def email(self): def email(self, email): """Sets the email of this ContactUpdateFields. - The contact's email # noqa: E501 + The email of the contact # noqa: E501 :param email: The email of this ContactUpdateFields. # noqa: E501 :type: str @@ -106,7 +102,7 @@ def email(self, email): def first_name(self): """Gets the first_name of this ContactUpdateFields. # noqa: E501 - The contact's first name # noqa: E501 + The first name of the contact # noqa: E501 :return: The first_name of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -117,7 +113,7 @@ def first_name(self): def first_name(self, first_name): """Sets the first_name of this ContactUpdateFields. - The contact's first name # noqa: E501 + The first name of the contact # noqa: E501 :param first_name: The first_name of this ContactUpdateFields. # noqa: E501 :type: str @@ -129,7 +125,7 @@ def first_name(self, first_name): def last_name(self): """Gets the last_name of this ContactUpdateFields. # noqa: E501 - The contact's last name # noqa: E501 + The last name of the contact # noqa: E501 :return: The last_name of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -140,7 +136,7 @@ def last_name(self): def last_name(self, last_name): """Sets the last_name of this ContactUpdateFields. - The contact's last name # noqa: E501 + The last name of the contact # noqa: E501 :param last_name: The last_name of this ContactUpdateFields. # noqa: E501 :type: str @@ -152,7 +148,7 @@ def last_name(self, last_name): def company(self): """Gets the company of this ContactUpdateFields. # noqa: E501 - The contact's company # noqa: E501 + The company of the contact # noqa: E501 :return: The company of this ContactUpdateFields. # noqa: E501 :rtype: str @@ -163,7 +159,7 @@ def company(self): def company(self, company): """Sets the company of this ContactUpdateFields. - The contact's company # noqa: E501 + The company of the contact # noqa: E501 :param company: The company of this ContactUpdateFields. # noqa: E501 :type: str @@ -171,29 +167,6 @@ def company(self, company): self._company = company - @property - def title(self): - """Gets the title of this ContactUpdateFields. # noqa: E501 - - The contact's title # noqa: E501 - - :return: The title of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ContactUpdateFields. - - The contact's title # noqa: E501 - - :param title: The title of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._title = title - @property def custom(self): """Gets the custom of this ContactUpdateFields. # noqa: E501 From f097da8b850b58656f3cf6f14dc90a9c3436f51e Mon Sep 17 00:00:00 2001 From: api-librarian Date: Wed, 5 Jun 2019 10:43:25 +0000 Subject: [PATCH 10/16] Travis update: Jun 2019 (Build 259) [skip ci] --- docs/ContactFields.md | 1 + docs/ContactUpdateFields.md | 1 + messente_api/models/contact_fields.py | 29 +++++++++++++++++++- messente_api/models/contact_update_fields.py | 29 +++++++++++++++++++- 4 files changed, 58 insertions(+), 2 deletions(-) diff --git a/docs/ContactFields.md b/docs/ContactFields.md index 380e424..3e97de7 100644 --- a/docs/ContactFields.md +++ b/docs/ContactFields.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **first_name** | **str** | The first name of the contact | [optional] **last_name** | **str** | The last name of the contact | [optional] **company** | **str** | The company of the contact | [optional] +**title** | **str** | The title of the contact | [optional] **custom** | **str** | The first custom field | [optional] **custom2** | **str** | The second custom field | [optional] **custom3** | **str** | The third custom field | [optional] diff --git a/docs/ContactUpdateFields.md b/docs/ContactUpdateFields.md index 08e6f9e..2628bad 100644 --- a/docs/ContactUpdateFields.md +++ b/docs/ContactUpdateFields.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **first_name** | **str** | The first name of the contact | [optional] **last_name** | **str** | The last name of the contact | [optional] **company** | **str** | The company of the contact | [optional] +**title** | **str** | The title of the contact | [optional] **custom** | **str** | The first custom field | [optional] **custom2** | **str** | The second custom field | [optional] **custom3** | **str** | The third custom field | [optional] diff --git a/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py index 9b221c7..ff78e4e 100644 --- a/messente_api/models/contact_fields.py +++ b/messente_api/models/contact_fields.py @@ -37,6 +37,7 @@ class ContactFields(object): 'first_name': 'str', 'last_name': 'str', 'company': 'str', + 'title': 'str', 'custom': 'str', 'custom2': 'str', 'custom3': 'str', @@ -49,13 +50,14 @@ class ContactFields(object): 'first_name': 'firstName', 'last_name': 'lastName', 'company': 'company', + 'title': 'title', 'custom': 'custom', 'custom2': 'custom2', 'custom3': 'custom3', 'custom4': 'custom4' } - def __init__(self, phone_number=None, email=None, first_name=None, last_name=None, company=None, custom=None, custom2=None, custom3=None, custom4=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): # noqa: E501 """ContactFields - a model defined in OpenAPI""" # noqa: E501 self._phone_number = None @@ -63,6 +65,7 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non self._first_name = None self._last_name = None self._company = None + self._title = None self._custom = None self._custom2 = None self._custom3 = None @@ -74,6 +77,7 @@ def __init__(self, phone_number=None, email=None, first_name=None, last_name=Non self.first_name = first_name self.last_name = last_name self.company = company + self.title = title self.custom = custom self.custom2 = custom2 self.custom3 = custom3 @@ -196,6 +200,29 @@ def company(self, company): self._company = company + @property + def title(self): + """Gets the title of this ContactFields. # noqa: E501 + + The title of the contact # noqa: E501 + + :return: The title of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ContactFields. + + The title of the contact # noqa: E501 + + :param title: The title of this ContactFields. # noqa: E501 + :type: str + """ + + self._title = title + @property def custom(self): """Gets the custom of this ContactFields. # noqa: E501 diff --git a/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py index 9466b01..166b4bb 100644 --- a/messente_api/models/contact_update_fields.py +++ b/messente_api/models/contact_update_fields.py @@ -36,6 +36,7 @@ class ContactUpdateFields(object): 'first_name': 'str', 'last_name': 'str', 'company': 'str', + 'title': 'str', 'custom': 'str', 'custom2': 'str', 'custom3': 'str', @@ -47,19 +48,21 @@ class ContactUpdateFields(object): 'first_name': 'firstName', 'last_name': 'lastName', 'company': 'company', + 'title': 'title', 'custom': 'custom', 'custom2': 'custom2', 'custom3': 'custom3', 'custom4': 'custom4' } - def __init__(self, email=None, first_name=None, last_name=None, company=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 + def __init__(self, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 """ContactUpdateFields - a model defined in OpenAPI""" # noqa: E501 self._email = None self._first_name = None self._last_name = None self._company = None + self._title = None self._custom = None self._custom2 = None self._custom3 = None @@ -70,6 +73,7 @@ def __init__(self, email=None, first_name=None, last_name=None, company=None, cu self.first_name = first_name self.last_name = last_name self.company = company + self.title = title self.custom = custom self.custom2 = custom2 self.custom3 = custom3 @@ -167,6 +171,29 @@ def company(self, company): self._company = company + @property + def title(self): + """Gets the title of this ContactUpdateFields. # noqa: E501 + + The title of the contact # noqa: E501 + + :return: The title of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ContactUpdateFields. + + The title of the contact # noqa: E501 + + :param title: The title of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._title = title + @property def custom(self): """Gets the custom of this ContactUpdateFields. # noqa: E501 From 805cecf70cd2d01bbee86642331ddef2d0e121cc Mon Sep 17 00:00:00 2001 From: api-librarian Date: Wed, 5 Jun 2019 12:03:29 +0000 Subject: [PATCH 11/16] Travis update: Jun 2019 (Build 261) [skip ci] --- docs/ContactsApi.md | 8 ++++---- docs/ErrorItemOmnichannel.md | 2 +- docs/ErrorItemPhonebook.md | 2 +- docs/GroupsApi.md | 12 ++++++------ docs/Omnimessage.md | 2 +- docs/Viber.md | 2 +- docs/WhatsAppText.md | 2 +- messente_api/api/contacts_api.py | 8 ++++---- messente_api/api/groups_api.py | 12 ++++++------ messente_api/models/error_item_omnichannel.py | 4 ++-- messente_api/models/error_item_phonebook.py | 4 ++-- messente_api/models/omnimessage.py | 4 ++-- messente_api/models/viber.py | 4 ++-- messente_api/models/whats_app_text.py | 4 ++-- 14 files changed, 35 insertions(+), 35 deletions(-) diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index 264338b..cffd1ec 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -35,7 +35,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format. +group_id = 'group_id_example' # str | String in UUID format phone = 'phone_example' # str | A phone number try: @@ -50,7 +50,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format. | + **group_id** | **str**| String in UUID format | **phone** | **str**| A phone number | ### Return type @@ -348,7 +348,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format. +group_id = 'group_id_example' # str | String in UUID format phone = 'phone_example' # str | A phone number try: @@ -362,7 +362,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format. | + **group_id** | **str**| String in UUID format | **phone** | **str**| A phone number | ### Return type diff --git a/docs/ErrorItemOmnichannel.md b/docs/ErrorItemOmnichannel.md index 2314dcd..a88f79b 100644 --- a/docs/ErrorItemOmnichannel.md +++ b/docs/ErrorItemOmnichannel.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | [**ErrorTitleOmnichannel**](ErrorTitleOmnichannel.md) | | -**detail** | **str** | Free form more detailed description of the error. | +**detail** | **str** | Free form more detailed description of the error | **code** | [**ErrorCodeOmnichannel**](ErrorCodeOmnichannel.md) | | **source** | **str** | Describes which field is causing the issue in the payload, null for non 400 status code responses | diff --git a/docs/ErrorItemPhonebook.md b/docs/ErrorItemPhonebook.md index cd389f2..2212061 100644 --- a/docs/ErrorItemPhonebook.md +++ b/docs/ErrorItemPhonebook.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | [**ErrorTitlePhonebook**](ErrorTitlePhonebook.md) | | -**detail** | **str** | Free form more detailed description of the error. | +**detail** | **str** | Free form more detailed description of the error | **code** | [**ErrorCodePhonebook**](ErrorCodePhonebook.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/GroupsApi.md b/docs/GroupsApi.md index 14afd14..035ad5b 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -84,7 +84,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format. +group_id = 'group_id_example' # str | String in UUID format try: # Deletes a group @@ -97,7 +97,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format. | + **group_id** | **str**| String in UUID format | ### Return type @@ -135,7 +135,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format. +group_id = 'group_id_example' # str | String in UUID format try: # Lists a group @@ -149,7 +149,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format. | + **group_id** | **str**| String in UUID format | ### Return type @@ -235,7 +235,7 @@ configuration.password = 'YOUR_PASSWORD' # create an instance of the API class api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format. +group_id = 'group_id_example' # str | String in UUID format group_name = messente_api.GroupName() # GroupName | try: @@ -250,7 +250,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format. | + **group_id** | **str**| String in UUID format | **group_name** | [**GroupName**](GroupName.md)| | ### Return type diff --git a/docs/Omnimessage.md b/docs/Omnimessage.md index 496f2c4..db93287 100644 --- a/docs/Omnimessage.md +++ b/docs/Omnimessage.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | An array of messages | **dlr_url** | **str** | URL where the delivery report will be sent | [optional] **text_store** | [**TextStore**](TextStore.md) | | [optional] -**time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional] +**time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [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/Viber.md b/docs/Viber.md index 5c92fea..75b138f 100644 --- a/docs/Viber.md +++ b/docs/Viber.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **sender** | **str** | Phone number or alphanumeric sender name | [optional] **validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] **text** | **str** | Plaintext content for Viber | [optional] -**image_url** | **str** | URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] +**image_url** | **str** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] **button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] **button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] **channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber'] diff --git a/docs/WhatsAppText.md b/docs/WhatsAppText.md index a4675a5..fc48d73 100644 --- a/docs/WhatsAppText.md +++ b/docs/WhatsAppText.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preview_url** | **bool** | Whether to display link preview if the message contains a hyperlink. | [optional] [default to True] +**preview_url** | **bool** | Whether to display link preview if the message contains a hyperlink | [optional] [default to True] **body** | **str** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting | [[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/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index 9be50c8..daf6b32 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -46,7 +46,7 @@ def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param str phone: A phone number (required) :return: object If the method is called asynchronously, @@ -68,7 +68,7 @@ def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param str phone: A phone number (required) :return: object If the method is called asynchronously, @@ -619,7 +619,7 @@ def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param str phone: A phone number (required) :return: None If the method is called asynchronously, @@ -641,7 +641,7 @@ def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param str phone: A phone number (required) :return: None If the method is called asynchronously, diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 11f34e5..8054711 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -144,7 +144,7 @@ def delete_group(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :return: None If the method is called asynchronously, returns the request thread. @@ -165,7 +165,7 @@ def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :return: None If the method is called asynchronously, returns the request thread. @@ -238,7 +238,7 @@ def fetch_group(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :return: GroupEnvelope If the method is called asynchronously, returns the request thread. @@ -259,7 +259,7 @@ def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :return: GroupEnvelope If the method is called asynchronously, returns the request thread. @@ -418,7 +418,7 @@ def update_group(self, group_id, group_name, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param GroupName group_name: (required) :return: GroupEnvelope If the method is called asynchronously, @@ -440,7 +440,7 @@ def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: >>> result = thread.get() :param async_req bool - :param str group_id: String in UUID format. (required) + :param str group_id: String in UUID format (required) :param GroupName group_name: (required) :return: GroupEnvelope If the method is called asynchronously, diff --git a/messente_api/models/error_item_omnichannel.py b/messente_api/models/error_item_omnichannel.py index 0faf1e3..8360dc7 100644 --- a/messente_api/models/error_item_omnichannel.py +++ b/messente_api/models/error_item_omnichannel.py @@ -86,7 +86,7 @@ def title(self, title): def detail(self): """Gets the detail of this ErrorItemOmnichannel. # noqa: E501 - Free form more detailed description of the error. # noqa: E501 + Free form more detailed description of the error # noqa: E501 :return: The detail of this ErrorItemOmnichannel. # noqa: E501 :rtype: str @@ -97,7 +97,7 @@ def detail(self): def detail(self, detail): """Sets the detail of this ErrorItemOmnichannel. - Free form more detailed description of the error. # noqa: E501 + Free form more detailed description of the error # noqa: E501 :param detail: The detail of this ErrorItemOmnichannel. # noqa: E501 :type: str diff --git a/messente_api/models/error_item_phonebook.py b/messente_api/models/error_item_phonebook.py index d345519..fdeb181 100644 --- a/messente_api/models/error_item_phonebook.py +++ b/messente_api/models/error_item_phonebook.py @@ -82,7 +82,7 @@ def title(self, title): def detail(self): """Gets the detail of this ErrorItemPhonebook. # noqa: E501 - Free form more detailed description of the error. # noqa: E501 + Free form more detailed description of the error # noqa: E501 :return: The detail of this ErrorItemPhonebook. # noqa: E501 :rtype: str @@ -93,7 +93,7 @@ def detail(self): def detail(self, detail): """Sets the detail of this ErrorItemPhonebook. - Free form more detailed description of the error. # noqa: E501 + Free form more detailed description of the error # noqa: E501 :param detail: The detail of this ErrorItemPhonebook. # noqa: E501 :type: str diff --git a/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py index b48064f..c841355 100644 --- a/messente_api/models/omnimessage.py +++ b/messente_api/models/omnimessage.py @@ -164,7 +164,7 @@ def text_store(self, text_store): def time_to_send(self): """Gets the time_to_send of this Omnimessage. # noqa: E501 - Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 + Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 :return: The time_to_send of this Omnimessage. # noqa: E501 :rtype: datetime @@ -175,7 +175,7 @@ def time_to_send(self): def time_to_send(self, time_to_send): """Sets the time_to_send of this Omnimessage. - Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 + Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 :param time_to_send: The time_to_send of this Omnimessage. # noqa: E501 :type: datetime diff --git a/messente_api/models/viber.py b/messente_api/models/viber.py index b9259a9..39de9bf 100644 --- a/messente_api/models/viber.py +++ b/messente_api/models/viber.py @@ -151,7 +151,7 @@ def text(self, text): def image_url(self): """Gets the image_url of this Viber. # noqa: E501 - URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 + URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 :return: The image_url of this Viber. # noqa: E501 :rtype: str @@ -162,7 +162,7 @@ def image_url(self): def image_url(self, image_url): """Sets the image_url of this Viber. - URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 + URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 :param image_url: The image_url of this Viber. # noqa: E501 :type: str diff --git a/messente_api/models/whats_app_text.py b/messente_api/models/whats_app_text.py index 2ea87a3..128958d 100644 --- a/messente_api/models/whats_app_text.py +++ b/messente_api/models/whats_app_text.py @@ -56,7 +56,7 @@ def __init__(self, preview_url=True, body=None): # noqa: E501 def preview_url(self): """Gets the preview_url of this WhatsAppText. # noqa: E501 - Whether to display link preview if the message contains a hyperlink. # noqa: E501 + Whether to display link preview if the message contains a hyperlink # noqa: E501 :return: The preview_url of this WhatsAppText. # noqa: E501 :rtype: bool @@ -67,7 +67,7 @@ def preview_url(self): def preview_url(self, preview_url): """Sets the preview_url of this WhatsAppText. - Whether to display link preview if the message contains a hyperlink. # noqa: E501 + Whether to display link preview if the message contains a hyperlink # noqa: E501 :param preview_url: The preview_url of this WhatsAppText. # noqa: E501 :type: bool From 3a735c40b64ab937485d12da06da725c08f5d8da Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 6 Jun 2019 10:21:14 +0000 Subject: [PATCH 12/16] Travis update: Jun 2019 (Build 268) [skip ci] --- .gitignore | 64 -- .openapi-generator-ignore | 23 - .openapi-generator/VERSION | 1 - .travis.yml | 12 - README.md | 131 --- docs/BlacklistApi.md | 213 ----- docs/Channel.md | 9 - docs/ContactEnvelope.md | 10 - docs/ContactFields.md | 19 - docs/ContactListEnvelope.md | 10 - docs/ContactUpdateFields.md | 18 - docs/ContactsApi.md | 436 ---------- docs/DeliveryReportApi.md | 61 -- docs/DeliveryReportResponse.md | 12 - docs/DeliveryResult.md | 15 - docs/ErrorCodeOmnichannel.md | 9 - docs/ErrorCodeOmnichannelMachine.md | 9 - docs/ErrorCodePhonebook.md | 9 - docs/ErrorItemOmnichannel.md | 13 - docs/ErrorItemPhonebook.md | 12 - docs/ErrorOmnichannel.md | 10 - docs/ErrorPhonebook.md | 10 - docs/ErrorTitleOmnichannel.md | 9 - docs/ErrorTitlePhonebook.md | 9 - docs/FetchBlacklistSuccess.md | 10 - docs/GroupEnvelope.md | 10 - docs/GroupListEnvelope.md | 10 - docs/GroupName.md | 10 - docs/GroupResponseFields.md | 13 - docs/GroupsApi.md | 270 ------ docs/MessageResult.md | 12 - docs/NumberToBlacklist.md | 10 - docs/OmniMessageCreateSuccessResponse.md | 12 - docs/Omnimessage.md | 14 - docs/OmnimessageApi.md | 113 --- docs/SMS.md | 15 - docs/Status.md | 9 - docs/TextStore.md | 9 - docs/Viber.md | 16 - docs/WhatsApp.md | 16 - docs/WhatsAppAudio.md | 10 - docs/WhatsAppDocument.md | 11 - docs/WhatsAppImage.md | 11 - docs/WhatsAppText.md | 11 - git_push.sh | 52 -- messente_api/__init__.py | 70 -- messente_api/api/__init__.py | 10 - messente_api/api/blacklist_api.py | 410 --------- messente_api/api/contacts_api.py | 819 ------------------ messente_api/api/delivery_report_api.py | 132 --- messente_api/api/groups_api.py | 516 ----------- messente_api/api/omnimessage_api.py | 230 ----- messente_api/api_client.py | 641 -------------- messente_api/configuration.py | 289 ------ messente_api/exceptions.py | 121 --- messente_api/models/__init__.py | 51 -- messente_api/models/channel.py | 92 -- messente_api/models/contact_envelope.py | 113 --- messente_api/models/contact_fields.py | 359 -------- messente_api/models/contact_list_envelope.py | 115 --- messente_api/models/contact_update_fields.py | 330 ------- .../models/delivery_report_response.py | 174 ---- messente_api/models/delivery_result.py | 249 ------ messente_api/models/error_code_omnichannel.py | 96 -- .../models/error_code_omnichannel_machine.py | 101 --- messente_api/models/error_code_phonebook.py | 95 -- messente_api/models/error_item_omnichannel.py | 199 ----- messente_api/models/error_item_phonebook.py | 170 ---- messente_api/models/error_omnichannel.py | 116 --- messente_api/models/error_phonebook.py | 116 --- .../models/error_title_omnichannel.py | 96 -- messente_api/models/error_title_phonebook.py | 95 -- .../models/fetch_blacklist_success.py | 115 --- messente_api/models/group_envelope.py | 113 --- messente_api/models/group_list_envelope.py | 115 --- messente_api/models/group_name.py | 118 --- messente_api/models/group_response_fields.py | 201 ----- messente_api/models/message_result.py | 172 ---- messente_api/models/number_to_blacklist.py | 116 --- .../omni_message_create_success_response.py | 174 ---- messente_api/models/omnimessage.py | 227 ----- messente_api/models/sms.py | 268 ------ messente_api/models/status.py | 100 --- messente_api/models/text_store.py | 92 -- messente_api/models/viber.py | 289 ------ messente_api/models/whats_app.py | 281 ------ messente_api/models/whats_app_audio.py | 116 --- messente_api/models/whats_app_document.py | 144 --- messente_api/models/whats_app_image.py | 144 --- messente_api/models/whats_app_text.py | 144 --- messente_api/rest.py | 297 ------- requirements.txt | 5 - setup.py | 40 - test-requirements.txt | 5 - test/__init__.py | 0 test/test_blacklist_api.py | 62 -- test/test_channel.py | 40 - test/test_contact_envelope.py | 40 - test/test_contact_fields.py | 40 - test/test_contact_list_envelope.py | 40 - test/test_contact_update_fields.py | 40 - test/test_contacts_api.py | 90 -- test/test_delivery_report_api.py | 41 - test/test_delivery_report_response.py | 40 - test/test_delivery_result.py | 40 - test/test_error_code_omnichannel.py | 40 - test/test_error_code_omnichannel_machine.py | 40 - test/test_error_code_phonebook.py | 40 - test/test_error_item_omnichannel.py | 40 - test/test_error_item_phonebook.py | 40 - test/test_error_omnichannel.py | 40 - test/test_error_phonebook.py | 40 - test/test_error_title_omnichannel.py | 40 - test/test_error_title_phonebook.py | 40 - test/test_fetch_blacklist_success.py | 40 - test/test_group_envelope.py | 40 - test/test_group_list_envelope.py | 40 - test/test_group_name.py | 40 - test/test_group_response_fields.py | 40 - test/test_groups_api.py | 69 -- test/test_message_result.py | 40 - test/test_number_to_blacklist.py | 40 - ...st_omni_message_create_success_response.py | 40 - test/test_omnimessage.py | 40 - test/test_omnimessage_api.py | 48 - test/test_sms.py | 40 - test/test_status.py | 40 - test/test_text_store.py | 40 - test/test_viber.py | 40 - test/test_whats_app.py | 40 - test/test_whats_app_audio.py | 40 - test/test_whats_app_document.py | 40 - test/test_whats_app_image.py | 40 - test/test_whats_app_text.py | 40 - tox.ini | 10 - 135 files changed, 12529 deletions(-) delete mode 100644 .gitignore delete mode 100644 .openapi-generator-ignore delete mode 100644 .openapi-generator/VERSION delete mode 100644 .travis.yml delete mode 100644 README.md delete mode 100644 docs/BlacklistApi.md delete mode 100644 docs/Channel.md delete mode 100644 docs/ContactEnvelope.md delete mode 100644 docs/ContactFields.md delete mode 100644 docs/ContactListEnvelope.md delete mode 100644 docs/ContactUpdateFields.md delete mode 100644 docs/ContactsApi.md delete mode 100644 docs/DeliveryReportApi.md delete mode 100644 docs/DeliveryReportResponse.md delete mode 100644 docs/DeliveryResult.md delete mode 100644 docs/ErrorCodeOmnichannel.md delete mode 100644 docs/ErrorCodeOmnichannelMachine.md delete mode 100644 docs/ErrorCodePhonebook.md delete mode 100644 docs/ErrorItemOmnichannel.md delete mode 100644 docs/ErrorItemPhonebook.md delete mode 100644 docs/ErrorOmnichannel.md delete mode 100644 docs/ErrorPhonebook.md delete mode 100644 docs/ErrorTitleOmnichannel.md delete mode 100644 docs/ErrorTitlePhonebook.md delete mode 100644 docs/FetchBlacklistSuccess.md delete mode 100644 docs/GroupEnvelope.md delete mode 100644 docs/GroupListEnvelope.md delete mode 100644 docs/GroupName.md delete mode 100644 docs/GroupResponseFields.md delete mode 100644 docs/GroupsApi.md delete mode 100644 docs/MessageResult.md delete mode 100644 docs/NumberToBlacklist.md delete mode 100644 docs/OmniMessageCreateSuccessResponse.md delete mode 100644 docs/Omnimessage.md delete mode 100644 docs/OmnimessageApi.md delete mode 100644 docs/SMS.md delete mode 100644 docs/Status.md delete mode 100644 docs/TextStore.md delete mode 100644 docs/Viber.md delete mode 100644 docs/WhatsApp.md delete mode 100644 docs/WhatsAppAudio.md delete mode 100644 docs/WhatsAppDocument.md delete mode 100644 docs/WhatsAppImage.md delete mode 100644 docs/WhatsAppText.md delete mode 100644 git_push.sh delete mode 100644 messente_api/__init__.py delete mode 100644 messente_api/api/__init__.py delete mode 100644 messente_api/api/blacklist_api.py delete mode 100644 messente_api/api/contacts_api.py delete mode 100644 messente_api/api/delivery_report_api.py delete mode 100644 messente_api/api/groups_api.py delete mode 100644 messente_api/api/omnimessage_api.py delete mode 100644 messente_api/api_client.py delete mode 100644 messente_api/configuration.py delete mode 100644 messente_api/exceptions.py delete mode 100644 messente_api/models/__init__.py delete mode 100644 messente_api/models/channel.py delete mode 100644 messente_api/models/contact_envelope.py delete mode 100644 messente_api/models/contact_fields.py delete mode 100644 messente_api/models/contact_list_envelope.py delete mode 100644 messente_api/models/contact_update_fields.py delete mode 100644 messente_api/models/delivery_report_response.py delete mode 100644 messente_api/models/delivery_result.py delete mode 100644 messente_api/models/error_code_omnichannel.py delete mode 100644 messente_api/models/error_code_omnichannel_machine.py delete mode 100644 messente_api/models/error_code_phonebook.py delete mode 100644 messente_api/models/error_item_omnichannel.py delete mode 100644 messente_api/models/error_item_phonebook.py delete mode 100644 messente_api/models/error_omnichannel.py delete mode 100644 messente_api/models/error_phonebook.py delete mode 100644 messente_api/models/error_title_omnichannel.py delete mode 100644 messente_api/models/error_title_phonebook.py delete mode 100644 messente_api/models/fetch_blacklist_success.py delete mode 100644 messente_api/models/group_envelope.py delete mode 100644 messente_api/models/group_list_envelope.py delete mode 100644 messente_api/models/group_name.py delete mode 100644 messente_api/models/group_response_fields.py delete mode 100644 messente_api/models/message_result.py delete mode 100644 messente_api/models/number_to_blacklist.py delete mode 100644 messente_api/models/omni_message_create_success_response.py delete mode 100644 messente_api/models/omnimessage.py delete mode 100644 messente_api/models/sms.py delete mode 100644 messente_api/models/status.py delete mode 100644 messente_api/models/text_store.py delete mode 100644 messente_api/models/viber.py delete mode 100644 messente_api/models/whats_app.py delete mode 100644 messente_api/models/whats_app_audio.py delete mode 100644 messente_api/models/whats_app_document.py delete mode 100644 messente_api/models/whats_app_image.py delete mode 100644 messente_api/models/whats_app_text.py delete mode 100644 messente_api/rest.py delete mode 100644 requirements.txt delete mode 100644 setup.py delete mode 100644 test-requirements.txt delete mode 100644 test/__init__.py delete mode 100644 test/test_blacklist_api.py delete mode 100644 test/test_channel.py delete mode 100644 test/test_contact_envelope.py delete mode 100644 test/test_contact_fields.py delete mode 100644 test/test_contact_list_envelope.py delete mode 100644 test/test_contact_update_fields.py delete mode 100644 test/test_contacts_api.py delete mode 100644 test/test_delivery_report_api.py delete mode 100644 test/test_delivery_report_response.py delete mode 100644 test/test_delivery_result.py delete mode 100644 test/test_error_code_omnichannel.py delete mode 100644 test/test_error_code_omnichannel_machine.py delete mode 100644 test/test_error_code_phonebook.py delete mode 100644 test/test_error_item_omnichannel.py delete mode 100644 test/test_error_item_phonebook.py delete mode 100644 test/test_error_omnichannel.py delete mode 100644 test/test_error_phonebook.py delete mode 100644 test/test_error_title_omnichannel.py delete mode 100644 test/test_error_title_phonebook.py delete mode 100644 test/test_fetch_blacklist_success.py delete mode 100644 test/test_group_envelope.py delete mode 100644 test/test_group_list_envelope.py delete mode 100644 test/test_group_name.py delete mode 100644 test/test_group_response_fields.py delete mode 100644 test/test_groups_api.py delete mode 100644 test/test_message_result.py delete mode 100644 test/test_number_to_blacklist.py delete mode 100644 test/test_omni_message_create_success_response.py delete mode 100644 test/test_omnimessage.py delete mode 100644 test/test_omnimessage_api.py delete mode 100644 test/test_sms.py delete mode 100644 test/test_status.py delete mode 100644 test/test_text_store.py delete mode 100644 test/test_viber.py delete mode 100644 test/test_whats_app.py delete mode 100644 test/test_whats_app_audio.py delete mode 100644 test/test_whats_app_document.py delete mode 100644 test/test_whats_app_image.py delete mode 100644 test/test_whats_app_text.py delete mode 100644 tox.ini diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a655050..0000000 --- a/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION deleted file mode 100644 index 0c89fc9..0000000 --- a/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.0.0 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1b62c4f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python - -script: -- echo "skipping tests" - -deploy: - provider: pypi - user: messente - password: - secure: T6b+hfVKTyJUUprT/7c6+nuEpqjENHWbZ5OrFLq/fo0N++aUgB7/VgsY7L2U9vmuog2xf34Di0C66fe/Tmy5czc+iXbwSnS6uP0aJk6dnERrdhiarUHgsDq4/txx59qYXZfelCO38M54GBPAlDzVp5/ONocbOrrJUPnt++0t/ocwbq2x5m6RSycJCEBWjxkBuLclrIkUvI+0IgJl/CXUro2OeVUg4J7rrwI68XAKAZF2SOQm/V3Ak30ax7CE2XFScVSvfz2g5kJbvtamFwdPRAwA5ThU4q6TDlL49DEblZCSKzAwOTkKkIkjFY5m6PPkNnxFAEsBjRyU5tl+T1pPvM0Gd/AY3lBXruRbU8SmGJgZbz59q1SQ1NRm5gHKpFEQ0kwWJvEJMOwRDLH16nFY4XX15ffVWFqw8Pkaso6NV6RTRVFTV3rVY2YPa1ili2QvkHYjejMZRDG+13MR+gJGWbjU2Uql3kj/QbIBFMyzXcfbLSpdn65KkzI5Svvzl/CsBZ0NsXIhH8rRsK464bZUuDY7qLbNca4IxARZRb2jH9C3Zas4kjJzl9J5TjkZTc8HTl+5PB8k+XsBaPSa1BvGvS3YEpQF6mVOr/SkQGX/yMV/WcmZJekSaWVrgdt5twPlfah0bwfKx60FKJqQYP2+2HeoA56UPrwSGT5ocz0wQC8= - on: - tags: true diff --git a/README.md b/README.md deleted file mode 100644 index c591975..0000000 --- a/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# Messente API Library - -- Messente API version: 1.0.1 -- Python package version: 1.0.2 - -[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. - -## Installation - -Install Messente API library with `pip install messente-api`. - -## Features - -Messente API has the following features: - -- Omnichannel ([external docs](https://messente.com/documentation/omnichannel-api)), -- Phonebook ([external docs](https://messente.com/documentation/phonebook-api)). - -Messente API Library provides the operations described below to access the features. - -### BlacklistApi - -1. Adds a phone number to the blacklist [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist) -1. Deletes a phone number from the blacklist [`delete_from_blacklist`](docs/BlacklistApi.md#delete_from_blacklist) -1. Returns all blacklisted phone numbers [`fetch_blacklist`](docs/BlacklistApi.md#fetch_blacklist) -1. Checks if a phone number is blacklisted [`is_blacklisted`](docs/BlacklistApi.md#is_blacklisted) - -### ContactsApi - -1. Adds a contact to a group [`add_contact_to_group`](docs/ContactsApi.md#add_contact_to_group) -1. Creates a new contact [`create_contact`](docs/ContactsApi.md#create_contact) -1. Deletes a contact [`delete_contact`](docs/ContactsApi.md#delete_contact) -1. Lists a contact [`fetch_contact`](docs/ContactsApi.md#fetch_contact) -1. Lists groups of a contact [`fetch_contact_groups`](docs/ContactsApi.md#fetch_contact_groups) -1. Returns all contacts [`fetch_contacts`](docs/ContactsApi.md#fetch_contacts) -1. Removes a contact from a group [`remove_contact_from_group`](docs/ContactsApi.md#remove_contact_from_group) -1. Updates a contact [`update_contact`](docs/ContactsApi.md#update_contact) - -### DeliveryReportApi - -1. Retrieves the delivery report for the Omnimessage [`retrieve_delivery_report`](docs/DeliveryReportApi.md#retrieve_delivery_report) - -### GroupsApi - -1. Creates a new group with the provided name [`create_group`](docs/GroupsApi.md#create_group) -1. Deletes a group [`delete_group`](docs/GroupsApi.md#delete_group) -1. Lists a group [`fetch_group`](docs/GroupsApi.md#fetch_group) -1. Returns all groups [`fetch_groups`](docs/GroupsApi.md#fetch_groups) -1. Updates a group with the provided name [`update_group`](docs/GroupsApi.md#update_group) - -### OmnimessageApi - -1. Cancels a scheduled Omnimessage [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message) -1. Sends an Omnimessage [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage) - -## Auth - -**Type**: HTTP basic authentication - -Read the [external getting-started article](https://messente.com/documentation/getting-started) which explains API keys and Sender ID logic. - -## Getting started: sending an omnimessage - -```python -from pprint import pprint -from messente_api import ( - OmnimessageApi, - Viber, - SMS, - Omnimessage, - Configuration, - ApiClient, - WhatsApp, - WhatsAppText -) -from messente_api.rest import ApiException - -# API information from https://dashboard.messente.com/api-settings -configuration = Configuration() -configuration.username = '' -configuration.password = '' - -# create an instance of the API class -api_instance = OmnimessageApi(ApiClient(configuration)) - -whatsapp = WhatsApp( - sender='', - text=WhatsAppText( - body='hello whatsapp' - ) -) - -viber = Viber( - sender='', - text='hello python', -) - -sms = SMS( - sender='', - text='hello python', -) - -# The order of items in 'messages' specifies the sending order: -# WhatsApp will be attempted first, -# then Viber, -# and SMS as the final fallback -omnimessage = Omnimessage( - messages=(whatsapp, viber, sms), - to='', -) # Omnimessage | Omnimessage object that is to be sent - -try: - # Sends an Omnimessage - response = api_instance.send_omnimessage(omnimessage) - print( - 'Successfully sent Omnimessage with id: %s that consists of the following messages:' % response.omnimessage_id - ) - for message in response.messages: - pprint(message) -except ApiException as exception: - print('Exception when sending an omnimessage: %s\n' % exception) - -``` - -## License - -[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) - -## Terms - -[https://messente.com/terms-and-conditions](https://messente.com/terms-and-conditions) diff --git a/docs/BlacklistApi.md b/docs/BlacklistApi.md deleted file mode 100644 index d883382..0000000 --- a/docs/BlacklistApi.md +++ /dev/null @@ -1,213 +0,0 @@ -# messente_api.BlacklistApi - -All URIs are relative to *https://api.messente.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist -[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist -[**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers -[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted - - -# **add_to_blacklist** -> add_to_blacklist(number_to_blacklist) - -Adds a phone number to the blacklist - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) -number_to_blacklist = messente_api.NumberToBlacklist() # NumberToBlacklist | Phone number to be blacklisted - -try: - # Adds a phone number to the blacklist - api_instance.add_to_blacklist(number_to_blacklist) -except ApiException as e: - print("Exception when calling BlacklistApi->add_to_blacklist: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **number_to_blacklist** | [**NumberToBlacklist**](NumberToBlacklist.md)| Phone number to be blacklisted | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **delete_from_blacklist** -> delete_from_blacklist(phone) - -Deletes a phone number from the blacklist - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number - -try: - # Deletes a phone number from the blacklist - api_instance.delete_from_blacklist(phone) -except ApiException as e: - print("Exception when calling BlacklistApi->delete_from_blacklist: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_blacklist** -> FetchBlacklistSuccess fetch_blacklist() - -Returns all blacklisted phone numbers - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) - -try: - # Returns all blacklisted phone numbers - api_response = api_instance.fetch_blacklist() - pprint(api_response) -except ApiException as e: - print("Exception when calling BlacklistApi->fetch_blacklist: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**FetchBlacklistSuccess**](FetchBlacklistSuccess.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **is_blacklisted** -> is_blacklisted(phone) - -Checks if a phone number is blacklisted - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number - -try: - # Checks if a phone number is blacklisted - api_instance.is_blacklisted(phone) -except ApiException as e: - print("Exception when calling BlacklistApi->is_blacklisted: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - diff --git a/docs/Channel.md b/docs/Channel.md deleted file mode 100644 index a76c8af..0000000 --- a/docs/Channel.md +++ /dev/null @@ -1,9 +0,0 @@ -# Channel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/ContactEnvelope.md b/docs/ContactEnvelope.md deleted file mode 100644 index cfb8cc8..0000000 --- a/docs/ContactEnvelope.md +++ /dev/null @@ -1,10 +0,0 @@ -# ContactEnvelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contact** | [**ContactFields**](ContactFields.md) | | [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/ContactFields.md b/docs/ContactFields.md deleted file mode 100644 index 3e97de7..0000000 --- a/docs/ContactFields.md +++ /dev/null @@ -1,19 +0,0 @@ -# ContactFields - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone_number** | **str** | Phone number in e.164 format | -**email** | **str** | The email of the contact | [optional] -**first_name** | **str** | The first name of the contact | [optional] -**last_name** | **str** | The last name of the contact | [optional] -**company** | **str** | The company of the contact | [optional] -**title** | **str** | The title of the contact | [optional] -**custom** | **str** | The first custom field | [optional] -**custom2** | **str** | The second custom field | [optional] -**custom3** | **str** | The third custom field | [optional] -**custom4** | **str** | The fourth custom field | [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/ContactListEnvelope.md b/docs/ContactListEnvelope.md deleted file mode 100644 index 22b82de..0000000 --- a/docs/ContactListEnvelope.md +++ /dev/null @@ -1,10 +0,0 @@ -# ContactListEnvelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contacts** | [**list[ContactFields]**](ContactFields.md) | An array of contacts | [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/ContactUpdateFields.md b/docs/ContactUpdateFields.md deleted file mode 100644 index 2628bad..0000000 --- a/docs/ContactUpdateFields.md +++ /dev/null @@ -1,18 +0,0 @@ -# ContactUpdateFields - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | The email of the contact | [optional] -**first_name** | **str** | The first name of the contact | [optional] -**last_name** | **str** | The last name of the contact | [optional] -**company** | **str** | The company of the contact | [optional] -**title** | **str** | The title of the contact | [optional] -**custom** | **str** | The first custom field | [optional] -**custom2** | **str** | The second custom field | [optional] -**custom3** | **str** | The third custom field | [optional] -**custom4** | **str** | The fourth custom field | [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/ContactsApi.md b/docs/ContactsApi.md deleted file mode 100644 index cffd1ec..0000000 --- a/docs/ContactsApi.md +++ /dev/null @@ -1,436 +0,0 @@ -# messente_api.ContactsApi - -All URIs are relative to *https://api.messente.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group -[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact -[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact -[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact -[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact -[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts -[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group -[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact - - -# **add_contact_to_group** -> object add_contact_to_group(group_id, phone) - -Adds a contact to a group - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format -phone = 'phone_example' # str | A phone number - -try: - # Adds a contact to a group - api_response = api_instance.add_contact_to_group(group_id, phone) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->add_contact_to_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format | - **phone** | **str**| A phone number | - -### Return type - -**object** - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **create_contact** -> ContactEnvelope create_contact(contact_fields) - -Creates a new contact - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -contact_fields = messente_api.ContactFields() # ContactFields | - -try: - # Creates a new contact - api_response = api_instance.create_contact(contact_fields) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->create_contact: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **contact_fields** | [**ContactFields**](ContactFields.md)| | - -### Return type - -[**ContactEnvelope**](ContactEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **delete_contact** -> delete_contact(phone) - -Deletes a contact - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number - -try: - # Deletes a contact - api_instance.delete_contact(phone) -except ApiException as e: - print("Exception when calling ContactsApi->delete_contact: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_contact** -> ContactEnvelope fetch_contact(phone) - -Lists a contact - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number - -try: - # Lists a contact - api_response = api_instance.fetch_contact(phone) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->fetch_contact: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - -### Return type - -[**ContactEnvelope**](ContactEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_contact_groups** -> GroupListEnvelope fetch_contact_groups(phone) - -Lists groups of a contact - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number - -try: - # Lists groups of a contact - api_response = api_instance.fetch_contact_groups(phone) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->fetch_contact_groups: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - -### Return type - -[**GroupListEnvelope**](GroupListEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_contacts** -> ContactListEnvelope fetch_contacts(group_ids=group_ids) - -Returns all contacts - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional) - -try: - # Returns all contacts - api_response = api_instance.fetch_contacts(group_ids=group_ids) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->fetch_contacts: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_ids** | [**list[str]**](str.md)| Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional] - -### Return type - -[**ContactListEnvelope**](ContactListEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **remove_contact_from_group** -> remove_contact_from_group(group_id, phone) - -Removes a contact from a group - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format -phone = 'phone_example' # str | A phone number - -try: - # Removes a contact from a group - api_instance.remove_contact_from_group(group_id, phone) -except ApiException as e: - print("Exception when calling ContactsApi->remove_contact_from_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format | - **phone** | **str**| A phone number | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **update_contact** -> ContactEnvelope update_contact(phone, contact_update_fields) - -Updates a contact - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) -phone = 'phone_example' # str | A phone number -contact_update_fields = messente_api.ContactUpdateFields() # ContactUpdateFields | - -try: - # Updates a contact - api_response = api_instance.update_contact(phone, contact_update_fields) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContactsApi->update_contact: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **phone** | **str**| A phone number | - **contact_update_fields** | [**ContactUpdateFields**](ContactUpdateFields.md)| | - -### Return type - -[**ContactEnvelope**](ContactEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md deleted file mode 100644 index 26612eb..0000000 --- a/docs/DeliveryReportApi.md +++ /dev/null @@ -1,61 +0,0 @@ -# messente_api.DeliveryReportApi - -All URIs are relative to *https://api.messente.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**retrieve_delivery_report**](DeliveryReportApi.md#retrieve_delivery_report) | **GET** /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage - - -# **retrieve_delivery_report** -> DeliveryReportResponse retrieve_delivery_report(omnimessage_id) - -Retrieves the delivery report for the Omnimessage - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.DeliveryReportApi(messente_api.ApiClient(configuration)) -omnimessage_id = 'omnimessage_id_example' # str | UUID of the omnimessage to for which the delivery report is to be retrieved - -try: - # Retrieves the delivery report for the Omnimessage - api_response = api_instance.retrieve_delivery_report(omnimessage_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DeliveryReportApi->retrieve_delivery_report: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **omnimessage_id** | **str**| UUID of the omnimessage to for which the delivery report is to be retrieved | - -### Return type - -[**DeliveryReportResponse**](DeliveryReportResponse.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - diff --git a/docs/DeliveryReportResponse.md b/docs/DeliveryReportResponse.md deleted file mode 100644 index b6b6360..0000000 --- a/docs/DeliveryReportResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeliveryReportResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statuses** | [**list[DeliveryResult]**](DeliveryResult.md) | Contains the delivery reports for each channel, ordered by send order | -**to** | **str** | Phone number in e.164 format | -**omnimessage_id** | **str** | Unique identifier for the omnimessage | - -[[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/DeliveryResult.md b/docs/DeliveryResult.md deleted file mode 100644 index f038a75..0000000 --- a/docs/DeliveryResult.md +++ /dev/null @@ -1,15 +0,0 @@ -# DeliveryResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**Status**](Status.md) | | [optional] -**channel** | [**Channel**](Channel.md) | | [optional] -**message_id** | **str** | Unique identifier for the message | [optional] -**error** | **str** | Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet | [optional] -**err** | [**ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional] -**timestamp** | **datetime** | When this status was received by Omnichannel API | [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/ErrorCodeOmnichannel.md b/docs/ErrorCodeOmnichannel.md deleted file mode 100644 index c1b0288..0000000 --- a/docs/ErrorCodeOmnichannel.md +++ /dev/null @@ -1,9 +0,0 @@ -# ErrorCodeOmnichannel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/ErrorCodeOmnichannelMachine.md b/docs/ErrorCodeOmnichannelMachine.md deleted file mode 100644 index 7efcc02..0000000 --- a/docs/ErrorCodeOmnichannelMachine.md +++ /dev/null @@ -1,9 +0,0 @@ -# ErrorCodeOmnichannelMachine - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/ErrorCodePhonebook.md b/docs/ErrorCodePhonebook.md deleted file mode 100644 index fdc5ce8..0000000 --- a/docs/ErrorCodePhonebook.md +++ /dev/null @@ -1,9 +0,0 @@ -# ErrorCodePhonebook - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/ErrorItemOmnichannel.md b/docs/ErrorItemOmnichannel.md deleted file mode 100644 index a88f79b..0000000 --- a/docs/ErrorItemOmnichannel.md +++ /dev/null @@ -1,13 +0,0 @@ -# ErrorItemOmnichannel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | [**ErrorTitleOmnichannel**](ErrorTitleOmnichannel.md) | | -**detail** | **str** | Free form more detailed description of the error | -**code** | [**ErrorCodeOmnichannel**](ErrorCodeOmnichannel.md) | | -**source** | **str** | Describes which field is causing the issue in the payload, null for non 400 status code responses | - -[[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/ErrorItemPhonebook.md b/docs/ErrorItemPhonebook.md deleted file mode 100644 index 2212061..0000000 --- a/docs/ErrorItemPhonebook.md +++ /dev/null @@ -1,12 +0,0 @@ -# ErrorItemPhonebook - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | [**ErrorTitlePhonebook**](ErrorTitlePhonebook.md) | | -**detail** | **str** | Free form more detailed description of the error | -**code** | [**ErrorCodePhonebook**](ErrorCodePhonebook.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/ErrorOmnichannel.md b/docs/ErrorOmnichannel.md deleted file mode 100644 index c99d1c7..0000000 --- a/docs/ErrorOmnichannel.md +++ /dev/null @@ -1,10 +0,0 @@ -# ErrorOmnichannel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**list[ErrorItemOmnichannel]**](ErrorItemOmnichannel.md) | An array of errors | - -[[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/ErrorPhonebook.md b/docs/ErrorPhonebook.md deleted file mode 100644 index 9268f29..0000000 --- a/docs/ErrorPhonebook.md +++ /dev/null @@ -1,10 +0,0 @@ -# ErrorPhonebook - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**list[ErrorItemPhonebook]**](ErrorItemPhonebook.md) | An array of errors | - -[[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/ErrorTitleOmnichannel.md b/docs/ErrorTitleOmnichannel.md deleted file mode 100644 index 4988d32..0000000 --- a/docs/ErrorTitleOmnichannel.md +++ /dev/null @@ -1,9 +0,0 @@ -# ErrorTitleOmnichannel - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/ErrorTitlePhonebook.md b/docs/ErrorTitlePhonebook.md deleted file mode 100644 index cbd0cee..0000000 --- a/docs/ErrorTitlePhonebook.md +++ /dev/null @@ -1,9 +0,0 @@ -# ErrorTitlePhonebook - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/FetchBlacklistSuccess.md b/docs/FetchBlacklistSuccess.md deleted file mode 100644 index 5f49faf..0000000 --- a/docs/FetchBlacklistSuccess.md +++ /dev/null @@ -1,10 +0,0 @@ -# FetchBlacklistSuccess - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone_numbers** | **list[str]** | Array of unique phone numbers | [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/GroupEnvelope.md b/docs/GroupEnvelope.md deleted file mode 100644 index 84bc29b..0000000 --- a/docs/GroupEnvelope.md +++ /dev/null @@ -1,10 +0,0 @@ -# GroupEnvelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**GroupResponseFields**](GroupResponseFields.md) | | [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/GroupListEnvelope.md b/docs/GroupListEnvelope.md deleted file mode 100644 index ce4e0e2..0000000 --- a/docs/GroupListEnvelope.md +++ /dev/null @@ -1,10 +0,0 @@ -# GroupListEnvelope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groups** | [**list[GroupResponseFields]**](GroupResponseFields.md) | An array of groups | [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/GroupName.md b/docs/GroupName.md deleted file mode 100644 index de04bf6..0000000 --- a/docs/GroupName.md +++ /dev/null @@ -1,10 +0,0 @@ -# GroupName - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the group | - -[[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/GroupResponseFields.md b/docs/GroupResponseFields.md deleted file mode 100644 index 5ef7581..0000000 --- a/docs/GroupResponseFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# GroupResponseFields - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | Id string in UUID format | -**name** | **str** | The name of the group | -**created_on** | **str** | When the group was created | [optional] -**contacts_count** | **int** | The count of contacts in the group | - -[[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/GroupsApi.md b/docs/GroupsApi.md deleted file mode 100644 index 035ad5b..0000000 --- a/docs/GroupsApi.md +++ /dev/null @@ -1,270 +0,0 @@ -# messente_api.GroupsApi - -All URIs are relative to *https://api.messente.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name -[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group -[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group -[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups -[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name - - -# **create_group** -> GroupEnvelope create_group(group_name) - -Creates a new group with the provided name - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_name = messente_api.GroupName() # GroupName | - -try: - # Creates a new group with the provided name - api_response = api_instance.create_group(group_name) - pprint(api_response) -except ApiException as e: - print("Exception when calling GroupsApi->create_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_name** | [**GroupName**](GroupName.md)| | - -### Return type - -[**GroupEnvelope**](GroupEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - -# **delete_group** -> delete_group(group_id) - -Deletes a group - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format - -try: - # Deletes a group - api_instance.delete_group(group_id) -except ApiException as e: - print("Exception when calling GroupsApi->delete_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_group** -> GroupEnvelope fetch_group(group_id) - -Lists a group - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format - -try: - # Lists a group - api_response = api_instance.fetch_group(group_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling GroupsApi->fetch_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format | - -### Return type - -[**GroupEnvelope**](GroupEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **fetch_groups** -> GroupListEnvelope fetch_groups() - -Returns all groups - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) - -try: - # Returns all groups - api_response = api_instance.fetch_groups() - pprint(api_response) -except ApiException as e: - print("Exception when calling GroupsApi->fetch_groups: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**GroupListEnvelope**](GroupListEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **update_group** -> GroupEnvelope update_group(group_id, group_name) - -Updates a group with the provided name - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) -group_id = 'group_id_example' # str | String in UUID format -group_name = messente_api.GroupName() # GroupName | - -try: - # Updates a group with the provided name - api_response = api_instance.update_group(group_id, group_name) - pprint(api_response) -except ApiException as e: - print("Exception when calling GroupsApi->update_group: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **group_id** | **str**| String in UUID format | - **group_name** | [**GroupName**](GroupName.md)| | - -### Return type - -[**GroupEnvelope**](GroupEnvelope.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/docs/MessageResult.md b/docs/MessageResult.md deleted file mode 100644 index 14549a2..0000000 --- a/docs/MessageResult.md +++ /dev/null @@ -1,12 +0,0 @@ -# MessageResult - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message_id** | **str** | Unique identifier for the message | -**channel** | [**Channel**](Channel.md) | | -**sender** | **str** | Sender that was used for the message | - -[[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/NumberToBlacklist.md b/docs/NumberToBlacklist.md deleted file mode 100644 index ac9d1d5..0000000 --- a/docs/NumberToBlacklist.md +++ /dev/null @@ -1,10 +0,0 @@ -# NumberToBlacklist - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone_number** | **str** | Phone number in e.164 format | - -[[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/OmniMessageCreateSuccessResponse.md b/docs/OmniMessageCreateSuccessResponse.md deleted file mode 100644 index ef5e2d4..0000000 --- a/docs/OmniMessageCreateSuccessResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# OmniMessageCreateSuccessResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messages** | [**list[MessageResult]**](MessageResult.md) | List of messages that compose the omnimessage | -**to** | **str** | Phone number in e.164 format | -**omnimessage_id** | **str** | Unique identifier for the omnimessage | - -[[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/Omnimessage.md b/docs/Omnimessage.md deleted file mode 100644 index db93287..0000000 --- a/docs/Omnimessage.md +++ /dev/null @@ -1,14 +0,0 @@ -# Omnimessage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**to** | **str** | Phone number in e.164 format | -**messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | An array of messages | -**dlr_url** | **str** | URL where the delivery report will be sent | [optional] -**text_store** | [**TextStore**](TextStore.md) | | [optional] -**time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [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/OmnimessageApi.md b/docs/OmnimessageApi.md deleted file mode 100644 index c3365fa..0000000 --- a/docs/OmnimessageApi.md +++ /dev/null @@ -1,113 +0,0 @@ -# messente_api.OmnimessageApi - -All URIs are relative to *https://api.messente.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage -[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage - - -# **cancel_scheduled_message** -> cancel_scheduled_message(omnimessage_id) - -Cancels a scheduled Omnimessage - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration)) -omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled omnimessage to be cancelled - -try: - # Cancels a scheduled Omnimessage - api_instance.cancel_scheduled_message(omnimessage_id) -except ApiException as e: - print("Exception when calling OmnimessageApi->cancel_scheduled_message: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **omnimessage_id** | **str**| UUID of the scheduled omnimessage to be cancelled | - -### Return type - -void (empty response body) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[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) - -# **send_omnimessage** -> OmniMessageCreateSuccessResponse send_omnimessage(omnimessage) - -Sends an Omnimessage - -### Example - -* Basic Authentication (basicAuth): -```python -from __future__ import print_function -import time -import messente_api -from messente_api.rest import ApiException -from pprint import pprint -configuration = messente_api.Configuration() -# Configure HTTP basic authorization: basicAuth -configuration.username = 'YOUR_USERNAME' -configuration.password = 'YOUR_PASSWORD' - -# create an instance of the API class -api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration)) -omnimessage = messente_api.Omnimessage() # Omnimessage | Omnimessage to be sent - -try: - # Sends an Omnimessage - api_response = api_instance.send_omnimessage(omnimessage) - pprint(api_response) -except ApiException as e: - print("Exception when calling OmnimessageApi->send_omnimessage: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **omnimessage** | [**Omnimessage**](Omnimessage.md)| Omnimessage to be sent | - -### Return type - -[**OmniMessageCreateSuccessResponse**](OmniMessageCreateSuccessResponse.md) - -### Authorization - -[basicAuth](../README.md#basicAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[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) - diff --git a/docs/SMS.md b/docs/SMS.md deleted file mode 100644 index 05d2751..0000000 --- a/docs/SMS.md +++ /dev/null @@ -1,15 +0,0 @@ -# SMS - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **str** | Text content of the SMS | -**sender** | **str** | Phone number or alphanumeric sender name | [optional] -**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] -**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] -**udh** | **str** | hex-encoded string containing SMS UDH | [optional] -**channel** | **str** | The channel used to deliver the message | [optional] [default to 'sms'] - -[[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/Status.md b/docs/Status.md deleted file mode 100644 index 347eb0b..0000000 --- a/docs/Status.md +++ /dev/null @@ -1,9 +0,0 @@ -# Status - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/TextStore.md b/docs/TextStore.md deleted file mode 100644 index 8f97f95..0000000 --- a/docs/TextStore.md +++ /dev/null @@ -1,9 +0,0 @@ -# TextStore - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/Viber.md b/docs/Viber.md deleted file mode 100644 index 75b138f..0000000 --- a/docs/Viber.md +++ /dev/null @@ -1,16 +0,0 @@ -# Viber - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sender** | **str** | Phone number or alphanumeric sender name | [optional] -**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] -**text** | **str** | Plaintext content for Viber | [optional] -**image_url** | **str** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] -**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] -**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] -**channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber'] - -[[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/WhatsApp.md b/docs/WhatsApp.md deleted file mode 100644 index 191e095..0000000 --- a/docs/WhatsApp.md +++ /dev/null @@ -1,16 +0,0 @@ -# WhatsApp - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sender** | **str** | Phone number or alphanumeric sender name | [optional] -**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] -**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional] -**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional] -**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional] -**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional] -**channel** | **str** | The channel used to deliver the message | [optional] [default to 'whatsapp'] - -[[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/WhatsAppAudio.md b/docs/WhatsAppAudio.md deleted file mode 100644 index 5934ca4..0000000 --- a/docs/WhatsAppAudio.md +++ /dev/null @@ -1,10 +0,0 @@ -# WhatsAppAudio - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **str** | Base64-encoded audio | - -[[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/WhatsAppDocument.md b/docs/WhatsAppDocument.md deleted file mode 100644 index 08b9968..0000000 --- a/docs/WhatsAppDocument.md +++ /dev/null @@ -1,11 +0,0 @@ -# WhatsAppDocument - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**caption** | **str** | Description for the document | [optional] -**content** | **str** | Base64-encoded image | - -[[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/WhatsAppImage.md b/docs/WhatsAppImage.md deleted file mode 100644 index 8a28102..0000000 --- a/docs/WhatsAppImage.md +++ /dev/null @@ -1,11 +0,0 @@ -# WhatsAppImage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**caption** | **str** | Description for the image | [optional] -**content** | **str** | Base64-encoded image | - -[[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/WhatsAppText.md b/docs/WhatsAppText.md deleted file mode 100644 index fc48d73..0000000 --- a/docs/WhatsAppText.md +++ /dev/null @@ -1,11 +0,0 @@ -# WhatsAppText - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**preview_url** | **bool** | Whether to display link preview if the message contains a hyperlink | [optional] [default to True] -**body** | **str** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting | - -[[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/git_push.sh b/git_push.sh deleted file mode 100644 index 8442b80..0000000 --- a/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/messente_api/__init__.py b/messente_api/__init__.py deleted file mode 100644 index 3465e3f..0000000 --- a/messente_api/__init__.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -__version__ = "1.0.2" - -# import apis into sdk package -from messente_api.api.blacklist_api import BlacklistApi -from messente_api.api.contacts_api import ContactsApi -from messente_api.api.delivery_report_api import DeliveryReportApi -from messente_api.api.groups_api import GroupsApi -from messente_api.api.omnimessage_api import OmnimessageApi - -# import ApiClient -from messente_api.api_client import ApiClient -from messente_api.configuration import Configuration -from messente_api.exceptions import OpenApiException -from messente_api.exceptions import ApiTypeError -from messente_api.exceptions import ApiValueError -from messente_api.exceptions import ApiKeyError -from messente_api.exceptions import ApiException -# import models into sdk package -from messente_api.models.channel import Channel -from messente_api.models.contact_envelope import ContactEnvelope -from messente_api.models.contact_fields import ContactFields -from messente_api.models.contact_list_envelope import ContactListEnvelope -from messente_api.models.contact_update_fields import ContactUpdateFields -from messente_api.models.delivery_report_response import DeliveryReportResponse -from messente_api.models.delivery_result import DeliveryResult -from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel -from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine -from messente_api.models.error_code_phonebook import ErrorCodePhonebook -from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel -from messente_api.models.error_item_phonebook import ErrorItemPhonebook -from messente_api.models.error_omnichannel import ErrorOmnichannel -from messente_api.models.error_phonebook import ErrorPhonebook -from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel -from messente_api.models.error_title_phonebook import ErrorTitlePhonebook -from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess -from messente_api.models.group_envelope import GroupEnvelope -from messente_api.models.group_list_envelope import GroupListEnvelope -from messente_api.models.group_name import GroupName -from messente_api.models.group_response_fields import GroupResponseFields -from messente_api.models.message_result import MessageResult -from messente_api.models.number_to_blacklist import NumberToBlacklist -from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse -from messente_api.models.omnimessage import Omnimessage -from messente_api.models.sms import SMS -from messente_api.models.status import Status -from messente_api.models.text_store import TextStore -from messente_api.models.viber import Viber -from messente_api.models.whats_app import WhatsApp -from messente_api.models.whats_app_audio import WhatsAppAudio -from messente_api.models.whats_app_document import WhatsAppDocument -from messente_api.models.whats_app_image import WhatsAppImage -from messente_api.models.whats_app_text import WhatsAppText - diff --git a/messente_api/api/__init__.py b/messente_api/api/__init__.py deleted file mode 100644 index c38198f..0000000 --- a/messente_api/api/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from messente_api.api.blacklist_api import BlacklistApi -from messente_api.api.contacts_api import ContactsApi -from messente_api.api.delivery_report_api import DeliveryReportApi -from messente_api.api.groups_api import GroupsApi -from messente_api.api.omnimessage_api import OmnimessageApi diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py deleted file mode 100644 index f3667b8..0000000 --- a/messente_api/api/blacklist_api.py +++ /dev/null @@ -1,410 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from messente_api.api_client import ApiClient -from messente_api.exceptions import ( - ApiTypeError, - ApiValueError -) - - -class BlacklistApi(object): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def add_to_blacklist(self, number_to_blacklist, **kwargs): # noqa: E501 - """Adds a phone number to the blacklist # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_to_blacklist(number_to_blacklist, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param NumberToBlacklist number_to_blacklist: Phone number to be blacklisted (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.add_to_blacklist_with_http_info(number_to_blacklist, **kwargs) # noqa: E501 - else: - (data) = self.add_to_blacklist_with_http_info(number_to_blacklist, **kwargs) # noqa: E501 - return data - - def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noqa: E501 - """Adds a phone number to the blacklist # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_to_blacklist_with_http_info(number_to_blacklist, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param NumberToBlacklist number_to_blacklist: Phone number to be blacklisted (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['number_to_blacklist'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method add_to_blacklist" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'number_to_blacklist' is set - if ('number_to_blacklist' not in local_var_params or - local_var_params['number_to_blacklist'] is None): - raise ApiValueError("Missing the required parameter `number_to_blacklist` when calling `add_to_blacklist`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'number_to_blacklist' in local_var_params: - body_params = local_var_params['number_to_blacklist'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/phonebook/blacklist', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_from_blacklist(self, phone, **kwargs): # noqa: E501 - """Deletes a phone number from the blacklist # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_from_blacklist(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_from_blacklist_with_http_info(phone, **kwargs) # noqa: E501 - else: - (data) = self.delete_from_blacklist_with_http_info(phone, **kwargs) # noqa: E501 - return data - - def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501 - """Deletes a phone number from the blacklist # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_from_blacklist_with_http_info(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_from_blacklist" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `delete_from_blacklist`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/blacklist/{phone}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_blacklist(self, **kwargs): # noqa: E501 - """Returns all blacklisted phone numbers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_blacklist(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: FetchBlacklistSuccess - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_blacklist_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.fetch_blacklist_with_http_info(**kwargs) # noqa: E501 - return data - - def fetch_blacklist_with_http_info(self, **kwargs): # noqa: E501 - """Returns all blacklisted phone numbers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_blacklist_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: FetchBlacklistSuccess - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_blacklist" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/phonebook/blacklist', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='FetchBlacklistSuccess', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def is_blacklisted(self, phone, **kwargs): # noqa: E501 - """Checks if a phone number is blacklisted # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_blacklisted(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.is_blacklisted_with_http_info(phone, **kwargs) # noqa: E501 - else: - (data) = self.is_blacklisted_with_http_info(phone, **kwargs) # noqa: E501 - return data - - def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501 - """Checks if a phone number is blacklisted # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.is_blacklisted_with_http_info(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method is_blacklisted" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `is_blacklisted`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/blacklist/{phone}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py deleted file mode 100644 index daf6b32..0000000 --- a/messente_api/api/contacts_api.py +++ /dev/null @@ -1,819 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from messente_api.api_client import ApiClient -from messente_api.exceptions import ( - ApiTypeError, - ApiValueError -) - - -class ContactsApi(object): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 - """Adds a contact to a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_contact_to_group(group_id, phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param str phone: A phone number (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.add_contact_to_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 - else: - (data) = self.add_contact_to_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 - return data - - def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 - """Adds a contact to a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.add_contact_to_group_with_http_info(group_id, phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param str phone: A phone number (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_id', 'phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method add_contact_to_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_id' is set - if ('group_id' not in local_var_params or - local_var_params['group_id'] is None): - raise ApiValueError("Missing the required parameter `group_id` when calling `add_contact_to_group`") # noqa: E501 - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `add_contact_to_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['groupId'] = local_var_params['group_id'] # noqa: E501 - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups/{groupId}/contacts/{phone}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_contact(self, contact_fields, **kwargs): # noqa: E501 - """Creates a new contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_contact(contact_fields, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContactFields contact_fields: (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_contact_with_http_info(contact_fields, **kwargs) # noqa: E501 - else: - (data) = self.create_contact_with_http_info(contact_fields, **kwargs) # noqa: E501 - return data - - def create_contact_with_http_info(self, contact_fields, **kwargs): # noqa: E501 - """Creates a new contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_contact_with_http_info(contact_fields, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContactFields contact_fields: (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['contact_fields'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_contact" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'contact_fields' is set - if ('contact_fields' not in local_var_params or - local_var_params['contact_fields'] is None): - raise ApiValueError("Missing the required parameter `contact_fields` when calling `create_contact`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'contact_fields' in local_var_params: - body_params = local_var_params['contact_fields'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContactEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_contact(self, phone, **kwargs): # noqa: E501 - """Deletes a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_contact(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_contact_with_http_info(phone, **kwargs) # noqa: E501 - else: - (data) = self.delete_contact_with_http_info(phone, **kwargs) # noqa: E501 - return data - - def delete_contact_with_http_info(self, phone, **kwargs): # noqa: E501 - """Deletes a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_contact_with_http_info(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_contact" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `delete_contact`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts/{phone}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_contact(self, phone, **kwargs): # noqa: E501 - """Lists a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contact(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_contact_with_http_info(phone, **kwargs) # noqa: E501 - else: - (data) = self.fetch_contact_with_http_info(phone, **kwargs) # noqa: E501 - return data - - def fetch_contact_with_http_info(self, phone, **kwargs): # noqa: E501 - """Lists a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contact_with_http_info(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_contact" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `fetch_contact`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts/{phone}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContactEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_contact_groups(self, phone, **kwargs): # noqa: E501 - """Lists groups of a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contact_groups(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: GroupListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_contact_groups_with_http_info(phone, **kwargs) # noqa: E501 - else: - (data) = self.fetch_contact_groups_with_http_info(phone, **kwargs) # noqa: E501 - return data - - def fetch_contact_groups_with_http_info(self, phone, **kwargs): # noqa: E501 - """Lists groups of a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contact_groups_with_http_info(phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :return: GroupListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_contact_groups" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `fetch_contact_groups`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts/{phone}/groups', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GroupListEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_contacts(self, **kwargs): # noqa: E501 - """Returns all contacts # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contacts(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" - :return: ContactListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_contacts_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.fetch_contacts_with_http_info(**kwargs) # noqa: E501 - return data - - def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 - """Returns all contacts # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_contacts_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" - :return: ContactListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_ids'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_contacts" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'group_ids' in local_var_params: - query_params.append(('groupIds', local_var_params['group_ids'])) # noqa: E501 - collection_formats['groupIds'] = 'multi' # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContactListEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 - """Removes a contact from a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_contact_from_group(group_id, phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.remove_contact_from_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 - else: - (data) = self.remove_contact_from_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 - return data - - def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 - """Removes a contact from a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.remove_contact_from_group_with_http_info(group_id, phone, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param str phone: A phone number (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_id', 'phone'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method remove_contact_from_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_id' is set - if ('group_id' not in local_var_params or - local_var_params['group_id'] is None): - raise ApiValueError("Missing the required parameter `group_id` when calling `remove_contact_from_group`") # noqa: E501 - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `remove_contact_from_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['groupId'] = local_var_params['group_id'] # noqa: E501 - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups/{groupId}/contacts/{phone}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_contact(self, phone, contact_update_fields, **kwargs): # noqa: E501 - """Updates a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_contact(phone, contact_update_fields, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :param ContactUpdateFields contact_update_fields: (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_contact_with_http_info(phone, contact_update_fields, **kwargs) # noqa: E501 - else: - (data) = self.update_contact_with_http_info(phone, contact_update_fields, **kwargs) # noqa: E501 - return data - - def update_contact_with_http_info(self, phone, contact_update_fields, **kwargs): # noqa: E501 - """Updates a contact # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_contact_with_http_info(phone, contact_update_fields, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str phone: A phone number (required) - :param ContactUpdateFields contact_update_fields: (required) - :return: ContactEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['phone', 'contact_update_fields'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method update_contact" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'phone' is set - if ('phone' not in local_var_params or - local_var_params['phone'] is None): - raise ApiValueError("Missing the required parameter `phone` when calling `update_contact`") # noqa: E501 - # verify the required parameter 'contact_update_fields' is set - if ('contact_update_fields' not in local_var_params or - local_var_params['contact_update_fields'] is None): - raise ApiValueError("Missing the required parameter `contact_update_fields` when calling `update_contact`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'phone' in local_var_params: - path_params['phone'] = local_var_params['phone'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'contact_update_fields' in local_var_params: - body_params = local_var_params['contact_update_fields'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/contacts/{phone}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContactEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py deleted file mode 100644 index a731e5c..0000000 --- a/messente_api/api/delivery_report_api.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from messente_api.api_client import ApiClient -from messente_api.exceptions import ( - ApiTypeError, - ApiValueError -) - - -class DeliveryReportApi(object): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def retrieve_delivery_report(self, omnimessage_id, **kwargs): # noqa: E501 - """Retrieves the delivery report for the Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.retrieve_delivery_report(omnimessage_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) - :return: DeliveryReportResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.retrieve_delivery_report_with_http_info(omnimessage_id, **kwargs) # noqa: E501 - else: - (data) = self.retrieve_delivery_report_with_http_info(omnimessage_id, **kwargs) # noqa: E501 - return data - - def retrieve_delivery_report_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 - """Retrieves the delivery report for the Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.retrieve_delivery_report_with_http_info(omnimessage_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) - :return: DeliveryReportResponse - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['omnimessage_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method retrieve_delivery_report" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'omnimessage_id' is set - if ('omnimessage_id' not in local_var_params or - local_var_params['omnimessage_id'] is None): - raise ApiValueError("Missing the required parameter `omnimessage_id` when calling `retrieve_delivery_report`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'omnimessage_id' in local_var_params: - path_params['omnimessageId'] = local_var_params['omnimessage_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/omnimessage/{omnimessageId}/status', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DeliveryReportResponse', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py deleted file mode 100644 index 8054711..0000000 --- a/messente_api/api/groups_api.py +++ /dev/null @@ -1,516 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from messente_api.api_client import ApiClient -from messente_api.exceptions import ( - ApiTypeError, - ApiValueError -) - - -class GroupsApi(object): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_group(self, group_name, **kwargs): # noqa: E501 - """Creates a new group with the provided name # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_group(group_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GroupName group_name: (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_group_with_http_info(group_name, **kwargs) # noqa: E501 - else: - (data) = self.create_group_with_http_info(group_name, **kwargs) # noqa: E501 - return data - - def create_group_with_http_info(self, group_name, **kwargs): # noqa: E501 - """Creates a new group with the provided name # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_group_with_http_info(group_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param GroupName group_name: (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method create_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_name' is set - if ('group_name' not in local_var_params or - local_var_params['group_name'] is None): - raise ApiValueError("Missing the required parameter `group_name` when calling `create_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'group_name' in local_var_params: - body_params = local_var_params['group_name'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GroupEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_group(self, group_id, **kwargs): # noqa: E501 - """Deletes a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_group(group_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501 - return data - - def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 - """Deletes a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_group_with_http_info(group_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_id' is set - if ('group_id' not in local_var_params or - local_var_params['group_id'] is None): - raise ApiValueError("Missing the required parameter `group_id` when calling `delete_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['groupId'] = local_var_params['group_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups/{groupId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_group(self, group_id, **kwargs): # noqa: E501 - """Lists a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_group(group_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_group_with_http_info(group_id, **kwargs) # noqa: E501 - else: - (data) = self.fetch_group_with_http_info(group_id, **kwargs) # noqa: E501 - return data - - def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 - """Lists a group # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_group_with_http_info(group_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_id' is set - if ('group_id' not in local_var_params or - local_var_params['group_id'] is None): - raise ApiValueError("Missing the required parameter `group_id` when calling `fetch_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['groupId'] = local_var_params['group_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups/{groupId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GroupEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def fetch_groups(self, **kwargs): # noqa: E501 - """Returns all groups # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_groups(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: GroupListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.fetch_groups_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.fetch_groups_with_http_info(**kwargs) # noqa: E501 - return data - - def fetch_groups_with_http_info(self, **kwargs): # noqa: E501 - """Returns all groups # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.fetch_groups_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: GroupListEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method fetch_groups" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GroupListEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_group(self, group_id, group_name, **kwargs): # noqa: E501 - """Updates a group with the provided name # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_group(group_id, group_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param GroupName group_name: (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_group_with_http_info(group_id, group_name, **kwargs) # noqa: E501 - else: - (data) = self.update_group_with_http_info(group_id, group_name, **kwargs) # noqa: E501 - return data - - def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: E501 - """Updates a group with the provided name # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_group_with_http_info(group_id, group_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str group_id: String in UUID format (required) - :param GroupName group_name: (required) - :return: GroupEnvelope - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['group_id', 'group_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method update_group" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'group_id' is set - if ('group_id' not in local_var_params or - local_var_params['group_id'] is None): - raise ApiValueError("Missing the required parameter `group_id` when calling `update_group`") # noqa: E501 - # verify the required parameter 'group_name' is set - if ('group_name' not in local_var_params or - local_var_params['group_name'] is None): - raise ApiValueError("Missing the required parameter `group_name` when calling `update_group`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'group_id' in local_var_params: - path_params['groupId'] = local_var_params['group_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'group_name' in local_var_params: - body_params = local_var_params['group_name'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/groups/{groupId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='GroupEnvelope', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py deleted file mode 100644 index 32ef137..0000000 --- a/messente_api/api/omnimessage_api.py +++ /dev/null @@ -1,230 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from messente_api.api_client import ApiClient -from messente_api.exceptions import ( - ApiTypeError, - ApiValueError -) - - -class OmnimessageApi(object): - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501 - """Cancels a scheduled Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.cancel_scheduled_message(omnimessage_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.cancel_scheduled_message_with_http_info(omnimessage_id, **kwargs) # noqa: E501 - else: - (data) = self.cancel_scheduled_message_with_http_info(omnimessage_id, **kwargs) # noqa: E501 - return data - - def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 - """Cancels a scheduled Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.cancel_scheduled_message_with_http_info(omnimessage_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['omnimessage_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method cancel_scheduled_message" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'omnimessage_id' is set - if ('omnimessage_id' not in local_var_params or - local_var_params['omnimessage_id'] is None): - raise ApiValueError("Missing the required parameter `omnimessage_id` when calling `cancel_scheduled_message`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'omnimessage_id' in local_var_params: - path_params['omnimessageId'] = local_var_params['omnimessage_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/omnimessage/{omnimessageId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) - - def send_omnimessage(self, omnimessage, **kwargs): # noqa: E501 - """Sends an Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.send_omnimessage(omnimessage, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Omnimessage omnimessage: Omnimessage to be sent (required) - :return: OmniMessageCreateSuccessResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.send_omnimessage_with_http_info(omnimessage, **kwargs) # noqa: E501 - else: - (data) = self.send_omnimessage_with_http_info(omnimessage, **kwargs) # noqa: E501 - return data - - def send_omnimessage_with_http_info(self, omnimessage, **kwargs): # noqa: E501 - """Sends an Omnimessage # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.send_omnimessage_with_http_info(omnimessage, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param Omnimessage omnimessage: Omnimessage to be sent (required) - :return: OmniMessageCreateSuccessResponse - If the method is called asynchronously, - returns the request thread. - """ - - local_var_params = locals() - - all_params = ['omnimessage'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - for key, val in six.iteritems(local_var_params['kwargs']): - if key not in all_params: - raise ApiTypeError( - "Got an unexpected keyword argument '%s'" - " to method send_omnimessage" % key - ) - local_var_params[key] = val - del local_var_params['kwargs'] - # verify the required parameter 'omnimessage' is set - if ('omnimessage' not in local_var_params or - local_var_params['omnimessage'] is None): - raise ApiValueError("Missing the required parameter `omnimessage` when calling `send_omnimessage`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'omnimessage' in local_var_params: - body_params = local_var_params['omnimessage'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['basicAuth'] # noqa: E501 - - return self.api_client.call_api( - '/omnimessage', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='OmniMessageCreateSuccessResponse', # 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 - _preload_content=local_var_params.get('_preload_content', True), - _request_timeout=local_var_params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/messente_api/api_client.py b/messente_api/api_client.py deleted file mode 100644 index 16a3d7f..0000000 --- a/messente_api/api_client.py +++ /dev/null @@ -1,641 +0,0 @@ -# coding: utf-8 -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from messente_api.configuration import Configuration -import messente_api.models -from messente_api import rest -from messente_api.exceptions import ApiValueError - - -class ApiClient(object): - """Generic API client for OpenAPI client library builds. - - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. - - NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - :param pool_threads: The number of threads to use for async requests - to the API. More threads means more concurrent API requests. - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - _pool = None - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None, pool_threads=1): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - self.pool_threads = pool_threads - - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.2/python' - - def __del__(self): - if self._pool: - self._pool.close() - self._pool.join() - self._pool = None - - @property - def pool(self): - """Create thread pool on first request - avoids instantiating unused threadpool for blocking clients. - """ - if self._pool is None: - self._pool = ThreadPool(self.pool_threads) - return self._pool - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None, _host=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = post_params if post_params else [] - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - post_params.extend(self.files_parameters(files)) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - if _host is None: - url = self.configuration.host + resource_path - else: - # use server/host defined in path or operation instead - url = _host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is OpenAPI model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `openapi_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.openapi_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(messente_api.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None, _host=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async_req request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout, _host) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, - _request_timeout, - _host)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ApiValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def files_parameters(self, files=None): - """Builds form parameters. - - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - - with open(path, "wb") as f: - f.write(response.data) - - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return an original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.openapi_types and not hasattr(klass, - 'get_real_child_model'): - return data - - kwargs = {} - if klass.openapi_types is not None: - for attr, attr_type in six.iteritems(klass.openapi_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/messente_api/configuration.py b/messente_api/configuration.py deleted file mode 100644 index 44ec4fa..0000000 --- a/messente_api/configuration.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by OpenAPI Generator - - Ref: https://openapi-generator.tech - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "https://api.messente.com/v1" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("messente_api") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Proxy headers - self.proxy_headers = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - # Adding retries to override urllib3 default value 3 - self.retries = None - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - 'basicAuth': - { - 'type': 'basic', - 'in': 'header', - 'key': 'Authorization', - 'value': self.get_basic_auth_token() - }, - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.1\n"\ - "SDK Package Version: 1.0.2".\ - format(env=sys.platform, pyversion=sys.version) - - def get_host_settings(self): - """Gets an array of host settings - - :return: An array of host settings - """ - return [ - { - 'url': "https://api.messente.com/v1", - 'description': "No description provided", - } - ] - - def get_host_from_settings(self, index, variables={}): - """Gets host URL based on the index and variables - :param index: array index of the host settings - :param variables: hash of variable and the corresponding value - :return: URL based on host settings - """ - - servers = self.get_host_settings() - - # check array index out of bound - if index < 0 or index >= len(servers): - raise ValueError( - "Invalid index {} when selecting the host settings. Must be less than {}" # noqa: E501 - .format(index, len(servers))) - - server = servers[index] - url = server['url'] - - # go through variable and assign a value - for variable_name in server['variables']: - if variable_name in variables: - if variables[variable_name] in server['variables'][ - variable_name]['enum_values']: - url = url.replace("{" + variable_name + "}", - variables[variable_name]) - else: - raise ValueError( - "The variable `{}` in the host URL has invalid value {}. Must be {}." # noqa: E501 - .format( - variable_name, variables[variable_name], - server['variables'][variable_name]['enum_values'])) - else: - # use default value - url = url.replace( - "{" + variable_name + "}", - server['variables'][variable_name]['default_value']) - - return url diff --git a/messente_api/exceptions.py b/messente_api/exceptions.py deleted file mode 100644 index 035a1ca..0000000 --- a/messente_api/exceptions.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import six - - -class OpenApiException(Exception): - """The base exception class for all OpenAPIExceptions""" - - -class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None): - """ Raises an exception for TypeErrors - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list): a list of keys an indices to get to the - current_item - None if unset - valid_classes (tuple): the primitive classes that current item - should be an instance of - None if unset - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a list - None if unset - """ - self.path_to_item = path_to_item - self.valid_classes = valid_classes - self.key_type = key_type - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) - - -class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None): - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list) the path to the exception in the - received_data dict. None if unset - """ - - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) - - -class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None): - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) - - -class ApiException(OpenApiException): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message - - -def render_path(path_to_item): - """Returns a string representation of a path""" - result = "" - for pth in path_to_item: - if isinstance(pth, six.integer_types): - result += "[{0}]".format(pth) - else: - result += "['{0}']".format(pth) - return result diff --git a/messente_api/models/__init__.py b/messente_api/models/__init__.py deleted file mode 100644 index 9051bca..0000000 --- a/messente_api/models/__init__.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -# import models into model package -from messente_api.models.channel import Channel -from messente_api.models.contact_envelope import ContactEnvelope -from messente_api.models.contact_fields import ContactFields -from messente_api.models.contact_list_envelope import ContactListEnvelope -from messente_api.models.contact_update_fields import ContactUpdateFields -from messente_api.models.delivery_report_response import DeliveryReportResponse -from messente_api.models.delivery_result import DeliveryResult -from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel -from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine -from messente_api.models.error_code_phonebook import ErrorCodePhonebook -from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel -from messente_api.models.error_item_phonebook import ErrorItemPhonebook -from messente_api.models.error_omnichannel import ErrorOmnichannel -from messente_api.models.error_phonebook import ErrorPhonebook -from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel -from messente_api.models.error_title_phonebook import ErrorTitlePhonebook -from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess -from messente_api.models.group_envelope import GroupEnvelope -from messente_api.models.group_list_envelope import GroupListEnvelope -from messente_api.models.group_name import GroupName -from messente_api.models.group_response_fields import GroupResponseFields -from messente_api.models.message_result import MessageResult -from messente_api.models.number_to_blacklist import NumberToBlacklist -from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse -from messente_api.models.omnimessage import Omnimessage -from messente_api.models.sms import SMS -from messente_api.models.status import Status -from messente_api.models.text_store import TextStore -from messente_api.models.viber import Viber -from messente_api.models.whats_app import WhatsApp -from messente_api.models.whats_app_audio import WhatsAppAudio -from messente_api.models.whats_app_document import WhatsAppDocument -from messente_api.models.whats_app_image import WhatsAppImage -from messente_api.models.whats_app_text import WhatsAppText diff --git a/messente_api/models/channel.py b/messente_api/models/channel.py deleted file mode 100644 index d7b190e..0000000 --- a/messente_api/models/channel.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Channel(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - SMS = "sms" - VIBER = "viber" - WHATSAPP = "whatsapp" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """Channel - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, Channel): - 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/messente_api/models/contact_envelope.py b/messente_api/models/contact_envelope.py deleted file mode 100644 index 35227d2..0000000 --- a/messente_api/models/contact_envelope.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ContactEnvelope(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'contact': 'ContactFields' - } - - attribute_map = { - 'contact': 'contact' - } - - def __init__(self, contact=None): # noqa: E501 - """ContactEnvelope - a model defined in OpenAPI""" # noqa: E501 - - self._contact = None - self.discriminator = None - - if contact is not None: - self.contact = contact - - @property - def contact(self): - """Gets the contact of this ContactEnvelope. # noqa: E501 - - - :return: The contact of this ContactEnvelope. # noqa: E501 - :rtype: ContactFields - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this ContactEnvelope. - - - :param contact: The contact of this ContactEnvelope. # noqa: E501 - :type: ContactFields - """ - - self._contact = contact - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ContactEnvelope): - 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/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py deleted file mode 100644 index ff78e4e..0000000 --- a/messente_api/models/contact_fields.py +++ /dev/null @@ -1,359 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ContactFields(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'phone_number': 'str', - 'email': 'str', - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'title': 'str', - 'custom': 'str', - 'custom2': 'str', - 'custom3': 'str', - 'custom4': 'str' - } - - attribute_map = { - 'phone_number': 'phoneNumber', - 'email': 'email', - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'title': 'title', - 'custom': 'custom', - 'custom2': 'custom2', - 'custom3': 'custom3', - 'custom4': 'custom4' - } - - 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): # noqa: E501 - """ContactFields - a model defined in OpenAPI""" # noqa: E501 - - self._phone_number = None - self._email = None - self._first_name = None - self._last_name = None - self._company = None - self._title = None - self._custom = None - self._custom2 = None - self._custom3 = None - self._custom4 = None - self.discriminator = None - - self.phone_number = phone_number - self.email = email - self.first_name = first_name - self.last_name = last_name - self.company = company - self.title = title - self.custom = custom - self.custom2 = custom2 - self.custom3 = custom3 - self.custom4 = custom4 - - @property - def phone_number(self): - """Gets the phone_number of this ContactFields. # noqa: E501 - - Phone number in e.164 format # noqa: E501 - - :return: The phone_number of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """Sets the phone_number of this ContactFields. - - Phone number in e.164 format # noqa: E501 - - :param phone_number: The phone_number of this ContactFields. # noqa: E501 - :type: str - """ - if phone_number is None: - raise ValueError("Invalid value for `phone_number`, must not be `None`") # noqa: E501 - - self._phone_number = phone_number - - @property - def email(self): - """Gets the email of this ContactFields. # noqa: E501 - - The email of the contact # noqa: E501 - - :return: The email of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this ContactFields. - - The email of the contact # noqa: E501 - - :param email: The email of this ContactFields. # noqa: E501 - :type: str - """ - - self._email = email - - @property - def first_name(self): - """Gets the first_name of this ContactFields. # noqa: E501 - - The first name of the contact # noqa: E501 - - :return: The first_name of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """Sets the first_name of this ContactFields. - - The first name of the contact # noqa: E501 - - :param first_name: The first_name of this ContactFields. # noqa: E501 - :type: str - """ - - self._first_name = first_name - - @property - def last_name(self): - """Gets the last_name of this ContactFields. # noqa: E501 - - The last name of the contact # noqa: E501 - - :return: The last_name of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """Sets the last_name of this ContactFields. - - The last name of the contact # noqa: E501 - - :param last_name: The last_name of this ContactFields. # noqa: E501 - :type: str - """ - - self._last_name = last_name - - @property - def company(self): - """Gets the company of this ContactFields. # noqa: E501 - - The company of the contact # noqa: E501 - - :return: The company of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """Sets the company of this ContactFields. - - The company of the contact # noqa: E501 - - :param company: The company of this ContactFields. # noqa: E501 - :type: str - """ - - self._company = company - - @property - def title(self): - """Gets the title of this ContactFields. # noqa: E501 - - The title of the contact # noqa: E501 - - :return: The title of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ContactFields. - - The title of the contact # noqa: E501 - - :param title: The title of this ContactFields. # noqa: E501 - :type: str - """ - - self._title = title - - @property - def custom(self): - """Gets the custom of this ContactFields. # noqa: E501 - - The first custom field # noqa: E501 - - :return: The custom of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._custom - - @custom.setter - def custom(self, custom): - """Sets the custom of this ContactFields. - - The first custom field # noqa: E501 - - :param custom: The custom of this ContactFields. # noqa: E501 - :type: str - """ - - self._custom = custom - - @property - def custom2(self): - """Gets the custom2 of this ContactFields. # noqa: E501 - - The second custom field # noqa: E501 - - :return: The custom2 of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._custom2 - - @custom2.setter - def custom2(self, custom2): - """Sets the custom2 of this ContactFields. - - The second custom field # noqa: E501 - - :param custom2: The custom2 of this ContactFields. # noqa: E501 - :type: str - """ - - self._custom2 = custom2 - - @property - def custom3(self): - """Gets the custom3 of this ContactFields. # noqa: E501 - - The third custom field # noqa: E501 - - :return: The custom3 of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._custom3 - - @custom3.setter - def custom3(self, custom3): - """Sets the custom3 of this ContactFields. - - The third custom field # noqa: E501 - - :param custom3: The custom3 of this ContactFields. # noqa: E501 - :type: str - """ - - self._custom3 = custom3 - - @property - def custom4(self): - """Gets the custom4 of this ContactFields. # noqa: E501 - - The fourth custom field # noqa: E501 - - :return: The custom4 of this ContactFields. # noqa: E501 - :rtype: str - """ - return self._custom4 - - @custom4.setter - def custom4(self, custom4): - """Sets the custom4 of this ContactFields. - - The fourth custom field # noqa: E501 - - :param custom4: The custom4 of this ContactFields. # noqa: E501 - :type: str - """ - - self._custom4 = custom4 - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ContactFields): - 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/messente_api/models/contact_list_envelope.py b/messente_api/models/contact_list_envelope.py deleted file mode 100644 index 24e021a..0000000 --- a/messente_api/models/contact_list_envelope.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ContactListEnvelope(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'contacts': 'list[ContactFields]' - } - - attribute_map = { - 'contacts': 'contacts' - } - - def __init__(self, contacts=None): # noqa: E501 - """ContactListEnvelope - a model defined in OpenAPI""" # noqa: E501 - - self._contacts = None - self.discriminator = None - - if contacts is not None: - self.contacts = contacts - - @property - def contacts(self): - """Gets the contacts of this ContactListEnvelope. # noqa: E501 - - An array of contacts # noqa: E501 - - :return: The contacts of this ContactListEnvelope. # noqa: E501 - :rtype: list[ContactFields] - """ - return self._contacts - - @contacts.setter - def contacts(self, contacts): - """Sets the contacts of this ContactListEnvelope. - - An array of contacts # noqa: E501 - - :param contacts: The contacts of this ContactListEnvelope. # noqa: E501 - :type: list[ContactFields] - """ - - self._contacts = contacts - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ContactListEnvelope): - 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/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py deleted file mode 100644 index 166b4bb..0000000 --- a/messente_api/models/contact_update_fields.py +++ /dev/null @@ -1,330 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ContactUpdateFields(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'email': 'str', - 'first_name': 'str', - 'last_name': 'str', - 'company': 'str', - 'title': 'str', - 'custom': 'str', - 'custom2': 'str', - 'custom3': 'str', - 'custom4': 'str' - } - - attribute_map = { - 'email': 'email', - 'first_name': 'firstName', - 'last_name': 'lastName', - 'company': 'company', - 'title': 'title', - 'custom': 'custom', - 'custom2': 'custom2', - 'custom3': 'custom3', - 'custom4': 'custom4' - } - - def __init__(self, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 - """ContactUpdateFields - a model defined in OpenAPI""" # noqa: E501 - - self._email = None - self._first_name = None - self._last_name = None - self._company = None - self._title = None - self._custom = None - self._custom2 = None - self._custom3 = None - self._custom4 = None - self.discriminator = None - - self.email = email - self.first_name = first_name - self.last_name = last_name - self.company = company - self.title = title - self.custom = custom - self.custom2 = custom2 - self.custom3 = custom3 - self.custom4 = custom4 - - @property - def email(self): - """Gets the email of this ContactUpdateFields. # noqa: E501 - - The email of the contact # noqa: E501 - - :return: The email of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this ContactUpdateFields. - - The email of the contact # noqa: E501 - - :param email: The email of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._email = email - - @property - def first_name(self): - """Gets the first_name of this ContactUpdateFields. # noqa: E501 - - The first name of the contact # noqa: E501 - - :return: The first_name of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._first_name - - @first_name.setter - def first_name(self, first_name): - """Sets the first_name of this ContactUpdateFields. - - The first name of the contact # noqa: E501 - - :param first_name: The first_name of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._first_name = first_name - - @property - def last_name(self): - """Gets the last_name of this ContactUpdateFields. # noqa: E501 - - The last name of the contact # noqa: E501 - - :return: The last_name of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._last_name - - @last_name.setter - def last_name(self, last_name): - """Sets the last_name of this ContactUpdateFields. - - The last name of the contact # noqa: E501 - - :param last_name: The last_name of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._last_name = last_name - - @property - def company(self): - """Gets the company of this ContactUpdateFields. # noqa: E501 - - The company of the contact # noqa: E501 - - :return: The company of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._company - - @company.setter - def company(self, company): - """Sets the company of this ContactUpdateFields. - - The company of the contact # noqa: E501 - - :param company: The company of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._company = company - - @property - def title(self): - """Gets the title of this ContactUpdateFields. # noqa: E501 - - The title of the contact # noqa: E501 - - :return: The title of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ContactUpdateFields. - - The title of the contact # noqa: E501 - - :param title: The title of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._title = title - - @property - def custom(self): - """Gets the custom of this ContactUpdateFields. # noqa: E501 - - The first custom field # noqa: E501 - - :return: The custom of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._custom - - @custom.setter - def custom(self, custom): - """Sets the custom of this ContactUpdateFields. - - The first custom field # noqa: E501 - - :param custom: The custom of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._custom = custom - - @property - def custom2(self): - """Gets the custom2 of this ContactUpdateFields. # noqa: E501 - - The second custom field # noqa: E501 - - :return: The custom2 of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._custom2 - - @custom2.setter - def custom2(self, custom2): - """Sets the custom2 of this ContactUpdateFields. - - The second custom field # noqa: E501 - - :param custom2: The custom2 of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._custom2 = custom2 - - @property - def custom3(self): - """Gets the custom3 of this ContactUpdateFields. # noqa: E501 - - The third custom field # noqa: E501 - - :return: The custom3 of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._custom3 - - @custom3.setter - def custom3(self, custom3): - """Sets the custom3 of this ContactUpdateFields. - - The third custom field # noqa: E501 - - :param custom3: The custom3 of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._custom3 = custom3 - - @property - def custom4(self): - """Gets the custom4 of this ContactUpdateFields. # noqa: E501 - - The fourth custom field # noqa: E501 - - :return: The custom4 of this ContactUpdateFields. # noqa: E501 - :rtype: str - """ - return self._custom4 - - @custom4.setter - def custom4(self, custom4): - """Sets the custom4 of this ContactUpdateFields. - - The fourth custom field # noqa: E501 - - :param custom4: The custom4 of this ContactUpdateFields. # noqa: E501 - :type: str - """ - - self._custom4 = custom4 - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ContactUpdateFields): - 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/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py deleted file mode 100644 index da1e0f1..0000000 --- a/messente_api/models/delivery_report_response.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class DeliveryReportResponse(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'statuses': 'list[DeliveryResult]', - 'to': 'str', - 'omnimessage_id': 'str' - } - - attribute_map = { - 'statuses': 'statuses', - 'to': 'to', - 'omnimessage_id': 'omnimessage_id' - } - - def __init__(self, statuses=None, to=None, omnimessage_id=None): # noqa: E501 - """DeliveryReportResponse - a model defined in OpenAPI""" # noqa: E501 - - self._statuses = None - self._to = None - self._omnimessage_id = None - self.discriminator = None - - self.statuses = statuses - self.to = to - self.omnimessage_id = omnimessage_id - - @property - def statuses(self): - """Gets the statuses of this DeliveryReportResponse. # noqa: E501 - - Contains the delivery reports for each channel, ordered by send order # noqa: E501 - - :return: The statuses of this DeliveryReportResponse. # noqa: E501 - :rtype: list[DeliveryResult] - """ - return self._statuses - - @statuses.setter - def statuses(self, statuses): - """Sets the statuses of this DeliveryReportResponse. - - Contains the delivery reports for each channel, ordered by send order # noqa: E501 - - :param statuses: The statuses of this DeliveryReportResponse. # noqa: E501 - :type: list[DeliveryResult] - """ - if statuses is None: - raise ValueError("Invalid value for `statuses`, must not be `None`") # noqa: E501 - - self._statuses = statuses - - @property - def to(self): - """Gets the to of this DeliveryReportResponse. # noqa: E501 - - Phone number in e.164 format # noqa: E501 - - :return: The to of this DeliveryReportResponse. # noqa: E501 - :rtype: str - """ - return self._to - - @to.setter - def to(self, to): - """Sets the to of this DeliveryReportResponse. - - Phone number in e.164 format # noqa: E501 - - :param to: The to of this DeliveryReportResponse. # noqa: E501 - :type: str - """ - if to is None: - raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 - - self._to = to - - @property - def omnimessage_id(self): - """Gets the omnimessage_id of this DeliveryReportResponse. # noqa: E501 - - Unique identifier for the omnimessage # noqa: E501 - - :return: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 - :rtype: str - """ - return self._omnimessage_id - - @omnimessage_id.setter - def omnimessage_id(self, omnimessage_id): - """Sets the omnimessage_id of this DeliveryReportResponse. - - Unique identifier for the omnimessage # noqa: E501 - - :param omnimessage_id: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 - :type: str - """ - if omnimessage_id is None: - raise ValueError("Invalid value for `omnimessage_id`, must not be `None`") # noqa: E501 - - self._omnimessage_id = omnimessage_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, DeliveryReportResponse): - 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/messente_api/models/delivery_result.py b/messente_api/models/delivery_result.py deleted file mode 100644 index e4b38d3..0000000 --- a/messente_api/models/delivery_result.py +++ /dev/null @@ -1,249 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class DeliveryResult(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'status': 'Status', - 'channel': 'Channel', - 'message_id': 'str', - 'error': 'str', - 'err': 'ErrorCodeOmnichannelMachine', - 'timestamp': 'datetime' - } - - attribute_map = { - 'status': 'status', - 'channel': 'channel', - 'message_id': 'message_id', - 'error': 'error', - 'err': 'err', - 'timestamp': 'timestamp' - } - - def __init__(self, status=None, channel=None, message_id=None, error=None, err=None, timestamp=None): # noqa: E501 - """DeliveryResult - a model defined in OpenAPI""" # noqa: E501 - - self._status = None - self._channel = None - self._message_id = None - self._error = None - self._err = None - self._timestamp = None - self.discriminator = None - - if status is not None: - self.status = status - if channel is not None: - self.channel = channel - if message_id is not None: - self.message_id = message_id - if error is not None: - self.error = error - if err is not None: - self.err = err - if timestamp is not None: - self.timestamp = timestamp - - @property - def status(self): - """Gets the status of this DeliveryResult. # noqa: E501 - - - :return: The status of this DeliveryResult. # noqa: E501 - :rtype: Status - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this DeliveryResult. - - - :param status: The status of this DeliveryResult. # noqa: E501 - :type: Status - """ - - self._status = status - - @property - def channel(self): - """Gets the channel of this DeliveryResult. # noqa: E501 - - - :return: The channel of this DeliveryResult. # noqa: E501 - :rtype: Channel - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this DeliveryResult. - - - :param channel: The channel of this DeliveryResult. # noqa: E501 - :type: Channel - """ - - self._channel = channel - - @property - def message_id(self): - """Gets the message_id of this DeliveryResult. # noqa: E501 - - Unique identifier for the message # noqa: E501 - - :return: The message_id of this DeliveryResult. # noqa: E501 - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id): - """Sets the message_id of this DeliveryResult. - - Unique identifier for the message # noqa: E501 - - :param message_id: The message_id of this DeliveryResult. # noqa: E501 - :type: str - """ - - self._message_id = message_id - - @property - def error(self): - """Gets the error of this DeliveryResult. # noqa: E501 - - Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 - - :return: The error of this DeliveryResult. # noqa: E501 - :rtype: str - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this DeliveryResult. - - Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 - - :param error: The error of this DeliveryResult. # noqa: E501 - :type: str - """ - - self._error = error - - @property - def err(self): - """Gets the err of this DeliveryResult. # noqa: E501 - - - :return: The err of this DeliveryResult. # noqa: E501 - :rtype: ErrorCodeOmnichannelMachine - """ - return self._err - - @err.setter - def err(self, err): - """Sets the err of this DeliveryResult. - - - :param err: The err of this DeliveryResult. # noqa: E501 - :type: ErrorCodeOmnichannelMachine - """ - - self._err = err - - @property - def timestamp(self): - """Gets the timestamp of this DeliveryResult. # noqa: E501 - - When this status was received by Omnichannel API # noqa: E501 - - :return: The timestamp of this DeliveryResult. # noqa: E501 - :rtype: datetime - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this DeliveryResult. - - When this status was received by Omnichannel API # noqa: E501 - - :param timestamp: The timestamp of this DeliveryResult. # noqa: E501 - :type: datetime - """ - - self._timestamp = timestamp - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, DeliveryResult): - 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/messente_api/models/error_code_omnichannel.py b/messente_api/models/error_code_omnichannel.py deleted file mode 100644 index aa0e64b..0000000 --- a/messente_api/models/error_code_omnichannel.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorCodeOmnichannel(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - _101 = "101" - _102 = "102" - _103 = "103" - _104 = "104" - _105 = "105" - _106 = "106" - _107 = "107" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ErrorCodeOmnichannel - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorCodeOmnichannel): - 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/messente_api/models/error_code_omnichannel_machine.py b/messente_api/models/error_code_omnichannel_machine.py deleted file mode 100644 index 2c154ab..0000000 --- a/messente_api/models/error_code_omnichannel_machine.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorCodeOmnichannelMachine(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - _0 = "0" - _1 = "1" - _2 = "2" - _3 = "3" - _4 = "4" - _5 = "5" - _6 = "6" - _7 = "7" - _8 = "8" - _9 = "9" - _10 = "10" - _999 = "999" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ErrorCodeOmnichannelMachine - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorCodeOmnichannelMachine): - 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/messente_api/models/error_code_phonebook.py b/messente_api/models/error_code_phonebook.py deleted file mode 100644 index a29c95b..0000000 --- a/messente_api/models/error_code_phonebook.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorCodePhonebook(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - _201 = "201" - _202 = "202" - _203 = "203" - _204 = "204" - _244 = "244" - _205 = "205" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ErrorCodePhonebook - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorCodePhonebook): - 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/messente_api/models/error_item_omnichannel.py b/messente_api/models/error_item_omnichannel.py deleted file mode 100644 index 8360dc7..0000000 --- a/messente_api/models/error_item_omnichannel.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorItemOmnichannel(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'title': 'ErrorTitleOmnichannel', - 'detail': 'str', - 'code': 'ErrorCodeOmnichannel', - 'source': 'str' - } - - attribute_map = { - 'title': 'title', - 'detail': 'detail', - 'code': 'code', - 'source': 'source' - } - - def __init__(self, title=None, detail=None, code=None, source=None): # noqa: E501 - """ErrorItemOmnichannel - a model defined in OpenAPI""" # noqa: E501 - - self._title = None - self._detail = None - self._code = None - self._source = None - self.discriminator = None - - self.title = title - self.detail = detail - self.code = code - self.source = source - - @property - def title(self): - """Gets the title of this ErrorItemOmnichannel. # noqa: E501 - - - :return: The title of this ErrorItemOmnichannel. # noqa: E501 - :rtype: ErrorTitleOmnichannel - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ErrorItemOmnichannel. - - - :param title: The title of this ErrorItemOmnichannel. # noqa: E501 - :type: ErrorTitleOmnichannel - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - - self._title = title - - @property - def detail(self): - """Gets the detail of this ErrorItemOmnichannel. # noqa: E501 - - Free form more detailed description of the error # noqa: E501 - - :return: The detail of this ErrorItemOmnichannel. # noqa: E501 - :rtype: str - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this ErrorItemOmnichannel. - - Free form more detailed description of the error # noqa: E501 - - :param detail: The detail of this ErrorItemOmnichannel. # noqa: E501 - :type: str - """ - if detail is None: - raise ValueError("Invalid value for `detail`, must not be `None`") # noqa: E501 - - self._detail = detail - - @property - def code(self): - """Gets the code of this ErrorItemOmnichannel. # noqa: E501 - - - :return: The code of this ErrorItemOmnichannel. # noqa: E501 - :rtype: ErrorCodeOmnichannel - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ErrorItemOmnichannel. - - - :param code: The code of this ErrorItemOmnichannel. # noqa: E501 - :type: ErrorCodeOmnichannel - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - @property - def source(self): - """Gets the source of this ErrorItemOmnichannel. # noqa: E501 - - Describes which field is causing the issue in the payload, null for non 400 status code responses # noqa: E501 - - :return: The source of this ErrorItemOmnichannel. # noqa: E501 - :rtype: str - """ - return self._source - - @source.setter - def source(self, source): - """Sets the source of this ErrorItemOmnichannel. - - Describes which field is causing the issue in the payload, null for non 400 status code responses # noqa: E501 - - :param source: The source of this ErrorItemOmnichannel. # noqa: E501 - :type: str - """ - if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 - - self._source = source - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorItemOmnichannel): - 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/messente_api/models/error_item_phonebook.py b/messente_api/models/error_item_phonebook.py deleted file mode 100644 index fdeb181..0000000 --- a/messente_api/models/error_item_phonebook.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorItemPhonebook(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'title': 'ErrorTitlePhonebook', - 'detail': 'str', - 'code': 'ErrorCodePhonebook' - } - - attribute_map = { - 'title': 'title', - 'detail': 'detail', - 'code': 'code' - } - - def __init__(self, title=None, detail=None, code=None): # noqa: E501 - """ErrorItemPhonebook - a model defined in OpenAPI""" # noqa: E501 - - self._title = None - self._detail = None - self._code = None - self.discriminator = None - - self.title = title - self.detail = detail - self.code = code - - @property - def title(self): - """Gets the title of this ErrorItemPhonebook. # noqa: E501 - - - :return: The title of this ErrorItemPhonebook. # noqa: E501 - :rtype: ErrorTitlePhonebook - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this ErrorItemPhonebook. - - - :param title: The title of this ErrorItemPhonebook. # noqa: E501 - :type: ErrorTitlePhonebook - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - - self._title = title - - @property - def detail(self): - """Gets the detail of this ErrorItemPhonebook. # noqa: E501 - - Free form more detailed description of the error # noqa: E501 - - :return: The detail of this ErrorItemPhonebook. # noqa: E501 - :rtype: str - """ - return self._detail - - @detail.setter - def detail(self, detail): - """Sets the detail of this ErrorItemPhonebook. - - Free form more detailed description of the error # noqa: E501 - - :param detail: The detail of this ErrorItemPhonebook. # noqa: E501 - :type: str - """ - if detail is None: - raise ValueError("Invalid value for `detail`, must not be `None`") # noqa: E501 - - self._detail = detail - - @property - def code(self): - """Gets the code of this ErrorItemPhonebook. # noqa: E501 - - - :return: The code of this ErrorItemPhonebook. # noqa: E501 - :rtype: ErrorCodePhonebook - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ErrorItemPhonebook. - - - :param code: The code of this ErrorItemPhonebook. # noqa: E501 - :type: ErrorCodePhonebook - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorItemPhonebook): - 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/messente_api/models/error_omnichannel.py b/messente_api/models/error_omnichannel.py deleted file mode 100644 index 899311d..0000000 --- a/messente_api/models/error_omnichannel.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorOmnichannel(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'errors': 'list[ErrorItemOmnichannel]' - } - - attribute_map = { - 'errors': 'errors' - } - - def __init__(self, errors=None): # noqa: E501 - """ErrorOmnichannel - a model defined in OpenAPI""" # noqa: E501 - - self._errors = None - self.discriminator = None - - self.errors = errors - - @property - def errors(self): - """Gets the errors of this ErrorOmnichannel. # noqa: E501 - - An array of errors # noqa: E501 - - :return: The errors of this ErrorOmnichannel. # noqa: E501 - :rtype: list[ErrorItemOmnichannel] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this ErrorOmnichannel. - - An array of errors # noqa: E501 - - :param errors: The errors of this ErrorOmnichannel. # noqa: E501 - :type: list[ErrorItemOmnichannel] - """ - if errors is None: - raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 - - self._errors = errors - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorOmnichannel): - 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/messente_api/models/error_phonebook.py b/messente_api/models/error_phonebook.py deleted file mode 100644 index d6503b4..0000000 --- a/messente_api/models/error_phonebook.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorPhonebook(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'errors': 'list[ErrorItemPhonebook]' - } - - attribute_map = { - 'errors': 'errors' - } - - def __init__(self, errors=None): # noqa: E501 - """ErrorPhonebook - a model defined in OpenAPI""" # noqa: E501 - - self._errors = None - self.discriminator = None - - self.errors = errors - - @property - def errors(self): - """Gets the errors of this ErrorPhonebook. # noqa: E501 - - An array of errors # noqa: E501 - - :return: The errors of this ErrorPhonebook. # noqa: E501 - :rtype: list[ErrorItemPhonebook] - """ - return self._errors - - @errors.setter - def errors(self, errors): - """Sets the errors of this ErrorPhonebook. - - An array of errors # noqa: E501 - - :param errors: The errors of this ErrorPhonebook. # noqa: E501 - :type: list[ErrorItemPhonebook] - """ - if errors is None: - raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 - - self._errors = errors - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorPhonebook): - 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/messente_api/models/error_title_omnichannel.py b/messente_api/models/error_title_omnichannel.py deleted file mode 100644 index 469be70..0000000 --- a/messente_api/models/error_title_omnichannel.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorTitleOmnichannel(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - NOT_FOUND = "Not found" - FORBIDDEN = "Forbidden" - UNAUTHORIZED = "Unauthorized" - INVALID_DATA = "Invalid data" - INTERNAL_SERVER_ERROR = "Internal Server Error" - MISSING_DATA = "Missing data" - METHOD_NOT_ALLOWED = "Method not allowed" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ErrorTitleOmnichannel - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorTitleOmnichannel): - 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/messente_api/models/error_title_phonebook.py b/messente_api/models/error_title_phonebook.py deleted file mode 100644 index ff2f2c6..0000000 --- a/messente_api/models/error_title_phonebook.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ErrorTitlePhonebook(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - INVALID_DATA = "Invalid data" - UNAUTHORIZED = "Unauthorized" - MISSING_RESOURCE = "Missing resource" - CONFLICT = "Conflict" - CLIENT_ERROR = "Client error" - GENERAL_ERROR = "General error" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ErrorTitlePhonebook - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, ErrorTitlePhonebook): - 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/messente_api/models/fetch_blacklist_success.py b/messente_api/models/fetch_blacklist_success.py deleted file mode 100644 index 540b866..0000000 --- a/messente_api/models/fetch_blacklist_success.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class FetchBlacklistSuccess(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'phone_numbers': 'list[str]' - } - - attribute_map = { - 'phone_numbers': 'phoneNumbers' - } - - def __init__(self, phone_numbers=None): # noqa: E501 - """FetchBlacklistSuccess - a model defined in OpenAPI""" # noqa: E501 - - self._phone_numbers = None - self.discriminator = None - - if phone_numbers is not None: - self.phone_numbers = phone_numbers - - @property - def phone_numbers(self): - """Gets the phone_numbers of this FetchBlacklistSuccess. # noqa: E501 - - Array of unique phone numbers # noqa: E501 - - :return: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 - :rtype: list[str] - """ - return self._phone_numbers - - @phone_numbers.setter - def phone_numbers(self, phone_numbers): - """Sets the phone_numbers of this FetchBlacklistSuccess. - - Array of unique phone numbers # noqa: E501 - - :param phone_numbers: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 - :type: list[str] - """ - - self._phone_numbers = phone_numbers - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, FetchBlacklistSuccess): - 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/messente_api/models/group_envelope.py b/messente_api/models/group_envelope.py deleted file mode 100644 index 31404d8..0000000 --- a/messente_api/models/group_envelope.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GroupEnvelope(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'group': 'GroupResponseFields' - } - - attribute_map = { - 'group': 'group' - } - - def __init__(self, group=None): # noqa: E501 - """GroupEnvelope - a model defined in OpenAPI""" # noqa: E501 - - self._group = None - self.discriminator = None - - if group is not None: - self.group = group - - @property - def group(self): - """Gets the group of this GroupEnvelope. # noqa: E501 - - - :return: The group of this GroupEnvelope. # noqa: E501 - :rtype: GroupResponseFields - """ - return self._group - - @group.setter - def group(self, group): - """Sets the group of this GroupEnvelope. - - - :param group: The group of this GroupEnvelope. # noqa: E501 - :type: GroupResponseFields - """ - - self._group = group - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, GroupEnvelope): - 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/messente_api/models/group_list_envelope.py b/messente_api/models/group_list_envelope.py deleted file mode 100644 index b727f91..0000000 --- a/messente_api/models/group_list_envelope.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GroupListEnvelope(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'groups': 'list[GroupResponseFields]' - } - - attribute_map = { - 'groups': 'groups' - } - - def __init__(self, groups=None): # noqa: E501 - """GroupListEnvelope - a model defined in OpenAPI""" # noqa: E501 - - self._groups = None - self.discriminator = None - - if groups is not None: - self.groups = groups - - @property - def groups(self): - """Gets the groups of this GroupListEnvelope. # noqa: E501 - - An array of groups # noqa: E501 - - :return: The groups of this GroupListEnvelope. # noqa: E501 - :rtype: list[GroupResponseFields] - """ - return self._groups - - @groups.setter - def groups(self, groups): - """Sets the groups of this GroupListEnvelope. - - An array of groups # noqa: E501 - - :param groups: The groups of this GroupListEnvelope. # noqa: E501 - :type: list[GroupResponseFields] - """ - - self._groups = groups - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, GroupListEnvelope): - 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/messente_api/models/group_name.py b/messente_api/models/group_name.py deleted file mode 100644 index 533e32b..0000000 --- a/messente_api/models/group_name.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GroupName(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'name': 'str' - } - - attribute_map = { - 'name': 'name' - } - - def __init__(self, name=None): # noqa: E501 - """GroupName - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self.discriminator = None - - self.name = name - - @property - def name(self): - """Gets the name of this GroupName. # noqa: E501 - - The name of the group # noqa: E501 - - :return: The name of this GroupName. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GroupName. - - The name of the group # noqa: E501 - - :param name: The name of this GroupName. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - if name is not None and len(name) < 1: - raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, GroupName): - 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/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py deleted file mode 100644 index 0a8eaca..0000000 --- a/messente_api/models/group_response_fields.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GroupResponseFields(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'id': 'str', - 'name': 'str', - 'created_on': 'str', - 'contacts_count': 'int' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'created_on': 'createdOn', - 'contacts_count': 'contactsCount' - } - - def __init__(self, id=None, name=None, created_on=None, contacts_count=None): # noqa: E501 - """GroupResponseFields - a model defined in OpenAPI""" # noqa: E501 - - self._id = None - self._name = None - self._created_on = None - self._contacts_count = None - self.discriminator = None - - self.id = id - self.name = name - self.created_on = created_on - self.contacts_count = contacts_count - - @property - def id(self): - """Gets the id of this GroupResponseFields. # noqa: E501 - - Id string in UUID format # noqa: E501 - - :return: The id of this GroupResponseFields. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GroupResponseFields. - - Id string in UUID format # noqa: E501 - - :param id: The id of this GroupResponseFields. # noqa: E501 - :type: str - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this GroupResponseFields. # noqa: E501 - - The name of the group # noqa: E501 - - :return: The name of this GroupResponseFields. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GroupResponseFields. - - The name of the group # noqa: E501 - - :param name: The name of this GroupResponseFields. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created_on(self): - """Gets the created_on of this GroupResponseFields. # noqa: E501 - - When the group was created # noqa: E501 - - :return: The created_on of this GroupResponseFields. # noqa: E501 - :rtype: str - """ - return self._created_on - - @created_on.setter - def created_on(self, created_on): - """Sets the created_on of this GroupResponseFields. - - When the group was created # noqa: E501 - - :param created_on: The created_on of this GroupResponseFields. # noqa: E501 - :type: str - """ - - self._created_on = created_on - - @property - def contacts_count(self): - """Gets the contacts_count of this GroupResponseFields. # noqa: E501 - - The count of contacts in the group # noqa: E501 - - :return: The contacts_count of this GroupResponseFields. # noqa: E501 - :rtype: int - """ - return self._contacts_count - - @contacts_count.setter - def contacts_count(self, contacts_count): - """Sets the contacts_count of this GroupResponseFields. - - The count of contacts in the group # noqa: E501 - - :param contacts_count: The contacts_count of this GroupResponseFields. # noqa: E501 - :type: int - """ - if contacts_count is None: - raise ValueError("Invalid value for `contacts_count`, must not be `None`") # noqa: E501 - - self._contacts_count = contacts_count - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, GroupResponseFields): - 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/messente_api/models/message_result.py b/messente_api/models/message_result.py deleted file mode 100644 index 6f8f92c..0000000 --- a/messente_api/models/message_result.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class MessageResult(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'message_id': 'str', - 'channel': 'Channel', - 'sender': 'str' - } - - attribute_map = { - 'message_id': 'message_id', - 'channel': 'channel', - 'sender': 'sender' - } - - def __init__(self, message_id=None, channel=None, sender=None): # noqa: E501 - """MessageResult - a model defined in OpenAPI""" # noqa: E501 - - self._message_id = None - self._channel = None - self._sender = None - self.discriminator = None - - self.message_id = message_id - self.channel = channel - self.sender = sender - - @property - def message_id(self): - """Gets the message_id of this MessageResult. # noqa: E501 - - Unique identifier for the message # noqa: E501 - - :return: The message_id of this MessageResult. # noqa: E501 - :rtype: str - """ - return self._message_id - - @message_id.setter - def message_id(self, message_id): - """Sets the message_id of this MessageResult. - - Unique identifier for the message # noqa: E501 - - :param message_id: The message_id of this MessageResult. # noqa: E501 - :type: str - """ - if message_id is None: - raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 - - self._message_id = message_id - - @property - def channel(self): - """Gets the channel of this MessageResult. # noqa: E501 - - - :return: The channel of this MessageResult. # noqa: E501 - :rtype: Channel - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this MessageResult. - - - :param channel: The channel of this MessageResult. # noqa: E501 - :type: Channel - """ - if channel is None: - raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501 - - self._channel = channel - - @property - def sender(self): - """Gets the sender of this MessageResult. # noqa: E501 - - Sender that was used for the message # noqa: E501 - - :return: The sender of this MessageResult. # noqa: E501 - :rtype: str - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this MessageResult. - - Sender that was used for the message # noqa: E501 - - :param sender: The sender of this MessageResult. # noqa: E501 - :type: str - """ - if sender is None: - raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 - - self._sender = sender - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, MessageResult): - 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/messente_api/models/number_to_blacklist.py b/messente_api/models/number_to_blacklist.py deleted file mode 100644 index 954a022..0000000 --- a/messente_api/models/number_to_blacklist.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class NumberToBlacklist(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'phone_number': 'str' - } - - attribute_map = { - 'phone_number': 'phoneNumber' - } - - def __init__(self, phone_number=None): # noqa: E501 - """NumberToBlacklist - a model defined in OpenAPI""" # noqa: E501 - - self._phone_number = None - self.discriminator = None - - self.phone_number = phone_number - - @property - def phone_number(self): - """Gets the phone_number of this NumberToBlacklist. # noqa: E501 - - Phone number in e.164 format # noqa: E501 - - :return: The phone_number of this NumberToBlacklist. # noqa: E501 - :rtype: str - """ - return self._phone_number - - @phone_number.setter - def phone_number(self, phone_number): - """Sets the phone_number of this NumberToBlacklist. - - Phone number in e.164 format # noqa: E501 - - :param phone_number: The phone_number of this NumberToBlacklist. # noqa: E501 - :type: str - """ - if phone_number is None: - raise ValueError("Invalid value for `phone_number`, must not be `None`") # noqa: E501 - - self._phone_number = phone_number - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, NumberToBlacklist): - 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/messente_api/models/omni_message_create_success_response.py b/messente_api/models/omni_message_create_success_response.py deleted file mode 100644 index f766585..0000000 --- a/messente_api/models/omni_message_create_success_response.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class OmniMessageCreateSuccessResponse(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'messages': 'list[MessageResult]', - 'to': 'str', - 'omnimessage_id': 'str' - } - - attribute_map = { - 'messages': 'messages', - 'to': 'to', - 'omnimessage_id': 'omnimessage_id' - } - - def __init__(self, messages=None, to=None, omnimessage_id=None): # noqa: E501 - """OmniMessageCreateSuccessResponse - a model defined in OpenAPI""" # noqa: E501 - - self._messages = None - self._to = None - self._omnimessage_id = None - self.discriminator = None - - self.messages = messages - self.to = to - self.omnimessage_id = omnimessage_id - - @property - def messages(self): - """Gets the messages of this OmniMessageCreateSuccessResponse. # noqa: E501 - - List of messages that compose the omnimessage # noqa: E501 - - :return: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 - :rtype: list[MessageResult] - """ - return self._messages - - @messages.setter - def messages(self, messages): - """Sets the messages of this OmniMessageCreateSuccessResponse. - - List of messages that compose the omnimessage # noqa: E501 - - :param messages: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 - :type: list[MessageResult] - """ - if messages is None: - raise ValueError("Invalid value for `messages`, must not be `None`") # noqa: E501 - - self._messages = messages - - @property - def to(self): - """Gets the to of this OmniMessageCreateSuccessResponse. # noqa: E501 - - Phone number in e.164 format # noqa: E501 - - :return: The to of this OmniMessageCreateSuccessResponse. # noqa: E501 - :rtype: str - """ - return self._to - - @to.setter - def to(self, to): - """Sets the to of this OmniMessageCreateSuccessResponse. - - Phone number in e.164 format # noqa: E501 - - :param to: The to of this OmniMessageCreateSuccessResponse. # noqa: E501 - :type: str - """ - if to is None: - raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 - - self._to = to - - @property - def omnimessage_id(self): - """Gets the omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 - - Unique identifier for the omnimessage # noqa: E501 - - :return: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 - :rtype: str - """ - return self._omnimessage_id - - @omnimessage_id.setter - def omnimessage_id(self, omnimessage_id): - """Sets the omnimessage_id of this OmniMessageCreateSuccessResponse. - - Unique identifier for the omnimessage # noqa: E501 - - :param omnimessage_id: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 - :type: str - """ - if omnimessage_id is None: - raise ValueError("Invalid value for `omnimessage_id`, must not be `None`") # noqa: E501 - - self._omnimessage_id = omnimessage_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, OmniMessageCreateSuccessResponse): - 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/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py deleted file mode 100644 index c841355..0000000 --- a/messente_api/models/omnimessage.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Omnimessage(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'to': 'str', - 'messages': 'list[OneOfViberSMSWhatsApp]', - 'dlr_url': 'str', - 'text_store': 'TextStore', - 'time_to_send': 'datetime' - } - - attribute_map = { - 'to': 'to', - 'messages': 'messages', - 'dlr_url': 'dlr_url', - 'text_store': 'text_store', - 'time_to_send': 'time_to_send' - } - - def __init__(self, to=None, messages=None, dlr_url=None, text_store=None, time_to_send=None): # noqa: E501 - """Omnimessage - a model defined in OpenAPI""" # noqa: E501 - - self._to = None - self._messages = None - self._dlr_url = None - self._text_store = None - self._time_to_send = None - self.discriminator = None - - self.to = to - self.messages = messages - if dlr_url is not None: - self.dlr_url = dlr_url - if text_store is not None: - self.text_store = text_store - if time_to_send is not None: - self.time_to_send = time_to_send - - @property - def to(self): - """Gets the to of this Omnimessage. # noqa: E501 - - Phone number in e.164 format # noqa: E501 - - :return: The to of this Omnimessage. # noqa: E501 - :rtype: str - """ - return self._to - - @to.setter - def to(self, to): - """Sets the to of this Omnimessage. - - Phone number in e.164 format # noqa: E501 - - :param to: The to of this Omnimessage. # noqa: E501 - :type: str - """ - if to is None: - raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 - - self._to = to - - @property - def messages(self): - """Gets the messages of this Omnimessage. # noqa: E501 - - An array of messages # noqa: E501 - - :return: The messages of this Omnimessage. # noqa: E501 - :rtype: list[OneOfViberSMSWhatsApp] - """ - return self._messages - - @messages.setter - def messages(self, messages): - """Sets the messages of this Omnimessage. - - An array of messages # noqa: E501 - - :param messages: The messages of this Omnimessage. # noqa: E501 - :type: list[OneOfViberSMSWhatsApp] - """ - if messages is None: - raise ValueError("Invalid value for `messages`, must not be `None`") # noqa: E501 - - self._messages = messages - - @property - def dlr_url(self): - """Gets the dlr_url of this Omnimessage. # noqa: E501 - - URL where the delivery report will be sent # noqa: E501 - - :return: The dlr_url of this Omnimessage. # noqa: E501 - :rtype: str - """ - return self._dlr_url - - @dlr_url.setter - def dlr_url(self, dlr_url): - """Sets the dlr_url of this Omnimessage. - - URL where the delivery report will be sent # noqa: E501 - - :param dlr_url: The dlr_url of this Omnimessage. # noqa: E501 - :type: str - """ - - self._dlr_url = dlr_url - - @property - def text_store(self): - """Gets the text_store of this Omnimessage. # noqa: E501 - - - :return: The text_store of this Omnimessage. # noqa: E501 - :rtype: TextStore - """ - return self._text_store - - @text_store.setter - def text_store(self, text_store): - """Sets the text_store of this Omnimessage. - - - :param text_store: The text_store of this Omnimessage. # noqa: E501 - :type: TextStore - """ - - self._text_store = text_store - - @property - def time_to_send(self): - """Gets the time_to_send of this Omnimessage. # noqa: E501 - - Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 - - :return: The time_to_send of this Omnimessage. # noqa: E501 - :rtype: datetime - """ - return self._time_to_send - - @time_to_send.setter - def time_to_send(self, time_to_send): - """Sets the time_to_send of this Omnimessage. - - Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 - - :param time_to_send: The time_to_send of this Omnimessage. # noqa: E501 - :type: datetime - """ - - self._time_to_send = time_to_send - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, Omnimessage): - 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/messente_api/models/sms.py b/messente_api/models/sms.py deleted file mode 100644 index 7b354dc..0000000 --- a/messente_api/models/sms.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SMS(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'text': 'str', - 'sender': 'str', - 'validity': 'int', - 'autoconvert': 'str', - 'udh': 'str', - 'channel': 'str' - } - - attribute_map = { - 'text': 'text', - 'sender': 'sender', - 'validity': 'validity', - 'autoconvert': 'autoconvert', - 'udh': 'udh', - 'channel': 'channel' - } - - def __init__(self, text=None, sender=None, validity=None, autoconvert=None, udh=None, channel='sms'): # noqa: E501 - """SMS - a model defined in OpenAPI""" # noqa: E501 - - self._text = None - self._sender = None - self._validity = None - self._autoconvert = None - self._udh = None - self._channel = None - self.discriminator = None - - self.text = text - if sender is not None: - self.sender = sender - if validity is not None: - self.validity = validity - if autoconvert is not None: - self.autoconvert = autoconvert - if udh is not None: - self.udh = udh - if channel is not None: - self.channel = channel - - @property - def text(self): - """Gets the text of this SMS. # noqa: E501 - - Text content of the SMS # noqa: E501 - - :return: The text of this SMS. # noqa: E501 - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """Sets the text of this SMS. - - Text content of the SMS # noqa: E501 - - :param text: The text of this SMS. # noqa: E501 - :type: str - """ - if text is None: - raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 - - self._text = text - - @property - def sender(self): - """Gets the sender of this SMS. # noqa: E501 - - Phone number or alphanumeric sender name # noqa: E501 - - :return: The sender of this SMS. # noqa: E501 - :rtype: str - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this SMS. - - Phone number or alphanumeric sender name # noqa: E501 - - :param sender: The sender of this SMS. # noqa: E501 - :type: str - """ - - self._sender = sender - - @property - def validity(self): - """Gets the validity of this SMS. # noqa: E501 - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :return: The validity of this SMS. # noqa: E501 - :rtype: int - """ - return self._validity - - @validity.setter - def validity(self, validity): - """Sets the validity of this SMS. - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :param validity: The validity of this SMS. # noqa: E501 - :type: int - """ - - self._validity = validity - - @property - def autoconvert(self): - """Gets the autoconvert of this SMS. # noqa: E501 - - Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 - - :return: The autoconvert of this SMS. # noqa: E501 - :rtype: str - """ - return self._autoconvert - - @autoconvert.setter - def autoconvert(self, autoconvert): - """Sets the autoconvert of this SMS. - - Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 - - :param autoconvert: The autoconvert of this SMS. # noqa: E501 - :type: str - """ - allowed_values = ["full", "on", "off"] # noqa: E501 - if autoconvert not in allowed_values: - raise ValueError( - "Invalid value for `autoconvert` ({0}), must be one of {1}" # noqa: E501 - .format(autoconvert, allowed_values) - ) - - self._autoconvert = autoconvert - - @property - def udh(self): - """Gets the udh of this SMS. # noqa: E501 - - hex-encoded string containing SMS UDH # noqa: E501 - - :return: The udh of this SMS. # noqa: E501 - :rtype: str - """ - return self._udh - - @udh.setter - def udh(self, udh): - """Sets the udh of this SMS. - - hex-encoded string containing SMS UDH # noqa: E501 - - :param udh: The udh of this SMS. # noqa: E501 - :type: str - """ - - self._udh = udh - - @property - def channel(self): - """Gets the channel of this SMS. # noqa: E501 - - The channel used to deliver the message # noqa: E501 - - :return: The channel of this SMS. # noqa: E501 - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this SMS. - - The channel used to deliver the message # noqa: E501 - - :param channel: The channel of this SMS. # noqa: E501 - :type: str - """ - allowed_values = ["sms"] # noqa: E501 - if channel not in allowed_values: - raise ValueError( - "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 - .format(channel, allowed_values) - ) - - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, SMS): - 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/messente_api/models/status.py b/messente_api/models/status.py deleted file mode 100644 index bd24a05..0000000 --- a/messente_api/models/status.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Status(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - ACK = "ACK" - DELIVRD = "DELIVRD" - UNDELIV = "UNDELIV" - FAILED = "FAILED" - UNKNOWN = "UNKNOWN" - ACCEPTD = "ACCEPTD" - REJECTD = "REJECTD" - DELETED = "DELETED" - EXPIRED = "EXPIRED" - NACK = "NACK" - SEEN = "SEEN" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """Status - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, Status): - 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/messente_api/models/text_store.py b/messente_api/models/text_store.py deleted file mode 100644 index d12f11c..0000000 --- a/messente_api/models/text_store.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TextStore(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - NOSTORE = "nostore" - PLAINTEXT = "plaintext" - SHA256 = "sha256" - - """ - Attributes: - openapi_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. - """ - openapi_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """TextStore - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, TextStore): - 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/messente_api/models/viber.py b/messente_api/models/viber.py deleted file mode 100644 index 39de9bf..0000000 --- a/messente_api/models/viber.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class Viber(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'sender': 'str', - 'validity': 'int', - 'text': 'str', - 'image_url': 'str', - 'button_url': 'str', - 'button_text': 'str', - 'channel': 'str' - } - - attribute_map = { - 'sender': 'sender', - 'validity': 'validity', - 'text': 'text', - 'image_url': 'image_url', - 'button_url': 'button_url', - 'button_text': 'button_text', - 'channel': 'channel' - } - - def __init__(self, sender=None, validity=None, text=None, image_url=None, button_url=None, button_text=None, channel='viber'): # noqa: E501 - """Viber - a model defined in OpenAPI""" # noqa: E501 - - self._sender = None - self._validity = None - self._text = None - self._image_url = None - self._button_url = None - self._button_text = None - self._channel = None - self.discriminator = None - - if sender is not None: - self.sender = sender - if validity is not None: - self.validity = validity - if text is not None: - self.text = text - if image_url is not None: - self.image_url = image_url - if button_url is not None: - self.button_url = button_url - if button_text is not None: - self.button_text = button_text - if channel is not None: - self.channel = channel - - @property - def sender(self): - """Gets the sender of this Viber. # noqa: E501 - - Phone number or alphanumeric sender name # noqa: E501 - - :return: The sender of this Viber. # noqa: E501 - :rtype: str - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this Viber. - - Phone number or alphanumeric sender name # noqa: E501 - - :param sender: The sender of this Viber. # noqa: E501 - :type: str - """ - - self._sender = sender - - @property - def validity(self): - """Gets the validity of this Viber. # noqa: E501 - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :return: The validity of this Viber. # noqa: E501 - :rtype: int - """ - return self._validity - - @validity.setter - def validity(self, validity): - """Sets the validity of this Viber. - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :param validity: The validity of this Viber. # noqa: E501 - :type: int - """ - - self._validity = validity - - @property - def text(self): - """Gets the text of this Viber. # noqa: E501 - - Plaintext content for Viber # noqa: E501 - - :return: The text of this Viber. # noqa: E501 - :rtype: str - """ - return self._text - - @text.setter - def text(self, text): - """Sets the text of this Viber. - - Plaintext content for Viber # noqa: E501 - - :param text: The text of this Viber. # noqa: E501 - :type: str - """ - - self._text = text - - @property - def image_url(self): - """Gets the image_url of this Viber. # noqa: E501 - - URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 - - :return: The image_url of this Viber. # noqa: E501 - :rtype: str - """ - return self._image_url - - @image_url.setter - def image_url(self, image_url): - """Sets the image_url of this Viber. - - URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 - - :param image_url: The image_url of this Viber. # noqa: E501 - :type: str - """ - - self._image_url = image_url - - @property - def button_url(self): - """Gets the button_url of this Viber. # noqa: E501 - - URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) # noqa: E501 - - :return: The button_url of this Viber. # noqa: E501 - :rtype: str - """ - return self._button_url - - @button_url.setter - def button_url(self, button_url): - """Sets the button_url of this Viber. - - URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) # noqa: E501 - - :param button_url: The button_url of this Viber. # noqa: E501 - :type: str - """ - - self._button_url = button_url - - @property - def button_text(self): - """Gets the button_text of this Viber. # noqa: E501 - - Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) # noqa: E501 - - :return: The button_text of this Viber. # noqa: E501 - :rtype: str - """ - return self._button_text - - @button_text.setter - def button_text(self, button_text): - """Sets the button_text of this Viber. - - Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) # noqa: E501 - - :param button_text: The button_text of this Viber. # noqa: E501 - :type: str - """ - - self._button_text = button_text - - @property - def channel(self): - """Gets the channel of this Viber. # noqa: E501 - - The channel used to deliver the message # noqa: E501 - - :return: The channel of this Viber. # noqa: E501 - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this Viber. - - The channel used to deliver the message # noqa: E501 - - :param channel: The channel of this Viber. # noqa: E501 - :type: str - """ - allowed_values = ["viber"] # noqa: E501 - if channel not in allowed_values: - raise ValueError( - "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 - .format(channel, allowed_values) - ) - - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, Viber): - 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/messente_api/models/whats_app.py b/messente_api/models/whats_app.py deleted file mode 100644 index 18f6133..0000000 --- a/messente_api/models/whats_app.py +++ /dev/null @@ -1,281 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WhatsApp(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'sender': 'str', - 'validity': 'int', - 'text': 'WhatsAppText', - 'image': 'WhatsAppImage', - 'document': 'WhatsAppDocument', - 'audio': 'WhatsAppAudio', - 'channel': 'str' - } - - attribute_map = { - 'sender': 'sender', - 'validity': 'validity', - 'text': 'text', - 'image': 'image', - 'document': 'document', - 'audio': 'audio', - 'channel': 'channel' - } - - def __init__(self, sender=None, validity=None, text=None, image=None, document=None, audio=None, channel='whatsapp'): # noqa: E501 - """WhatsApp - a model defined in OpenAPI""" # noqa: E501 - - self._sender = None - self._validity = None - self._text = None - self._image = None - self._document = None - self._audio = None - self._channel = None - self.discriminator = None - - if sender is not None: - self.sender = sender - if validity is not None: - self.validity = validity - if text is not None: - self.text = text - if image is not None: - self.image = image - if document is not None: - self.document = document - if audio is not None: - self.audio = audio - if channel is not None: - self.channel = channel - - @property - def sender(self): - """Gets the sender of this WhatsApp. # noqa: E501 - - Phone number or alphanumeric sender name # noqa: E501 - - :return: The sender of this WhatsApp. # noqa: E501 - :rtype: str - """ - return self._sender - - @sender.setter - def sender(self, sender): - """Sets the sender of this WhatsApp. - - Phone number or alphanumeric sender name # noqa: E501 - - :param sender: The sender of this WhatsApp. # noqa: E501 - :type: str - """ - - self._sender = sender - - @property - def validity(self): - """Gets the validity of this WhatsApp. # noqa: E501 - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :return: The validity of this WhatsApp. # noqa: E501 - :rtype: int - """ - return self._validity - - @validity.setter - def validity(self, validity): - """Sets the validity of this WhatsApp. - - After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 - - :param validity: The validity of this WhatsApp. # noqa: E501 - :type: int - """ - - self._validity = validity - - @property - def text(self): - """Gets the text of this WhatsApp. # noqa: E501 - - - :return: The text of this WhatsApp. # noqa: E501 - :rtype: WhatsAppText - """ - return self._text - - @text.setter - def text(self, text): - """Sets the text of this WhatsApp. - - - :param text: The text of this WhatsApp. # noqa: E501 - :type: WhatsAppText - """ - - self._text = text - - @property - def image(self): - """Gets the image of this WhatsApp. # noqa: E501 - - - :return: The image of this WhatsApp. # noqa: E501 - :rtype: WhatsAppImage - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this WhatsApp. - - - :param image: The image of this WhatsApp. # noqa: E501 - :type: WhatsAppImage - """ - - self._image = image - - @property - def document(self): - """Gets the document of this WhatsApp. # noqa: E501 - - - :return: The document of this WhatsApp. # noqa: E501 - :rtype: WhatsAppDocument - """ - return self._document - - @document.setter - def document(self, document): - """Sets the document of this WhatsApp. - - - :param document: The document of this WhatsApp. # noqa: E501 - :type: WhatsAppDocument - """ - - self._document = document - - @property - def audio(self): - """Gets the audio of this WhatsApp. # noqa: E501 - - - :return: The audio of this WhatsApp. # noqa: E501 - :rtype: WhatsAppAudio - """ - return self._audio - - @audio.setter - def audio(self, audio): - """Sets the audio of this WhatsApp. - - - :param audio: The audio of this WhatsApp. # noqa: E501 - :type: WhatsAppAudio - """ - - self._audio = audio - - @property - def channel(self): - """Gets the channel of this WhatsApp. # noqa: E501 - - The channel used to deliver the message # noqa: E501 - - :return: The channel of this WhatsApp. # noqa: E501 - :rtype: str - """ - return self._channel - - @channel.setter - def channel(self, channel): - """Sets the channel of this WhatsApp. - - The channel used to deliver the message # noqa: E501 - - :param channel: The channel of this WhatsApp. # noqa: E501 - :type: str - """ - allowed_values = ["whatsapp"] # noqa: E501 - if channel not in allowed_values: - raise ValueError( - "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 - .format(channel, allowed_values) - ) - - self._channel = channel - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, WhatsApp): - 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/messente_api/models/whats_app_audio.py b/messente_api/models/whats_app_audio.py deleted file mode 100644 index b279af4..0000000 --- a/messente_api/models/whats_app_audio.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WhatsAppAudio(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'content': 'str' - } - - attribute_map = { - 'content': 'content' - } - - def __init__(self, content=None): # noqa: E501 - """WhatsAppAudio - a model defined in OpenAPI""" # noqa: E501 - - self._content = None - self.discriminator = None - - self.content = content - - @property - def content(self): - """Gets the content of this WhatsAppAudio. # noqa: E501 - - Base64-encoded audio # noqa: E501 - - :return: The content of this WhatsAppAudio. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this WhatsAppAudio. - - Base64-encoded audio # noqa: E501 - - :param content: The content of this WhatsAppAudio. # noqa: E501 - :type: str - """ - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - - self._content = content - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, WhatsAppAudio): - 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/messente_api/models/whats_app_document.py b/messente_api/models/whats_app_document.py deleted file mode 100644 index 87c51f1..0000000 --- a/messente_api/models/whats_app_document.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WhatsAppDocument(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'caption': 'str', - 'content': 'str' - } - - attribute_map = { - 'caption': 'caption', - 'content': 'content' - } - - def __init__(self, caption=None, content=None): # noqa: E501 - """WhatsAppDocument - a model defined in OpenAPI""" # noqa: E501 - - self._caption = None - self._content = None - self.discriminator = None - - if caption is not None: - self.caption = caption - self.content = content - - @property - def caption(self): - """Gets the caption of this WhatsAppDocument. # noqa: E501 - - Description for the document # noqa: E501 - - :return: The caption of this WhatsAppDocument. # noqa: E501 - :rtype: str - """ - return self._caption - - @caption.setter - def caption(self, caption): - """Sets the caption of this WhatsAppDocument. - - Description for the document # noqa: E501 - - :param caption: The caption of this WhatsAppDocument. # noqa: E501 - :type: str - """ - - self._caption = caption - - @property - def content(self): - """Gets the content of this WhatsAppDocument. # noqa: E501 - - Base64-encoded image # noqa: E501 - - :return: The content of this WhatsAppDocument. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this WhatsAppDocument. - - Base64-encoded image # noqa: E501 - - :param content: The content of this WhatsAppDocument. # noqa: E501 - :type: str - """ - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - - self._content = content - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, WhatsAppDocument): - 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/messente_api/models/whats_app_image.py b/messente_api/models/whats_app_image.py deleted file mode 100644 index c00550c..0000000 --- a/messente_api/models/whats_app_image.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WhatsAppImage(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'caption': 'str', - 'content': 'str' - } - - attribute_map = { - 'caption': 'caption', - 'content': 'content' - } - - def __init__(self, caption=None, content=None): # noqa: E501 - """WhatsAppImage - a model defined in OpenAPI""" # noqa: E501 - - self._caption = None - self._content = None - self.discriminator = None - - if caption is not None: - self.caption = caption - self.content = content - - @property - def caption(self): - """Gets the caption of this WhatsAppImage. # noqa: E501 - - Description for the image # noqa: E501 - - :return: The caption of this WhatsAppImage. # noqa: E501 - :rtype: str - """ - return self._caption - - @caption.setter - def caption(self, caption): - """Sets the caption of this WhatsAppImage. - - Description for the image # noqa: E501 - - :param caption: The caption of this WhatsAppImage. # noqa: E501 - :type: str - """ - - self._caption = caption - - @property - def content(self): - """Gets the content of this WhatsAppImage. # noqa: E501 - - Base64-encoded image # noqa: E501 - - :return: The content of this WhatsAppImage. # noqa: E501 - :rtype: str - """ - return self._content - - @content.setter - def content(self, content): - """Sets the content of this WhatsAppImage. - - Base64-encoded image # noqa: E501 - - :param content: The content of this WhatsAppImage. # noqa: E501 - :type: str - """ - if content is None: - raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - - self._content = content - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, WhatsAppImage): - 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/messente_api/models/whats_app_text.py b/messente_api/models/whats_app_text.py deleted file mode 100644 index 128958d..0000000 --- a/messente_api/models/whats_app_text.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WhatsAppText(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - """ - Attributes: - openapi_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. - """ - openapi_types = { - 'preview_url': 'bool', - 'body': 'str' - } - - attribute_map = { - 'preview_url': 'preview_url', - 'body': 'body' - } - - def __init__(self, preview_url=True, body=None): # noqa: E501 - """WhatsAppText - a model defined in OpenAPI""" # noqa: E501 - - self._preview_url = None - self._body = None - self.discriminator = None - - if preview_url is not None: - self.preview_url = preview_url - self.body = body - - @property - def preview_url(self): - """Gets the preview_url of this WhatsAppText. # noqa: E501 - - Whether to display link preview if the message contains a hyperlink # noqa: E501 - - :return: The preview_url of this WhatsAppText. # noqa: E501 - :rtype: bool - """ - return self._preview_url - - @preview_url.setter - def preview_url(self, preview_url): - """Sets the preview_url of this WhatsAppText. - - Whether to display link preview if the message contains a hyperlink # noqa: E501 - - :param preview_url: The preview_url of this WhatsAppText. # noqa: E501 - :type: bool - """ - - self._preview_url = preview_url - - @property - def body(self): - """Gets the body of this WhatsAppText. # noqa: E501 - - Plaintext content for WhatsApp, can contain URLs, emojis and formatting # noqa: E501 - - :return: The body of this WhatsAppText. # noqa: E501 - :rtype: str - """ - return self._body - - @body.setter - def body(self, body): - """Sets the body of this WhatsAppText. - - Plaintext content for WhatsApp, can contain URLs, emojis and formatting # noqa: E501 - - :param body: The body of this WhatsAppText. # noqa: E501 - :type: str - """ - if body is None: - raise ValueError("Invalid value for `body`, must not be `None`") # noqa: E501 - - self._body = body - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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, WhatsAppText): - 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/messente_api/rest.py b/messente_api/rest.py deleted file mode 100644 index 77e7aad..0000000 --- a/messente_api/rest.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode -import urllib3 - -from messente_api.exceptions import ApiException, ApiValueError - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - proxy_headers=configuration.proxy_headers, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ApiValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = None - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str) or isinstance(body, bytes): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # In the python 3, the response.data is bytes. - # we need to decode it to string. - if six.PY3: - r.data = r.data.decode('utf8') - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index bafdc07..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 1c88757..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "messente-api" -VERSION = "1.0.2" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Messente API", - author_email="messente@messente.com", - url="https://github.com/messente/messente-api-python", - keywords=["viber", "sms", "whatsapp", "phonebook"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 - """ -) diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 2702246..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_blacklist_api.py b/test/test_blacklist_api.py deleted file mode 100644 index cc394ff..0000000 --- a/test/test_blacklist_api.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.api.blacklist_api import BlacklistApi # noqa: E501 -from messente_api.rest import ApiException - - -class TestBlacklistApi(unittest.TestCase): - """BlacklistApi unit test stubs""" - - def setUp(self): - self.api = messente_api.api.blacklist_api.BlacklistApi() # noqa: E501 - - def tearDown(self): - pass - - def test_add_to_blacklist(self): - """Test case for add_to_blacklist - - Adds a phone number to the blacklist # noqa: E501 - """ - pass - - def test_delete_from_blacklist(self): - """Test case for delete_from_blacklist - - Deletes a phone number from the blacklist # noqa: E501 - """ - pass - - def test_fetch_blacklist(self): - """Test case for fetch_blacklist - - Returns all blacklisted phone numbers # noqa: E501 - """ - pass - - def test_is_blacklisted(self): - """Test case for is_blacklisted - - Checks if a phone number is blacklisted # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_channel.py b/test/test_channel.py deleted file mode 100644 index 2e62af1..0000000 --- a/test/test_channel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.channel import Channel # noqa: E501 -from messente_api.rest import ApiException - - -class TestChannel(unittest.TestCase): - """Channel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testChannel(self): - """Test Channel""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.channel.Channel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_contact_envelope.py b/test/test_contact_envelope.py deleted file mode 100644 index cf5fce4..0000000 --- a/test/test_contact_envelope.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.contact_envelope import ContactEnvelope # noqa: E501 -from messente_api.rest import ApiException - - -class TestContactEnvelope(unittest.TestCase): - """ContactEnvelope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContactEnvelope(self): - """Test ContactEnvelope""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.contact_envelope.ContactEnvelope() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_contact_fields.py b/test/test_contact_fields.py deleted file mode 100644 index f2fd59c..0000000 --- a/test/test_contact_fields.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.contact_fields import ContactFields # noqa: E501 -from messente_api.rest import ApiException - - -class TestContactFields(unittest.TestCase): - """ContactFields unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContactFields(self): - """Test ContactFields""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.contact_fields.ContactFields() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_contact_list_envelope.py b/test/test_contact_list_envelope.py deleted file mode 100644 index 9cc5fc0..0000000 --- a/test/test_contact_list_envelope.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.contact_list_envelope import ContactListEnvelope # noqa: E501 -from messente_api.rest import ApiException - - -class TestContactListEnvelope(unittest.TestCase): - """ContactListEnvelope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContactListEnvelope(self): - """Test ContactListEnvelope""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.contact_list_envelope.ContactListEnvelope() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_contact_update_fields.py b/test/test_contact_update_fields.py deleted file mode 100644 index e313e26..0000000 --- a/test/test_contact_update_fields.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.contact_update_fields import ContactUpdateFields # noqa: E501 -from messente_api.rest import ApiException - - -class TestContactUpdateFields(unittest.TestCase): - """ContactUpdateFields unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContactUpdateFields(self): - """Test ContactUpdateFields""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.contact_update_fields.ContactUpdateFields() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py deleted file mode 100644 index 2e1293c..0000000 --- a/test/test_contacts_api.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.api.contacts_api import ContactsApi # noqa: E501 -from messente_api.rest import ApiException - - -class TestContactsApi(unittest.TestCase): - """ContactsApi unit test stubs""" - - def setUp(self): - self.api = messente_api.api.contacts_api.ContactsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_add_contact_to_group(self): - """Test case for add_contact_to_group - - Adds a contact to a group # noqa: E501 - """ - pass - - def test_create_contact(self): - """Test case for create_contact - - Creates a new contact # noqa: E501 - """ - pass - - def test_delete_contact(self): - """Test case for delete_contact - - Deletes a contact # noqa: E501 - """ - pass - - def test_fetch_contact(self): - """Test case for fetch_contact - - Lists a contact # noqa: E501 - """ - pass - - def test_fetch_contact_groups(self): - """Test case for fetch_contact_groups - - Lists groups of a contact # noqa: E501 - """ - pass - - def test_fetch_contacts(self): - """Test case for fetch_contacts - - Returns all contacts # noqa: E501 - """ - pass - - def test_remove_contact_from_group(self): - """Test case for remove_contact_from_group - - Removes a contact from a group # noqa: E501 - """ - pass - - def test_update_contact(self): - """Test case for update_contact - - Updates a contact # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delivery_report_api.py b/test/test_delivery_report_api.py deleted file mode 100644 index a3558c7..0000000 --- a/test/test_delivery_report_api.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.api.delivery_report_api import DeliveryReportApi # noqa: E501 -from messente_api.rest import ApiException - - -class TestDeliveryReportApi(unittest.TestCase): - """DeliveryReportApi unit test stubs""" - - def setUp(self): - self.api = messente_api.api.delivery_report_api.DeliveryReportApi() # noqa: E501 - - def tearDown(self): - pass - - def test_retrieve_delivery_report(self): - """Test case for retrieve_delivery_report - - Retrieves the delivery report for the Omnimessage # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delivery_report_response.py b/test/test_delivery_report_response.py deleted file mode 100644 index c2faf60..0000000 --- a/test/test_delivery_report_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.delivery_report_response import DeliveryReportResponse # noqa: E501 -from messente_api.rest import ApiException - - -class TestDeliveryReportResponse(unittest.TestCase): - """DeliveryReportResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeliveryReportResponse(self): - """Test DeliveryReportResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.delivery_report_response.DeliveryReportResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delivery_result.py b/test/test_delivery_result.py deleted file mode 100644 index 36c339e..0000000 --- a/test/test_delivery_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.delivery_result import DeliveryResult # noqa: E501 -from messente_api.rest import ApiException - - -class TestDeliveryResult(unittest.TestCase): - """DeliveryResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeliveryResult(self): - """Test DeliveryResult""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.delivery_result.DeliveryResult() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_code_omnichannel.py b/test/test_error_code_omnichannel.py deleted file mode 100644 index f1db5f5..0000000 --- a/test/test_error_code_omnichannel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorCodeOmnichannel(unittest.TestCase): - """ErrorCodeOmnichannel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorCodeOmnichannel(self): - """Test ErrorCodeOmnichannel""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_code_omnichannel.ErrorCodeOmnichannel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_code_omnichannel_machine.py b/test/test_error_code_omnichannel_machine.py deleted file mode 100644 index 1689313..0000000 --- a/test/test_error_code_omnichannel_machine.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorCodeOmnichannelMachine(unittest.TestCase): - """ErrorCodeOmnichannelMachine unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorCodeOmnichannelMachine(self): - """Test ErrorCodeOmnichannelMachine""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_code_omnichannel_machine.ErrorCodeOmnichannelMachine() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_code_phonebook.py b/test/test_error_code_phonebook.py deleted file mode 100644 index 992ef7f..0000000 --- a/test/test_error_code_phonebook.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_code_phonebook import ErrorCodePhonebook # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorCodePhonebook(unittest.TestCase): - """ErrorCodePhonebook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorCodePhonebook(self): - """Test ErrorCodePhonebook""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_code_phonebook.ErrorCodePhonebook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_item_omnichannel.py b/test/test_error_item_omnichannel.py deleted file mode 100644 index d466877..0000000 --- a/test/test_error_item_omnichannel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorItemOmnichannel(unittest.TestCase): - """ErrorItemOmnichannel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorItemOmnichannel(self): - """Test ErrorItemOmnichannel""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_item_omnichannel.ErrorItemOmnichannel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_item_phonebook.py b/test/test_error_item_phonebook.py deleted file mode 100644 index 4db6c5e..0000000 --- a/test/test_error_item_phonebook.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_item_phonebook import ErrorItemPhonebook # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorItemPhonebook(unittest.TestCase): - """ErrorItemPhonebook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorItemPhonebook(self): - """Test ErrorItemPhonebook""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_item_phonebook.ErrorItemPhonebook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_omnichannel.py b/test/test_error_omnichannel.py deleted file mode 100644 index 922cf72..0000000 --- a/test/test_error_omnichannel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_omnichannel import ErrorOmnichannel # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorOmnichannel(unittest.TestCase): - """ErrorOmnichannel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorOmnichannel(self): - """Test ErrorOmnichannel""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_omnichannel.ErrorOmnichannel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_phonebook.py b/test/test_error_phonebook.py deleted file mode 100644 index 3ac06e9..0000000 --- a/test/test_error_phonebook.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_phonebook import ErrorPhonebook # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorPhonebook(unittest.TestCase): - """ErrorPhonebook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorPhonebook(self): - """Test ErrorPhonebook""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_phonebook.ErrorPhonebook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_title_omnichannel.py b/test/test_error_title_omnichannel.py deleted file mode 100644 index 2a1b6f5..0000000 --- a/test/test_error_title_omnichannel.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorTitleOmnichannel(unittest.TestCase): - """ErrorTitleOmnichannel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorTitleOmnichannel(self): - """Test ErrorTitleOmnichannel""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_title_omnichannel.ErrorTitleOmnichannel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_error_title_phonebook.py b/test/test_error_title_phonebook.py deleted file mode 100644 index 913f7c4..0000000 --- a/test/test_error_title_phonebook.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.error_title_phonebook import ErrorTitlePhonebook # noqa: E501 -from messente_api.rest import ApiException - - -class TestErrorTitlePhonebook(unittest.TestCase): - """ErrorTitlePhonebook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorTitlePhonebook(self): - """Test ErrorTitlePhonebook""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.error_title_phonebook.ErrorTitlePhonebook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_fetch_blacklist_success.py b/test/test_fetch_blacklist_success.py deleted file mode 100644 index 5eec063..0000000 --- a/test/test_fetch_blacklist_success.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess # noqa: E501 -from messente_api.rest import ApiException - - -class TestFetchBlacklistSuccess(unittest.TestCase): - """FetchBlacklistSuccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFetchBlacklistSuccess(self): - """Test FetchBlacklistSuccess""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.fetch_blacklist_success.FetchBlacklistSuccess() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_envelope.py b/test/test_group_envelope.py deleted file mode 100644 index 774c00e..0000000 --- a/test/test_group_envelope.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.group_envelope import GroupEnvelope # noqa: E501 -from messente_api.rest import ApiException - - -class TestGroupEnvelope(unittest.TestCase): - """GroupEnvelope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGroupEnvelope(self): - """Test GroupEnvelope""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.group_envelope.GroupEnvelope() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_list_envelope.py b/test/test_group_list_envelope.py deleted file mode 100644 index 960cbbf..0000000 --- a/test/test_group_list_envelope.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.group_list_envelope import GroupListEnvelope # noqa: E501 -from messente_api.rest import ApiException - - -class TestGroupListEnvelope(unittest.TestCase): - """GroupListEnvelope unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGroupListEnvelope(self): - """Test GroupListEnvelope""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.group_list_envelope.GroupListEnvelope() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_name.py b/test/test_group_name.py deleted file mode 100644 index 00a5fce..0000000 --- a/test/test_group_name.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.group_name import GroupName # noqa: E501 -from messente_api.rest import ApiException - - -class TestGroupName(unittest.TestCase): - """GroupName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGroupName(self): - """Test GroupName""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.group_name.GroupName() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_group_response_fields.py b/test/test_group_response_fields.py deleted file mode 100644 index ada4c0a..0000000 --- a/test/test_group_response_fields.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.group_response_fields import GroupResponseFields # noqa: E501 -from messente_api.rest import ApiException - - -class TestGroupResponseFields(unittest.TestCase): - """GroupResponseFields unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGroupResponseFields(self): - """Test GroupResponseFields""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.group_response_fields.GroupResponseFields() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_groups_api.py b/test/test_groups_api.py deleted file mode 100644 index d772c50..0000000 --- a/test/test_groups_api.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.api.groups_api import GroupsApi # noqa: E501 -from messente_api.rest import ApiException - - -class TestGroupsApi(unittest.TestCase): - """GroupsApi unit test stubs""" - - def setUp(self): - self.api = messente_api.api.groups_api.GroupsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create_group(self): - """Test case for create_group - - Creates a new group with the provided name # noqa: E501 - """ - pass - - def test_delete_group(self): - """Test case for delete_group - - Deletes a group # noqa: E501 - """ - pass - - def test_fetch_group(self): - """Test case for fetch_group - - Lists a group # noqa: E501 - """ - pass - - def test_fetch_groups(self): - """Test case for fetch_groups - - Returns all groups # noqa: E501 - """ - pass - - def test_update_group(self): - """Test case for update_group - - Updates a group with the provided name # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_message_result.py b/test/test_message_result.py deleted file mode 100644 index 743af81..0000000 --- a/test/test_message_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.message_result import MessageResult # noqa: E501 -from messente_api.rest import ApiException - - -class TestMessageResult(unittest.TestCase): - """MessageResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMessageResult(self): - """Test MessageResult""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.message_result.MessageResult() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_number_to_blacklist.py b/test/test_number_to_blacklist.py deleted file mode 100644 index bf3cbfa..0000000 --- a/test/test_number_to_blacklist.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.number_to_blacklist import NumberToBlacklist # noqa: E501 -from messente_api.rest import ApiException - - -class TestNumberToBlacklist(unittest.TestCase): - """NumberToBlacklist unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNumberToBlacklist(self): - """Test NumberToBlacklist""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.number_to_blacklist.NumberToBlacklist() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_omni_message_create_success_response.py b/test/test_omni_message_create_success_response.py deleted file mode 100644 index 0366e64..0000000 --- a/test/test_omni_message_create_success_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse # noqa: E501 -from messente_api.rest import ApiException - - -class TestOmniMessageCreateSuccessResponse(unittest.TestCase): - """OmniMessageCreateSuccessResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOmniMessageCreateSuccessResponse(self): - """Test OmniMessageCreateSuccessResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.omni_message_create_success_response.OmniMessageCreateSuccessResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_omnimessage.py b/test/test_omnimessage.py deleted file mode 100644 index 45ec4f0..0000000 --- a/test/test_omnimessage.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.omnimessage import Omnimessage # noqa: E501 -from messente_api.rest import ApiException - - -class TestOmnimessage(unittest.TestCase): - """Omnimessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOmnimessage(self): - """Test Omnimessage""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.omnimessage.Omnimessage() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_omnimessage_api.py b/test/test_omnimessage_api.py deleted file mode 100644 index a9d2fb3..0000000 --- a/test/test_omnimessage_api.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.api.omnimessage_api import OmnimessageApi # noqa: E501 -from messente_api.rest import ApiException - - -class TestOmnimessageApi(unittest.TestCase): - """OmnimessageApi unit test stubs""" - - def setUp(self): - self.api = messente_api.api.omnimessage_api.OmnimessageApi() # noqa: E501 - - def tearDown(self): - pass - - def test_cancel_scheduled_message(self): - """Test case for cancel_scheduled_message - - Cancels a scheduled Omnimessage # noqa: E501 - """ - pass - - def test_send_omnimessage(self): - """Test case for send_omnimessage - - Sends an Omnimessage # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_sms.py b/test/test_sms.py deleted file mode 100644 index 96f7073..0000000 --- a/test/test_sms.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.sms import SMS # noqa: E501 -from messente_api.rest import ApiException - - -class TestSMS(unittest.TestCase): - """SMS unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSMS(self): - """Test SMS""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.sms.SMS() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_status.py b/test/test_status.py deleted file mode 100644 index 95df560..0000000 --- a/test/test_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.status import Status # noqa: E501 -from messente_api.rest import ApiException - - -class TestStatus(unittest.TestCase): - """Status unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStatus(self): - """Test Status""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.status.Status() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_text_store.py b/test/test_text_store.py deleted file mode 100644 index 8f23b43..0000000 --- a/test/test_text_store.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.text_store import TextStore # noqa: E501 -from messente_api.rest import ApiException - - -class TestTextStore(unittest.TestCase): - """TextStore unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTextStore(self): - """Test TextStore""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.text_store.TextStore() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_viber.py b/test/test_viber.py deleted file mode 100644 index 1dbcfef..0000000 --- a/test/test_viber.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.viber import Viber # noqa: E501 -from messente_api.rest import ApiException - - -class TestViber(unittest.TestCase): - """Viber unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testViber(self): - """Test Viber""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.viber.Viber() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_whats_app.py b/test/test_whats_app.py deleted file mode 100644 index 106cfc1..0000000 --- a/test/test_whats_app.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.whats_app import WhatsApp # noqa: E501 -from messente_api.rest import ApiException - - -class TestWhatsApp(unittest.TestCase): - """WhatsApp unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWhatsApp(self): - """Test WhatsApp""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.whats_app.WhatsApp() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_whats_app_audio.py b/test/test_whats_app_audio.py deleted file mode 100644 index 81eddde..0000000 --- a/test/test_whats_app_audio.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.whats_app_audio import WhatsAppAudio # noqa: E501 -from messente_api.rest import ApiException - - -class TestWhatsAppAudio(unittest.TestCase): - """WhatsAppAudio unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWhatsAppAudio(self): - """Test WhatsAppAudio""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.whats_app_audio.WhatsAppAudio() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_whats_app_document.py b/test/test_whats_app_document.py deleted file mode 100644 index 0e4fb6f..0000000 --- a/test/test_whats_app_document.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.whats_app_document import WhatsAppDocument # noqa: E501 -from messente_api.rest import ApiException - - -class TestWhatsAppDocument(unittest.TestCase): - """WhatsAppDocument unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWhatsAppDocument(self): - """Test WhatsAppDocument""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.whats_app_document.WhatsAppDocument() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_whats_app_image.py b/test/test_whats_app_image.py deleted file mode 100644 index 49c8b6c..0000000 --- a/test/test_whats_app_image.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.whats_app_image import WhatsAppImage # noqa: E501 -from messente_api.rest import ApiException - - -class TestWhatsAppImage(unittest.TestCase): - """WhatsAppImage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWhatsAppImage(self): - """Test WhatsAppImage""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.whats_app_image.WhatsAppImage() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_whats_app_text.py b/test/test_whats_app_text.py deleted file mode 100644 index 3f3b4b8..0000000 --- a/test/test_whats_app_text.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Messente API - - [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 - Contact: messente@messente.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import messente_api -from messente_api.models.whats_app_text import WhatsAppText # noqa: E501 -from messente_api.rest import ApiException - - -class TestWhatsAppText(unittest.TestCase): - """WhatsAppText unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWhatsAppText(self): - """Test WhatsAppText""" - # FIXME: construct object with mandatory attributes with example values - # model = messente_api.models.whats_app_text.WhatsAppText() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 3d0be61..0000000 --- a/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py27, py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] From c088c1dea0ef9b8b7cd16edd8c9c28c39acc7eab Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 6 Jun 2019 10:41:12 +0000 Subject: [PATCH 13/16] Travis update: Jun 2019 (Build 269) [skip ci] --- .gitignore | 64 ++ .openapi-generator-ignore | 23 + .openapi-generator/VERSION | 1 + .travis.yml | 12 + README.md | 131 +++ docs/BlacklistApi.md | 213 +++++ docs/Channel.md | 9 + docs/ContactEnvelope.md | 10 + docs/ContactFields.md | 19 + docs/ContactListEnvelope.md | 10 + docs/ContactUpdateFields.md | 18 + docs/ContactsApi.md | 436 ++++++++++ docs/DeliveryReportApi.md | 61 ++ docs/DeliveryReportResponse.md | 12 + docs/DeliveryResult.md | 15 + docs/ErrorCodeOmnichannel.md | 9 + docs/ErrorCodeOmnichannelMachine.md | 9 + docs/ErrorCodePhonebook.md | 9 + docs/ErrorItemOmnichannel.md | 13 + docs/ErrorItemPhonebook.md | 12 + docs/ErrorOmnichannel.md | 10 + docs/ErrorPhonebook.md | 10 + docs/ErrorTitleOmnichannel.md | 9 + docs/ErrorTitlePhonebook.md | 9 + docs/FetchBlacklistSuccess.md | 10 + docs/GroupEnvelope.md | 10 + docs/GroupListEnvelope.md | 10 + docs/GroupName.md | 10 + docs/GroupResponseFields.md | 13 + docs/GroupsApi.md | 270 ++++++ docs/MessageResult.md | 12 + docs/NumberToBlacklist.md | 10 + docs/OmniMessageCreateSuccessResponse.md | 12 + docs/Omnimessage.md | 14 + docs/OmnimessageApi.md | 113 +++ docs/SMS.md | 15 + docs/Status.md | 9 + docs/TextStore.md | 9 + docs/Viber.md | 16 + docs/WhatsApp.md | 16 + docs/WhatsAppAudio.md | 10 + docs/WhatsAppDocument.md | 11 + docs/WhatsAppImage.md | 11 + docs/WhatsAppText.md | 11 + git_push.sh | 52 ++ messente_api/__init__.py | 70 ++ messente_api/api/__init__.py | 10 + messente_api/api/blacklist_api.py | 410 +++++++++ messente_api/api/contacts_api.py | 819 ++++++++++++++++++ messente_api/api/delivery_report_api.py | 132 +++ messente_api/api/groups_api.py | 516 +++++++++++ messente_api/api/omnimessage_api.py | 230 +++++ messente_api/api_client.py | 641 ++++++++++++++ messente_api/configuration.py | 289 ++++++ messente_api/exceptions.py | 121 +++ messente_api/models/__init__.py | 51 ++ messente_api/models/channel.py | 92 ++ messente_api/models/contact_envelope.py | 113 +++ messente_api/models/contact_fields.py | 359 ++++++++ messente_api/models/contact_list_envelope.py | 115 +++ messente_api/models/contact_update_fields.py | 330 +++++++ .../models/delivery_report_response.py | 174 ++++ messente_api/models/delivery_result.py | 249 ++++++ messente_api/models/error_code_omnichannel.py | 96 ++ .../models/error_code_omnichannel_machine.py | 101 +++ messente_api/models/error_code_phonebook.py | 95 ++ messente_api/models/error_item_omnichannel.py | 199 +++++ messente_api/models/error_item_phonebook.py | 170 ++++ messente_api/models/error_omnichannel.py | 116 +++ messente_api/models/error_phonebook.py | 116 +++ .../models/error_title_omnichannel.py | 96 ++ messente_api/models/error_title_phonebook.py | 95 ++ .../models/fetch_blacklist_success.py | 115 +++ messente_api/models/group_envelope.py | 113 +++ messente_api/models/group_list_envelope.py | 115 +++ messente_api/models/group_name.py | 118 +++ messente_api/models/group_response_fields.py | 201 +++++ messente_api/models/message_result.py | 172 ++++ messente_api/models/number_to_blacklist.py | 116 +++ .../omni_message_create_success_response.py | 174 ++++ messente_api/models/omnimessage.py | 227 +++++ messente_api/models/sms.py | 268 ++++++ messente_api/models/status.py | 100 +++ messente_api/models/text_store.py | 92 ++ messente_api/models/viber.py | 289 ++++++ messente_api/models/whats_app.py | 281 ++++++ messente_api/models/whats_app_audio.py | 116 +++ messente_api/models/whats_app_document.py | 144 +++ messente_api/models/whats_app_image.py | 144 +++ messente_api/models/whats_app_text.py | 144 +++ messente_api/rest.py | 297 +++++++ requirements.txt | 5 + setup.py | 40 + test-requirements.txt | 5 + test/__init__.py | 0 test/test_blacklist_api.py | 62 ++ test/test_channel.py | 40 + test/test_contact_envelope.py | 40 + test/test_contact_fields.py | 40 + test/test_contact_list_envelope.py | 40 + test/test_contact_update_fields.py | 40 + test/test_contacts_api.py | 90 ++ test/test_delivery_report_api.py | 41 + test/test_delivery_report_response.py | 40 + test/test_delivery_result.py | 40 + test/test_error_code_omnichannel.py | 40 + test/test_error_code_omnichannel_machine.py | 40 + test/test_error_code_phonebook.py | 40 + test/test_error_item_omnichannel.py | 40 + test/test_error_item_phonebook.py | 40 + test/test_error_omnichannel.py | 40 + test/test_error_phonebook.py | 40 + test/test_error_title_omnichannel.py | 40 + test/test_error_title_phonebook.py | 40 + test/test_fetch_blacklist_success.py | 40 + test/test_group_envelope.py | 40 + test/test_group_list_envelope.py | 40 + test/test_group_name.py | 40 + test/test_group_response_fields.py | 40 + test/test_groups_api.py | 69 ++ test/test_message_result.py | 40 + test/test_number_to_blacklist.py | 40 + ...st_omni_message_create_success_response.py | 40 + test/test_omnimessage.py | 40 + test/test_omnimessage_api.py | 48 + test/test_sms.py | 40 + test/test_status.py | 40 + test/test_text_store.py | 40 + test/test_viber.py | 40 + test/test_whats_app.py | 40 + test/test_whats_app_audio.py | 40 + test/test_whats_app_document.py | 40 + test/test_whats_app_image.py | 40 + test/test_whats_app_text.py | 40 + tox.ini | 10 + 135 files changed, 12529 insertions(+) create mode 100644 .gitignore create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/VERSION create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 docs/BlacklistApi.md create mode 100644 docs/Channel.md create mode 100644 docs/ContactEnvelope.md create mode 100644 docs/ContactFields.md create mode 100644 docs/ContactListEnvelope.md create mode 100644 docs/ContactUpdateFields.md create mode 100644 docs/ContactsApi.md create mode 100644 docs/DeliveryReportApi.md create mode 100644 docs/DeliveryReportResponse.md create mode 100644 docs/DeliveryResult.md create mode 100644 docs/ErrorCodeOmnichannel.md create mode 100644 docs/ErrorCodeOmnichannelMachine.md create mode 100644 docs/ErrorCodePhonebook.md create mode 100644 docs/ErrorItemOmnichannel.md create mode 100644 docs/ErrorItemPhonebook.md create mode 100644 docs/ErrorOmnichannel.md create mode 100644 docs/ErrorPhonebook.md create mode 100644 docs/ErrorTitleOmnichannel.md create mode 100644 docs/ErrorTitlePhonebook.md create mode 100644 docs/FetchBlacklistSuccess.md create mode 100644 docs/GroupEnvelope.md create mode 100644 docs/GroupListEnvelope.md create mode 100644 docs/GroupName.md create mode 100644 docs/GroupResponseFields.md create mode 100644 docs/GroupsApi.md create mode 100644 docs/MessageResult.md create mode 100644 docs/NumberToBlacklist.md create mode 100644 docs/OmniMessageCreateSuccessResponse.md create mode 100644 docs/Omnimessage.md create mode 100644 docs/OmnimessageApi.md create mode 100644 docs/SMS.md create mode 100644 docs/Status.md create mode 100644 docs/TextStore.md create mode 100644 docs/Viber.md create mode 100644 docs/WhatsApp.md create mode 100644 docs/WhatsAppAudio.md create mode 100644 docs/WhatsAppDocument.md create mode 100644 docs/WhatsAppImage.md create mode 100644 docs/WhatsAppText.md create mode 100644 git_push.sh create mode 100644 messente_api/__init__.py create mode 100644 messente_api/api/__init__.py create mode 100644 messente_api/api/blacklist_api.py create mode 100644 messente_api/api/contacts_api.py create mode 100644 messente_api/api/delivery_report_api.py create mode 100644 messente_api/api/groups_api.py create mode 100644 messente_api/api/omnimessage_api.py create mode 100644 messente_api/api_client.py create mode 100644 messente_api/configuration.py create mode 100644 messente_api/exceptions.py create mode 100644 messente_api/models/__init__.py create mode 100644 messente_api/models/channel.py create mode 100644 messente_api/models/contact_envelope.py create mode 100644 messente_api/models/contact_fields.py create mode 100644 messente_api/models/contact_list_envelope.py create mode 100644 messente_api/models/contact_update_fields.py create mode 100644 messente_api/models/delivery_report_response.py create mode 100644 messente_api/models/delivery_result.py create mode 100644 messente_api/models/error_code_omnichannel.py create mode 100644 messente_api/models/error_code_omnichannel_machine.py create mode 100644 messente_api/models/error_code_phonebook.py create mode 100644 messente_api/models/error_item_omnichannel.py create mode 100644 messente_api/models/error_item_phonebook.py create mode 100644 messente_api/models/error_omnichannel.py create mode 100644 messente_api/models/error_phonebook.py create mode 100644 messente_api/models/error_title_omnichannel.py create mode 100644 messente_api/models/error_title_phonebook.py create mode 100644 messente_api/models/fetch_blacklist_success.py create mode 100644 messente_api/models/group_envelope.py create mode 100644 messente_api/models/group_list_envelope.py create mode 100644 messente_api/models/group_name.py create mode 100644 messente_api/models/group_response_fields.py create mode 100644 messente_api/models/message_result.py create mode 100644 messente_api/models/number_to_blacklist.py create mode 100644 messente_api/models/omni_message_create_success_response.py create mode 100644 messente_api/models/omnimessage.py create mode 100644 messente_api/models/sms.py create mode 100644 messente_api/models/status.py create mode 100644 messente_api/models/text_store.py create mode 100644 messente_api/models/viber.py create mode 100644 messente_api/models/whats_app.py create mode 100644 messente_api/models/whats_app_audio.py create mode 100644 messente_api/models/whats_app_document.py create mode 100644 messente_api/models/whats_app_image.py create mode 100644 messente_api/models/whats_app_text.py create mode 100644 messente_api/rest.py create mode 100644 requirements.txt create mode 100644 setup.py create mode 100644 test-requirements.txt create mode 100644 test/__init__.py create mode 100644 test/test_blacklist_api.py create mode 100644 test/test_channel.py create mode 100644 test/test_contact_envelope.py create mode 100644 test/test_contact_fields.py create mode 100644 test/test_contact_list_envelope.py create mode 100644 test/test_contact_update_fields.py create mode 100644 test/test_contacts_api.py create mode 100644 test/test_delivery_report_api.py create mode 100644 test/test_delivery_report_response.py create mode 100644 test/test_delivery_result.py create mode 100644 test/test_error_code_omnichannel.py create mode 100644 test/test_error_code_omnichannel_machine.py create mode 100644 test/test_error_code_phonebook.py create mode 100644 test/test_error_item_omnichannel.py create mode 100644 test/test_error_item_phonebook.py create mode 100644 test/test_error_omnichannel.py create mode 100644 test/test_error_phonebook.py create mode 100644 test/test_error_title_omnichannel.py create mode 100644 test/test_error_title_phonebook.py create mode 100644 test/test_fetch_blacklist_success.py create mode 100644 test/test_group_envelope.py create mode 100644 test/test_group_list_envelope.py create mode 100644 test/test_group_name.py create mode 100644 test/test_group_response_fields.py create mode 100644 test/test_groups_api.py create mode 100644 test/test_message_result.py create mode 100644 test/test_number_to_blacklist.py create mode 100644 test/test_omni_message_create_success_response.py create mode 100644 test/test_omnimessage.py create mode 100644 test/test_omnimessage_api.py create mode 100644 test/test_sms.py create mode 100644 test/test_status.py create mode 100644 test/test_text_store.py create mode 100644 test/test_viber.py create mode 100644 test/test_whats_app.py create mode 100644 test/test_whats_app_audio.py create mode 100644 test/test_whats_app_document.py create mode 100644 test/test_whats_app_image.py create mode 100644 test/test_whats_app_text.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a655050 --- /dev/null +++ b/.gitignore @@ -0,0 +1,64 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..0c89fc9 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1b62c4f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: python + +script: +- echo "skipping tests" + +deploy: + provider: pypi + user: messente + password: + secure: T6b+hfVKTyJUUprT/7c6+nuEpqjENHWbZ5OrFLq/fo0N++aUgB7/VgsY7L2U9vmuog2xf34Di0C66fe/Tmy5czc+iXbwSnS6uP0aJk6dnERrdhiarUHgsDq4/txx59qYXZfelCO38M54GBPAlDzVp5/ONocbOrrJUPnt++0t/ocwbq2x5m6RSycJCEBWjxkBuLclrIkUvI+0IgJl/CXUro2OeVUg4J7rrwI68XAKAZF2SOQm/V3Ak30ax7CE2XFScVSvfz2g5kJbvtamFwdPRAwA5ThU4q6TDlL49DEblZCSKzAwOTkKkIkjFY5m6PPkNnxFAEsBjRyU5tl+T1pPvM0Gd/AY3lBXruRbU8SmGJgZbz59q1SQ1NRm5gHKpFEQ0kwWJvEJMOwRDLH16nFY4XX15ffVWFqw8Pkaso6NV6RTRVFTV3rVY2YPa1ili2QvkHYjejMZRDG+13MR+gJGWbjU2Uql3kj/QbIBFMyzXcfbLSpdn65KkzI5Svvzl/CsBZ0NsXIhH8rRsK464bZUuDY7qLbNca4IxARZRb2jH9C3Zas4kjJzl9J5TjkZTc8HTl+5PB8k+XsBaPSa1BvGvS3YEpQF6mVOr/SkQGX/yMV/WcmZJekSaWVrgdt5twPlfah0bwfKx60FKJqQYP2+2HeoA56UPrwSGT5ocz0wQC8= + on: + tags: true diff --git a/README.md b/README.md new file mode 100644 index 0000000..c591975 --- /dev/null +++ b/README.md @@ -0,0 +1,131 @@ +# Messente API Library + +- Messente API version: 1.0.1 +- Python package version: 1.0.2 + +[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. + +## Installation + +Install Messente API library with `pip install messente-api`. + +## Features + +Messente API has the following features: + +- Omnichannel ([external docs](https://messente.com/documentation/omnichannel-api)), +- Phonebook ([external docs](https://messente.com/documentation/phonebook-api)). + +Messente API Library provides the operations described below to access the features. + +### BlacklistApi + +1. Adds a phone number to the blacklist [`add_to_blacklist`](docs/BlacklistApi.md#add_to_blacklist) +1. Deletes a phone number from the blacklist [`delete_from_blacklist`](docs/BlacklistApi.md#delete_from_blacklist) +1. Returns all blacklisted phone numbers [`fetch_blacklist`](docs/BlacklistApi.md#fetch_blacklist) +1. Checks if a phone number is blacklisted [`is_blacklisted`](docs/BlacklistApi.md#is_blacklisted) + +### ContactsApi + +1. Adds a contact to a group [`add_contact_to_group`](docs/ContactsApi.md#add_contact_to_group) +1. Creates a new contact [`create_contact`](docs/ContactsApi.md#create_contact) +1. Deletes a contact [`delete_contact`](docs/ContactsApi.md#delete_contact) +1. Lists a contact [`fetch_contact`](docs/ContactsApi.md#fetch_contact) +1. Lists groups of a contact [`fetch_contact_groups`](docs/ContactsApi.md#fetch_contact_groups) +1. Returns all contacts [`fetch_contacts`](docs/ContactsApi.md#fetch_contacts) +1. Removes a contact from a group [`remove_contact_from_group`](docs/ContactsApi.md#remove_contact_from_group) +1. Updates a contact [`update_contact`](docs/ContactsApi.md#update_contact) + +### DeliveryReportApi + +1. Retrieves the delivery report for the Omnimessage [`retrieve_delivery_report`](docs/DeliveryReportApi.md#retrieve_delivery_report) + +### GroupsApi + +1. Creates a new group with the provided name [`create_group`](docs/GroupsApi.md#create_group) +1. Deletes a group [`delete_group`](docs/GroupsApi.md#delete_group) +1. Lists a group [`fetch_group`](docs/GroupsApi.md#fetch_group) +1. Returns all groups [`fetch_groups`](docs/GroupsApi.md#fetch_groups) +1. Updates a group with the provided name [`update_group`](docs/GroupsApi.md#update_group) + +### OmnimessageApi + +1. Cancels a scheduled Omnimessage [`cancel_scheduled_message`](docs/OmnimessageApi.md#cancel_scheduled_message) +1. Sends an Omnimessage [`send_omnimessage`](docs/OmnimessageApi.md#send_omnimessage) + +## Auth + +**Type**: HTTP basic authentication + +Read the [external getting-started article](https://messente.com/documentation/getting-started) which explains API keys and Sender ID logic. + +## Getting started: sending an omnimessage + +```python +from pprint import pprint +from messente_api import ( + OmnimessageApi, + Viber, + SMS, + Omnimessage, + Configuration, + ApiClient, + WhatsApp, + WhatsAppText +) +from messente_api.rest import ApiException + +# API information from https://dashboard.messente.com/api-settings +configuration = Configuration() +configuration.username = '' +configuration.password = '' + +# create an instance of the API class +api_instance = OmnimessageApi(ApiClient(configuration)) + +whatsapp = WhatsApp( + sender='', + text=WhatsAppText( + body='hello whatsapp' + ) +) + +viber = Viber( + sender='', + text='hello python', +) + +sms = SMS( + sender='', + text='hello python', +) + +# The order of items in 'messages' specifies the sending order: +# WhatsApp will be attempted first, +# then Viber, +# and SMS as the final fallback +omnimessage = Omnimessage( + messages=(whatsapp, viber, sms), + to='', +) # Omnimessage | Omnimessage object that is to be sent + +try: + # Sends an Omnimessage + response = api_instance.send_omnimessage(omnimessage) + print( + 'Successfully sent Omnimessage with id: %s that consists of the following messages:' % response.omnimessage_id + ) + for message in response.messages: + pprint(message) +except ApiException as exception: + print('Exception when sending an omnimessage: %s\n' % exception) + +``` + +## License + +[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) + +## Terms + +[https://messente.com/terms-and-conditions](https://messente.com/terms-and-conditions) diff --git a/docs/BlacklistApi.md b/docs/BlacklistApi.md new file mode 100644 index 0000000..d883382 --- /dev/null +++ b/docs/BlacklistApi.md @@ -0,0 +1,213 @@ +# messente_api.BlacklistApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist +[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist +[**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers +[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted + + +# **add_to_blacklist** +> add_to_blacklist(number_to_blacklist) + +Adds a phone number to the blacklist + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) +number_to_blacklist = messente_api.NumberToBlacklist() # NumberToBlacklist | Phone number to be blacklisted + +try: + # Adds a phone number to the blacklist + api_instance.add_to_blacklist(number_to_blacklist) +except ApiException as e: + print("Exception when calling BlacklistApi->add_to_blacklist: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **number_to_blacklist** | [**NumberToBlacklist**](NumberToBlacklist.md)| Phone number to be blacklisted | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + +# **delete_from_blacklist** +> delete_from_blacklist(phone) + +Deletes a phone number from the blacklist + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number + +try: + # Deletes a phone number from the blacklist + api_instance.delete_from_blacklist(phone) +except ApiException as e: + print("Exception when calling BlacklistApi->delete_from_blacklist: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_blacklist** +> FetchBlacklistSuccess fetch_blacklist() + +Returns all blacklisted phone numbers + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) + +try: + # Returns all blacklisted phone numbers + api_response = api_instance.fetch_blacklist() + pprint(api_response) +except ApiException as e: + print("Exception when calling BlacklistApi->fetch_blacklist: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FetchBlacklistSuccess**](FetchBlacklistSuccess.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **is_blacklisted** +> is_blacklisted(phone) + +Checks if a phone number is blacklisted + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number + +try: + # Checks if a phone number is blacklisted + api_instance.is_blacklisted(phone) +except ApiException as e: + print("Exception when calling BlacklistApi->is_blacklisted: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + diff --git a/docs/Channel.md b/docs/Channel.md new file mode 100644 index 0000000..a76c8af --- /dev/null +++ b/docs/Channel.md @@ -0,0 +1,9 @@ +# Channel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ContactEnvelope.md b/docs/ContactEnvelope.md new file mode 100644 index 0000000..cfb8cc8 --- /dev/null +++ b/docs/ContactEnvelope.md @@ -0,0 +1,10 @@ +# ContactEnvelope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contact** | [**ContactFields**](ContactFields.md) | | [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/ContactFields.md b/docs/ContactFields.md new file mode 100644 index 0000000..3e97de7 --- /dev/null +++ b/docs/ContactFields.md @@ -0,0 +1,19 @@ +# ContactFields + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phone_number** | **str** | Phone number in e.164 format | +**email** | **str** | The email of the contact | [optional] +**first_name** | **str** | The first name of the contact | [optional] +**last_name** | **str** | The last name of the contact | [optional] +**company** | **str** | The company of the contact | [optional] +**title** | **str** | The title of the contact | [optional] +**custom** | **str** | The first custom field | [optional] +**custom2** | **str** | The second custom field | [optional] +**custom3** | **str** | The third custom field | [optional] +**custom4** | **str** | The fourth custom field | [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/ContactListEnvelope.md b/docs/ContactListEnvelope.md new file mode 100644 index 0000000..22b82de --- /dev/null +++ b/docs/ContactListEnvelope.md @@ -0,0 +1,10 @@ +# ContactListEnvelope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contacts** | [**list[ContactFields]**](ContactFields.md) | An array of contacts | [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/ContactUpdateFields.md b/docs/ContactUpdateFields.md new file mode 100644 index 0000000..2628bad --- /dev/null +++ b/docs/ContactUpdateFields.md @@ -0,0 +1,18 @@ +# ContactUpdateFields + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | The email of the contact | [optional] +**first_name** | **str** | The first name of the contact | [optional] +**last_name** | **str** | The last name of the contact | [optional] +**company** | **str** | The company of the contact | [optional] +**title** | **str** | The title of the contact | [optional] +**custom** | **str** | The first custom field | [optional] +**custom2** | **str** | The second custom field | [optional] +**custom3** | **str** | The third custom field | [optional] +**custom4** | **str** | The fourth custom field | [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/ContactsApi.md b/docs/ContactsApi.md new file mode 100644 index 0000000..cffd1ec --- /dev/null +++ b/docs/ContactsApi.md @@ -0,0 +1,436 @@ +# messente_api.ContactsApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group +[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact +[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact +[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact +[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact +[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts +[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group +[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact + + +# **add_contact_to_group** +> object add_contact_to_group(group_id, phone) + +Adds a contact to a group + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +group_id = 'group_id_example' # str | String in UUID format +phone = 'phone_example' # str | A phone number + +try: + # Adds a contact to a group + api_response = api_instance.add_contact_to_group(group_id, phone) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->add_contact_to_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| String in UUID format | + **phone** | **str**| A phone number | + +### Return type + +**object** + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **create_contact** +> ContactEnvelope create_contact(contact_fields) + +Creates a new contact + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +contact_fields = messente_api.ContactFields() # ContactFields | + +try: + # Creates a new contact + api_response = api_instance.create_contact(contact_fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->create_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **contact_fields** | [**ContactFields**](ContactFields.md)| | + +### Return type + +[**ContactEnvelope**](ContactEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + +# **delete_contact** +> delete_contact(phone) + +Deletes a contact + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number + +try: + # Deletes a contact + api_instance.delete_contact(phone) +except ApiException as e: + print("Exception when calling ContactsApi->delete_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_contact** +> ContactEnvelope fetch_contact(phone) + +Lists a contact + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number + +try: + # Lists a contact + api_response = api_instance.fetch_contact(phone) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->fetch_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + +### Return type + +[**ContactEnvelope**](ContactEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_contact_groups** +> GroupListEnvelope fetch_contact_groups(phone) + +Lists groups of a contact + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number + +try: + # Lists groups of a contact + api_response = api_instance.fetch_contact_groups(phone) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->fetch_contact_groups: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + +### Return type + +[**GroupListEnvelope**](GroupListEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_contacts** +> ContactListEnvelope fetch_contacts(group_ids=group_ids) + +Returns all contacts + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +group_ids = ['group_ids_example'] # list[str] | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" (optional) + +try: + # Returns all contacts + api_response = api_instance.fetch_contacts(group_ids=group_ids) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->fetch_contacts: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_ids** | [**list[str]**](str.md)| Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional] + +### Return type + +[**ContactListEnvelope**](ContactListEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **remove_contact_from_group** +> remove_contact_from_group(group_id, phone) + +Removes a contact from a group + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +group_id = 'group_id_example' # str | String in UUID format +phone = 'phone_example' # str | A phone number + +try: + # Removes a contact from a group + api_instance.remove_contact_from_group(group_id, phone) +except ApiException as e: + print("Exception when calling ContactsApi->remove_contact_from_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| String in UUID format | + **phone** | **str**| A phone number | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **update_contact** +> ContactEnvelope update_contact(phone, contact_update_fields) + +Updates a contact + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.ContactsApi(messente_api.ApiClient(configuration)) +phone = 'phone_example' # str | A phone number +contact_update_fields = messente_api.ContactUpdateFields() # ContactUpdateFields | + +try: + # Updates a contact + api_response = api_instance.update_contact(phone, contact_update_fields) + pprint(api_response) +except ApiException as e: + print("Exception when calling ContactsApi->update_contact: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **phone** | **str**| A phone number | + **contact_update_fields** | [**ContactUpdateFields**](ContactUpdateFields.md)| | + +### Return type + +[**ContactEnvelope**](ContactEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md new file mode 100644 index 0000000..26612eb --- /dev/null +++ b/docs/DeliveryReportApi.md @@ -0,0 +1,61 @@ +# messente_api.DeliveryReportApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**retrieve_delivery_report**](DeliveryReportApi.md#retrieve_delivery_report) | **GET** /omnimessage/{omnimessageId}/status | Retrieves the delivery report for the Omnimessage + + +# **retrieve_delivery_report** +> DeliveryReportResponse retrieve_delivery_report(omnimessage_id) + +Retrieves the delivery report for the Omnimessage + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.DeliveryReportApi(messente_api.ApiClient(configuration)) +omnimessage_id = 'omnimessage_id_example' # str | UUID of the omnimessage to for which the delivery report is to be retrieved + +try: + # Retrieves the delivery report for the Omnimessage + api_response = api_instance.retrieve_delivery_report(omnimessage_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DeliveryReportApi->retrieve_delivery_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **omnimessage_id** | **str**| UUID of the omnimessage to for which the delivery report is to be retrieved | + +### Return type + +[**DeliveryReportResponse**](DeliveryReportResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + diff --git a/docs/DeliveryReportResponse.md b/docs/DeliveryReportResponse.md new file mode 100644 index 0000000..b6b6360 --- /dev/null +++ b/docs/DeliveryReportResponse.md @@ -0,0 +1,12 @@ +# DeliveryReportResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**statuses** | [**list[DeliveryResult]**](DeliveryResult.md) | Contains the delivery reports for each channel, ordered by send order | +**to** | **str** | Phone number in e.164 format | +**omnimessage_id** | **str** | Unique identifier for the omnimessage | + +[[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/DeliveryResult.md b/docs/DeliveryResult.md new file mode 100644 index 0000000..f038a75 --- /dev/null +++ b/docs/DeliveryResult.md @@ -0,0 +1,15 @@ +# DeliveryResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**Status**](Status.md) | | [optional] +**channel** | [**Channel**](Channel.md) | | [optional] +**message_id** | **str** | Unique identifier for the message | [optional] +**error** | **str** | Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet | [optional] +**err** | [**ErrorCodeOmnichannelMachine**](ErrorCodeOmnichannelMachine.md) | | [optional] +**timestamp** | **datetime** | When this status was received by Omnichannel API | [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/ErrorCodeOmnichannel.md b/docs/ErrorCodeOmnichannel.md new file mode 100644 index 0000000..c1b0288 --- /dev/null +++ b/docs/ErrorCodeOmnichannel.md @@ -0,0 +1,9 @@ +# ErrorCodeOmnichannel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ErrorCodeOmnichannelMachine.md b/docs/ErrorCodeOmnichannelMachine.md new file mode 100644 index 0000000..7efcc02 --- /dev/null +++ b/docs/ErrorCodeOmnichannelMachine.md @@ -0,0 +1,9 @@ +# ErrorCodeOmnichannelMachine + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ErrorCodePhonebook.md b/docs/ErrorCodePhonebook.md new file mode 100644 index 0000000..fdc5ce8 --- /dev/null +++ b/docs/ErrorCodePhonebook.md @@ -0,0 +1,9 @@ +# ErrorCodePhonebook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ErrorItemOmnichannel.md b/docs/ErrorItemOmnichannel.md new file mode 100644 index 0000000..a88f79b --- /dev/null +++ b/docs/ErrorItemOmnichannel.md @@ -0,0 +1,13 @@ +# ErrorItemOmnichannel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | [**ErrorTitleOmnichannel**](ErrorTitleOmnichannel.md) | | +**detail** | **str** | Free form more detailed description of the error | +**code** | [**ErrorCodeOmnichannel**](ErrorCodeOmnichannel.md) | | +**source** | **str** | Describes which field is causing the issue in the payload, null for non 400 status code responses | + +[[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/ErrorItemPhonebook.md b/docs/ErrorItemPhonebook.md new file mode 100644 index 0000000..2212061 --- /dev/null +++ b/docs/ErrorItemPhonebook.md @@ -0,0 +1,12 @@ +# ErrorItemPhonebook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | [**ErrorTitlePhonebook**](ErrorTitlePhonebook.md) | | +**detail** | **str** | Free form more detailed description of the error | +**code** | [**ErrorCodePhonebook**](ErrorCodePhonebook.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/ErrorOmnichannel.md b/docs/ErrorOmnichannel.md new file mode 100644 index 0000000..c99d1c7 --- /dev/null +++ b/docs/ErrorOmnichannel.md @@ -0,0 +1,10 @@ +# ErrorOmnichannel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ErrorItemOmnichannel]**](ErrorItemOmnichannel.md) | An array of errors | + +[[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/ErrorPhonebook.md b/docs/ErrorPhonebook.md new file mode 100644 index 0000000..9268f29 --- /dev/null +++ b/docs/ErrorPhonebook.md @@ -0,0 +1,10 @@ +# ErrorPhonebook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**list[ErrorItemPhonebook]**](ErrorItemPhonebook.md) | An array of errors | + +[[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/ErrorTitleOmnichannel.md b/docs/ErrorTitleOmnichannel.md new file mode 100644 index 0000000..4988d32 --- /dev/null +++ b/docs/ErrorTitleOmnichannel.md @@ -0,0 +1,9 @@ +# ErrorTitleOmnichannel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/ErrorTitlePhonebook.md b/docs/ErrorTitlePhonebook.md new file mode 100644 index 0000000..cbd0cee --- /dev/null +++ b/docs/ErrorTitlePhonebook.md @@ -0,0 +1,9 @@ +# ErrorTitlePhonebook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/FetchBlacklistSuccess.md b/docs/FetchBlacklistSuccess.md new file mode 100644 index 0000000..5f49faf --- /dev/null +++ b/docs/FetchBlacklistSuccess.md @@ -0,0 +1,10 @@ +# FetchBlacklistSuccess + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phone_numbers** | **list[str]** | Array of unique phone numbers | [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/GroupEnvelope.md b/docs/GroupEnvelope.md new file mode 100644 index 0000000..84bc29b --- /dev/null +++ b/docs/GroupEnvelope.md @@ -0,0 +1,10 @@ +# GroupEnvelope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**GroupResponseFields**](GroupResponseFields.md) | | [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/GroupListEnvelope.md b/docs/GroupListEnvelope.md new file mode 100644 index 0000000..ce4e0e2 --- /dev/null +++ b/docs/GroupListEnvelope.md @@ -0,0 +1,10 @@ +# GroupListEnvelope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groups** | [**list[GroupResponseFields]**](GroupResponseFields.md) | An array of groups | [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/GroupName.md b/docs/GroupName.md new file mode 100644 index 0000000..de04bf6 --- /dev/null +++ b/docs/GroupName.md @@ -0,0 +1,10 @@ +# GroupName + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the group | + +[[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/GroupResponseFields.md b/docs/GroupResponseFields.md new file mode 100644 index 0000000..5ef7581 --- /dev/null +++ b/docs/GroupResponseFields.md @@ -0,0 +1,13 @@ +# GroupResponseFields + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id string in UUID format | +**name** | **str** | The name of the group | +**created_on** | **str** | When the group was created | [optional] +**contacts_count** | **int** | The count of contacts in the group | + +[[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/GroupsApi.md b/docs/GroupsApi.md new file mode 100644 index 0000000..035ad5b --- /dev/null +++ b/docs/GroupsApi.md @@ -0,0 +1,270 @@ +# messente_api.GroupsApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name +[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group +[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group +[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups +[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name + + +# **create_group** +> GroupEnvelope create_group(group_name) + +Creates a new group with the provided name + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) +group_name = messente_api.GroupName() # GroupName | + +try: + # Creates a new group with the provided name + api_response = api_instance.create_group(group_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupsApi->create_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_name** | [**GroupName**](GroupName.md)| | + +### Return type + +[**GroupEnvelope**](GroupEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + +# **delete_group** +> delete_group(group_id) + +Deletes a group + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) +group_id = 'group_id_example' # str | String in UUID format + +try: + # Deletes a group + api_instance.delete_group(group_id) +except ApiException as e: + print("Exception when calling GroupsApi->delete_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| String in UUID format | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_group** +> GroupEnvelope fetch_group(group_id) + +Lists a group + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) +group_id = 'group_id_example' # str | String in UUID format + +try: + # Lists a group + api_response = api_instance.fetch_group(group_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupsApi->fetch_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| String in UUID format | + +### Return type + +[**GroupEnvelope**](GroupEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **fetch_groups** +> GroupListEnvelope fetch_groups() + +Returns all groups + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) + +try: + # Returns all groups + api_response = api_instance.fetch_groups() + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupsApi->fetch_groups: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**GroupListEnvelope**](GroupListEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **update_group** +> GroupEnvelope update_group(group_id, group_name) + +Updates a group with the provided name + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.GroupsApi(messente_api.ApiClient(configuration)) +group_id = 'group_id_example' # str | String in UUID format +group_name = messente_api.GroupName() # GroupName | + +try: + # Updates a group with the provided name + api_response = api_instance.update_group(group_id, group_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling GroupsApi->update_group: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **group_id** | **str**| String in UUID format | + **group_name** | [**GroupName**](GroupName.md)| | + +### Return type + +[**GroupEnvelope**](GroupEnvelope.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + diff --git a/docs/MessageResult.md b/docs/MessageResult.md new file mode 100644 index 0000000..14549a2 --- /dev/null +++ b/docs/MessageResult.md @@ -0,0 +1,12 @@ +# MessageResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_id** | **str** | Unique identifier for the message | +**channel** | [**Channel**](Channel.md) | | +**sender** | **str** | Sender that was used for the message | + +[[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/NumberToBlacklist.md b/docs/NumberToBlacklist.md new file mode 100644 index 0000000..ac9d1d5 --- /dev/null +++ b/docs/NumberToBlacklist.md @@ -0,0 +1,10 @@ +# NumberToBlacklist + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phone_number** | **str** | Phone number in e.164 format | + +[[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/OmniMessageCreateSuccessResponse.md b/docs/OmniMessageCreateSuccessResponse.md new file mode 100644 index 0000000..ef5e2d4 --- /dev/null +++ b/docs/OmniMessageCreateSuccessResponse.md @@ -0,0 +1,12 @@ +# OmniMessageCreateSuccessResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messages** | [**list[MessageResult]**](MessageResult.md) | List of messages that compose the omnimessage | +**to** | **str** | Phone number in e.164 format | +**omnimessage_id** | **str** | Unique identifier for the omnimessage | + +[[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/Omnimessage.md b/docs/Omnimessage.md new file mode 100644 index 0000000..db93287 --- /dev/null +++ b/docs/Omnimessage.md @@ -0,0 +1,14 @@ +# Omnimessage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**to** | **str** | Phone number in e.164 format | +**messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | An array of messages | +**dlr_url** | **str** | URL where the delivery report will be sent | [optional] +**text_store** | [**TextStore**](TextStore.md) | | [optional] +**time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [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/OmnimessageApi.md b/docs/OmnimessageApi.md new file mode 100644 index 0000000..c3365fa --- /dev/null +++ b/docs/OmnimessageApi.md @@ -0,0 +1,113 @@ +# messente_api.OmnimessageApi + +All URIs are relative to *https://api.messente.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage +[**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage + + +# **cancel_scheduled_message** +> cancel_scheduled_message(omnimessage_id) + +Cancels a scheduled Omnimessage + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration)) +omnimessage_id = 'omnimessage_id_example' # str | UUID of the scheduled omnimessage to be cancelled + +try: + # Cancels a scheduled Omnimessage + api_instance.cancel_scheduled_message(omnimessage_id) +except ApiException as e: + print("Exception when calling OmnimessageApi->cancel_scheduled_message: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **omnimessage_id** | **str**| UUID of the scheduled omnimessage to be cancelled | + +### Return type + +void (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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) + +# **send_omnimessage** +> OmniMessageCreateSuccessResponse send_omnimessage(omnimessage) + +Sends an Omnimessage + +### Example + +* Basic Authentication (basicAuth): +```python +from __future__ import print_function +import time +import messente_api +from messente_api.rest import ApiException +from pprint import pprint +configuration = messente_api.Configuration() +# Configure HTTP basic authorization: basicAuth +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = messente_api.OmnimessageApi(messente_api.ApiClient(configuration)) +omnimessage = messente_api.Omnimessage() # Omnimessage | Omnimessage to be sent + +try: + # Sends an Omnimessage + api_response = api_instance.send_omnimessage(omnimessage) + pprint(api_response) +except ApiException as e: + print("Exception when calling OmnimessageApi->send_omnimessage: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **omnimessage** | [**Omnimessage**](Omnimessage.md)| Omnimessage to be sent | + +### Return type + +[**OmniMessageCreateSuccessResponse**](OmniMessageCreateSuccessResponse.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[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) + diff --git a/docs/SMS.md b/docs/SMS.md new file mode 100644 index 0000000..05d2751 --- /dev/null +++ b/docs/SMS.md @@ -0,0 +1,15 @@ +# SMS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | Text content of the SMS | +**sender** | **str** | Phone number or alphanumeric sender name | [optional] +**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] +**autoconvert** | **str** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] +**udh** | **str** | hex-encoded string containing SMS UDH | [optional] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'sms'] + +[[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/Status.md b/docs/Status.md new file mode 100644 index 0000000..347eb0b --- /dev/null +++ b/docs/Status.md @@ -0,0 +1,9 @@ +# Status + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/TextStore.md b/docs/TextStore.md new file mode 100644 index 0000000..8f97f95 --- /dev/null +++ b/docs/TextStore.md @@ -0,0 +1,9 @@ +# TextStore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/Viber.md b/docs/Viber.md new file mode 100644 index 0000000..75b138f --- /dev/null +++ b/docs/Viber.md @@ -0,0 +1,16 @@ +# Viber + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sender** | **str** | Phone number or alphanumeric sender name | [optional] +**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] +**text** | **str** | Plaintext content for Viber | [optional] +**image_url** | **str** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] +**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] +**button_text** | **str** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'viber'] + +[[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/WhatsApp.md b/docs/WhatsApp.md new file mode 100644 index 0000000..191e095 --- /dev/null +++ b/docs/WhatsApp.md @@ -0,0 +1,16 @@ +# WhatsApp + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sender** | **str** | Phone number or alphanumeric sender name | [optional] +**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] +**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional] +**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional] +**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional] +**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional] +**channel** | **str** | The channel used to deliver the message | [optional] [default to 'whatsapp'] + +[[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/WhatsAppAudio.md b/docs/WhatsAppAudio.md new file mode 100644 index 0000000..5934ca4 --- /dev/null +++ b/docs/WhatsAppAudio.md @@ -0,0 +1,10 @@ +# WhatsAppAudio + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | Base64-encoded audio | + +[[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/WhatsAppDocument.md b/docs/WhatsAppDocument.md new file mode 100644 index 0000000..08b9968 --- /dev/null +++ b/docs/WhatsAppDocument.md @@ -0,0 +1,11 @@ +# WhatsAppDocument + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**caption** | **str** | Description for the document | [optional] +**content** | **str** | Base64-encoded image | + +[[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/WhatsAppImage.md b/docs/WhatsAppImage.md new file mode 100644 index 0000000..8a28102 --- /dev/null +++ b/docs/WhatsAppImage.md @@ -0,0 +1,11 @@ +# WhatsAppImage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**caption** | **str** | Description for the image | [optional] +**content** | **str** | Base64-encoded image | + +[[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/WhatsAppText.md b/docs/WhatsAppText.md new file mode 100644 index 0000000..fc48d73 --- /dev/null +++ b/docs/WhatsAppText.md @@ -0,0 +1,11 @@ +# WhatsAppText + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preview_url** | **bool** | Whether to display link preview if the message contains a hyperlink | [optional] [default to True] +**body** | **str** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting | + +[[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/git_push.sh b/git_push.sh new file mode 100644 index 0000000..8442b80 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/messente_api/__init__.py b/messente_api/__init__.py new file mode 100644 index 0000000..3465e3f --- /dev/null +++ b/messente_api/__init__.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +__version__ = "1.0.2" + +# import apis into sdk package +from messente_api.api.blacklist_api import BlacklistApi +from messente_api.api.contacts_api import ContactsApi +from messente_api.api.delivery_report_api import DeliveryReportApi +from messente_api.api.groups_api import GroupsApi +from messente_api.api.omnimessage_api import OmnimessageApi + +# import ApiClient +from messente_api.api_client import ApiClient +from messente_api.configuration import Configuration +from messente_api.exceptions import OpenApiException +from messente_api.exceptions import ApiTypeError +from messente_api.exceptions import ApiValueError +from messente_api.exceptions import ApiKeyError +from messente_api.exceptions import ApiException +# import models into sdk package +from messente_api.models.channel import Channel +from messente_api.models.contact_envelope import ContactEnvelope +from messente_api.models.contact_fields import ContactFields +from messente_api.models.contact_list_envelope import ContactListEnvelope +from messente_api.models.contact_update_fields import ContactUpdateFields +from messente_api.models.delivery_report_response import DeliveryReportResponse +from messente_api.models.delivery_result import DeliveryResult +from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel +from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine +from messente_api.models.error_code_phonebook import ErrorCodePhonebook +from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel +from messente_api.models.error_item_phonebook import ErrorItemPhonebook +from messente_api.models.error_omnichannel import ErrorOmnichannel +from messente_api.models.error_phonebook import ErrorPhonebook +from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel +from messente_api.models.error_title_phonebook import ErrorTitlePhonebook +from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess +from messente_api.models.group_envelope import GroupEnvelope +from messente_api.models.group_list_envelope import GroupListEnvelope +from messente_api.models.group_name import GroupName +from messente_api.models.group_response_fields import GroupResponseFields +from messente_api.models.message_result import MessageResult +from messente_api.models.number_to_blacklist import NumberToBlacklist +from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse +from messente_api.models.omnimessage import Omnimessage +from messente_api.models.sms import SMS +from messente_api.models.status import Status +from messente_api.models.text_store import TextStore +from messente_api.models.viber import Viber +from messente_api.models.whats_app import WhatsApp +from messente_api.models.whats_app_audio import WhatsAppAudio +from messente_api.models.whats_app_document import WhatsAppDocument +from messente_api.models.whats_app_image import WhatsAppImage +from messente_api.models.whats_app_text import WhatsAppText + diff --git a/messente_api/api/__init__.py b/messente_api/api/__init__.py new file mode 100644 index 0000000..c38198f --- /dev/null +++ b/messente_api/api/__init__.py @@ -0,0 +1,10 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from messente_api.api.blacklist_api import BlacklistApi +from messente_api.api.contacts_api import ContactsApi +from messente_api.api.delivery_report_api import DeliveryReportApi +from messente_api.api.groups_api import GroupsApi +from messente_api.api.omnimessage_api import OmnimessageApi diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py new file mode 100644 index 0000000..f3667b8 --- /dev/null +++ b/messente_api/api/blacklist_api.py @@ -0,0 +1,410 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class BlacklistApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_to_blacklist(self, number_to_blacklist, **kwargs): # noqa: E501 + """Adds a phone number to the blacklist # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_to_blacklist(number_to_blacklist, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NumberToBlacklist number_to_blacklist: Phone number to be blacklisted (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_to_blacklist_with_http_info(number_to_blacklist, **kwargs) # noqa: E501 + else: + (data) = self.add_to_blacklist_with_http_info(number_to_blacklist, **kwargs) # noqa: E501 + return data + + def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noqa: E501 + """Adds a phone number to the blacklist # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_to_blacklist_with_http_info(number_to_blacklist, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NumberToBlacklist number_to_blacklist: Phone number to be blacklisted (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['number_to_blacklist'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method add_to_blacklist" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'number_to_blacklist' is set + if ('number_to_blacklist' not in local_var_params or + local_var_params['number_to_blacklist'] is None): + raise ApiValueError("Missing the required parameter `number_to_blacklist` when calling `add_to_blacklist`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'number_to_blacklist' in local_var_params: + body_params = local_var_params['number_to_blacklist'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/phonebook/blacklist', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_from_blacklist(self, phone, **kwargs): # noqa: E501 + """Deletes a phone number from the blacklist # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_from_blacklist(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_from_blacklist_with_http_info(phone, **kwargs) # noqa: E501 + else: + (data) = self.delete_from_blacklist_with_http_info(phone, **kwargs) # noqa: E501 + return data + + def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501 + """Deletes a phone number from the blacklist # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_from_blacklist_with_http_info(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_from_blacklist" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `delete_from_blacklist`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/blacklist/{phone}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_blacklist(self, **kwargs): # noqa: E501 + """Returns all blacklisted phone numbers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_blacklist(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: FetchBlacklistSuccess + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_blacklist_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.fetch_blacklist_with_http_info(**kwargs) # noqa: E501 + return data + + def fetch_blacklist_with_http_info(self, **kwargs): # noqa: E501 + """Returns all blacklisted phone numbers # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_blacklist_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: FetchBlacklistSuccess + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_blacklist" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/phonebook/blacklist', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FetchBlacklistSuccess', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def is_blacklisted(self, phone, **kwargs): # noqa: E501 + """Checks if a phone number is blacklisted # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.is_blacklisted(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.is_blacklisted_with_http_info(phone, **kwargs) # noqa: E501 + else: + (data) = self.is_blacklisted_with_http_info(phone, **kwargs) # noqa: E501 + return data + + def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501 + """Checks if a phone number is blacklisted # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.is_blacklisted_with_http_info(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method is_blacklisted" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `is_blacklisted`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/blacklist/{phone}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py new file mode 100644 index 0000000..daf6b32 --- /dev/null +++ b/messente_api/api/contacts_api.py @@ -0,0 +1,819 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class ContactsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def add_contact_to_group(self, group_id, phone, **kwargs): # noqa: E501 + """Adds a contact to a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_group(group_id, phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param str phone: A phone number (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.add_contact_to_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 + else: + (data) = self.add_contact_to_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 + return data + + def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 + """Adds a contact to a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_group_with_http_info(group_id, phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param str phone: A phone number (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_id', 'phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method add_contact_to_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_id' is set + if ('group_id' not in local_var_params or + local_var_params['group_id'] is None): + raise ApiValueError("Missing the required parameter `group_id` when calling `add_contact_to_group`") # noqa: E501 + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `add_contact_to_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['groupId'] = local_var_params['group_id'] # noqa: E501 + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups/{groupId}/contacts/{phone}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_contact(self, contact_fields, **kwargs): # noqa: E501 + """Creates a new contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact(contact_fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ContactFields contact_fields: (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_contact_with_http_info(contact_fields, **kwargs) # noqa: E501 + else: + (data) = self.create_contact_with_http_info(contact_fields, **kwargs) # noqa: E501 + return data + + def create_contact_with_http_info(self, contact_fields, **kwargs): # noqa: E501 + """Creates a new contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact_with_http_info(contact_fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param ContactFields contact_fields: (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['contact_fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_contact" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'contact_fields' is set + if ('contact_fields' not in local_var_params or + local_var_params['contact_fields'] is None): + raise ApiValueError("Missing the required parameter `contact_fields` when calling `create_contact`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'contact_fields' in local_var_params: + body_params = local_var_params['contact_fields'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContactEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_contact(self, phone, **kwargs): # noqa: E501 + """Deletes a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_contact_with_http_info(phone, **kwargs) # noqa: E501 + else: + (data) = self.delete_contact_with_http_info(phone, **kwargs) # noqa: E501 + return data + + def delete_contact_with_http_info(self, phone, **kwargs): # noqa: E501 + """Deletes a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact_with_http_info(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_contact" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `delete_contact`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts/{phone}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_contact(self, phone, **kwargs): # noqa: E501 + """Lists a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contact(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_contact_with_http_info(phone, **kwargs) # noqa: E501 + else: + (data) = self.fetch_contact_with_http_info(phone, **kwargs) # noqa: E501 + return data + + def fetch_contact_with_http_info(self, phone, **kwargs): # noqa: E501 + """Lists a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contact_with_http_info(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_contact" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `fetch_contact`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts/{phone}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContactEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_contact_groups(self, phone, **kwargs): # noqa: E501 + """Lists groups of a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contact_groups(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: GroupListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_contact_groups_with_http_info(phone, **kwargs) # noqa: E501 + else: + (data) = self.fetch_contact_groups_with_http_info(phone, **kwargs) # noqa: E501 + return data + + def fetch_contact_groups_with_http_info(self, phone, **kwargs): # noqa: E501 + """Lists groups of a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contact_groups_with_http_info(phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :return: GroupListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_contact_groups" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `fetch_contact_groups`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts/{phone}/groups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupListEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_contacts(self, **kwargs): # noqa: E501 + """Returns all contacts # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contacts(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" + :return: ContactListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_contacts_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.fetch_contacts_with_http_info(**kwargs) # noqa: E501 + return data + + def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 + """Returns all contacts # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_contacts_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param list[str] group_ids: Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" + :return: ContactListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_ids'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_contacts" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'group_ids' in local_var_params: + query_params.append(('groupIds', local_var_params['group_ids'])) # noqa: E501 + collection_formats['groupIds'] = 'multi' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContactListEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def remove_contact_from_group(self, group_id, phone, **kwargs): # noqa: E501 + """Removes a contact from a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_group(group_id, phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.remove_contact_from_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 + else: + (data) = self.remove_contact_from_group_with_http_info(group_id, phone, **kwargs) # noqa: E501 + return data + + def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): # noqa: E501 + """Removes a contact from a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_group_with_http_info(group_id, phone, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param str phone: A phone number (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_id', 'phone'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method remove_contact_from_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_id' is set + if ('group_id' not in local_var_params or + local_var_params['group_id'] is None): + raise ApiValueError("Missing the required parameter `group_id` when calling `remove_contact_from_group`") # noqa: E501 + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `remove_contact_from_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['groupId'] = local_var_params['group_id'] # noqa: E501 + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups/{groupId}/contacts/{phone}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_contact(self, phone, contact_update_fields, **kwargs): # noqa: E501 + """Updates a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact(phone, contact_update_fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :param ContactUpdateFields contact_update_fields: (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_contact_with_http_info(phone, contact_update_fields, **kwargs) # noqa: E501 + else: + (data) = self.update_contact_with_http_info(phone, contact_update_fields, **kwargs) # noqa: E501 + return data + + def update_contact_with_http_info(self, phone, contact_update_fields, **kwargs): # noqa: E501 + """Updates a contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact_with_http_info(phone, contact_update_fields, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str phone: A phone number (required) + :param ContactUpdateFields contact_update_fields: (required) + :return: ContactEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['phone', 'contact_update_fields'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_contact" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'phone' is set + if ('phone' not in local_var_params or + local_var_params['phone'] is None): + raise ApiValueError("Missing the required parameter `phone` when calling `update_contact`") # noqa: E501 + # verify the required parameter 'contact_update_fields' is set + if ('contact_update_fields' not in local_var_params or + local_var_params['contact_update_fields'] is None): + raise ApiValueError("Missing the required parameter `contact_update_fields` when calling `update_contact`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'phone' in local_var_params: + path_params['phone'] = local_var_params['phone'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'contact_update_fields' in local_var_params: + body_params = local_var_params['contact_update_fields'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/contacts/{phone}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ContactEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py new file mode 100644 index 0000000..a731e5c --- /dev/null +++ b/messente_api/api/delivery_report_api.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class DeliveryReportApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def retrieve_delivery_report(self, omnimessage_id, **kwargs): # noqa: E501 + """Retrieves the delivery report for the Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retrieve_delivery_report(omnimessage_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) + :return: DeliveryReportResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.retrieve_delivery_report_with_http_info(omnimessage_id, **kwargs) # noqa: E501 + else: + (data) = self.retrieve_delivery_report_with_http_info(omnimessage_id, **kwargs) # noqa: E501 + return data + + def retrieve_delivery_report_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 + """Retrieves the delivery report for the Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.retrieve_delivery_report_with_http_info(omnimessage_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str omnimessage_id: UUID of the omnimessage to for which the delivery report is to be retrieved (required) + :return: DeliveryReportResponse + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['omnimessage_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method retrieve_delivery_report" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'omnimessage_id' is set + if ('omnimessage_id' not in local_var_params or + local_var_params['omnimessage_id'] is None): + raise ApiValueError("Missing the required parameter `omnimessage_id` when calling `retrieve_delivery_report`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'omnimessage_id' in local_var_params: + path_params['omnimessageId'] = local_var_params['omnimessage_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/omnimessage/{omnimessageId}/status', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DeliveryReportResponse', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py new file mode 100644 index 0000000..8054711 --- /dev/null +++ b/messente_api/api/groups_api.py @@ -0,0 +1,516 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class GroupsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_group(self, group_name, **kwargs): # noqa: E501 + """Creates a new group with the provided name # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_group(group_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GroupName group_name: (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_group_with_http_info(group_name, **kwargs) # noqa: E501 + else: + (data) = self.create_group_with_http_info(group_name, **kwargs) # noqa: E501 + return data + + def create_group_with_http_info(self, group_name, **kwargs): # noqa: E501 + """Creates a new group with the provided name # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_group_with_http_info(group_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param GroupName group_name: (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_name' is set + if ('group_name' not in local_var_params or + local_var_params['group_name'] is None): + raise ApiValueError("Missing the required parameter `group_name` when calling `create_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'group_name' in local_var_params: + body_params = local_var_params['group_name'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_group(self, group_id, **kwargs): # noqa: E501 + """Deletes a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_group(group_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_group_with_http_info(group_id, **kwargs) # noqa: E501 + return data + + def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 + """Deletes a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_group_with_http_info(group_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_id' is set + if ('group_id' not in local_var_params or + local_var_params['group_id'] is None): + raise ApiValueError("Missing the required parameter `group_id` when calling `delete_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['groupId'] = local_var_params['group_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups/{groupId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_group(self, group_id, **kwargs): # noqa: E501 + """Lists a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_group(group_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_group_with_http_info(group_id, **kwargs) # noqa: E501 + else: + (data) = self.fetch_group_with_http_info(group_id, **kwargs) # noqa: E501 + return data + + def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 + """Lists a group # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_group_with_http_info(group_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_id' is set + if ('group_id' not in local_var_params or + local_var_params['group_id'] is None): + raise ApiValueError("Missing the required parameter `group_id` when calling `fetch_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['groupId'] = local_var_params['group_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups/{groupId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def fetch_groups(self, **kwargs): # noqa: E501 + """Returns all groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_groups(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: GroupListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.fetch_groups_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.fetch_groups_with_http_info(**kwargs) # noqa: E501 + return data + + def fetch_groups_with_http_info(self, **kwargs): # noqa: E501 + """Returns all groups # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.fetch_groups_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: GroupListEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method fetch_groups" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupListEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_group(self, group_id, group_name, **kwargs): # noqa: E501 + """Updates a group with the provided name # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_group(group_id, group_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param GroupName group_name: (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_group_with_http_info(group_id, group_name, **kwargs) # noqa: E501 + else: + (data) = self.update_group_with_http_info(group_id, group_name, **kwargs) # noqa: E501 + return data + + def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: E501 + """Updates a group with the provided name # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_group_with_http_info(group_id, group_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str group_id: String in UUID format (required) + :param GroupName group_name: (required) + :return: GroupEnvelope + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['group_id', 'group_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_group" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'group_id' is set + if ('group_id' not in local_var_params or + local_var_params['group_id'] is None): + raise ApiValueError("Missing the required parameter `group_id` when calling `update_group`") # noqa: E501 + # verify the required parameter 'group_name' is set + if ('group_name' not in local_var_params or + local_var_params['group_name'] is None): + raise ApiValueError("Missing the required parameter `group_name` when calling `update_group`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['groupId'] = local_var_params['group_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'group_name' in local_var_params: + body_params = local_var_params['group_name'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/groups/{groupId}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GroupEnvelope', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py new file mode 100644 index 0000000..32ef137 --- /dev/null +++ b/messente_api/api/omnimessage_api.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from messente_api.api_client import ApiClient +from messente_api.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class OmnimessageApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def cancel_scheduled_message(self, omnimessage_id, **kwargs): # noqa: E501 + """Cancels a scheduled Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_message(omnimessage_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.cancel_scheduled_message_with_http_info(omnimessage_id, **kwargs) # noqa: E501 + else: + (data) = self.cancel_scheduled_message_with_http_info(omnimessage_id, **kwargs) # noqa: E501 + return data + + def cancel_scheduled_message_with_http_info(self, omnimessage_id, **kwargs): # noqa: E501 + """Cancels a scheduled Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_message_with_http_info(omnimessage_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str omnimessage_id: UUID of the scheduled omnimessage to be cancelled (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['omnimessage_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method cancel_scheduled_message" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'omnimessage_id' is set + if ('omnimessage_id' not in local_var_params or + local_var_params['omnimessage_id'] is None): + raise ApiValueError("Missing the required parameter `omnimessage_id` when calling `cancel_scheduled_message`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'omnimessage_id' in local_var_params: + path_params['omnimessageId'] = local_var_params['omnimessage_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/omnimessage/{omnimessageId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def send_omnimessage(self, omnimessage, **kwargs): # noqa: E501 + """Sends an Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_omnimessage(omnimessage, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Omnimessage omnimessage: Omnimessage to be sent (required) + :return: OmniMessageCreateSuccessResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.send_omnimessage_with_http_info(omnimessage, **kwargs) # noqa: E501 + else: + (data) = self.send_omnimessage_with_http_info(omnimessage, **kwargs) # noqa: E501 + return data + + def send_omnimessage_with_http_info(self, omnimessage, **kwargs): # noqa: E501 + """Sends an Omnimessage # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_omnimessage_with_http_info(omnimessage, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Omnimessage omnimessage: Omnimessage to be sent (required) + :return: OmniMessageCreateSuccessResponse + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['omnimessage'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method send_omnimessage" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'omnimessage' is set + if ('omnimessage' not in local_var_params or + local_var_params['omnimessage'] is None): + raise ApiValueError("Missing the required parameter `omnimessage` when calling `send_omnimessage`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'omnimessage' in local_var_params: + body_params = local_var_params['omnimessage'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/omnimessage', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OmniMessageCreateSuccessResponse', # 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 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/messente_api/api_client.py b/messente_api/api_client.py new file mode 100644 index 0000000..16a3d7f --- /dev/null +++ b/messente_api/api_client.py @@ -0,0 +1,641 @@ +# coding: utf-8 +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from messente_api.configuration import Configuration +import messente_api.models +from messente_api import rest +from messente_api.exceptions import ApiValueError + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.2/python' + + def __del__(self): + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None, _host=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.openapi_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(messente_api.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None, _host=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout, _host) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def files_parameters(self, files=None): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if not klass.openapi_types and not hasattr(klass, + 'get_real_child_model'): + return data + + kwargs = {} + if klass.openapi_types is not None: + for attr, attr_type in six.iteritems(klass.openapi_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/messente_api/configuration.py b/messente_api/configuration.py new file mode 100644 index 0000000..44ec4fa --- /dev/null +++ b/messente_api/configuration.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls): + if cls._default is None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + """ + + def __init__(self): + """Constructor""" + # Default Base url + self.host = "https://api.messente.com/v1" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("messente_api") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Proxy headers + self.proxy_headers = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + # Adding retries to override urllib3 default value 3 + self.retries = None + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'basicAuth': + { + 'type': 'basic', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_basic_auth_token() + }, + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.1\n"\ + "SDK Package Version: 1.0.2".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "https://api.messente.com/v1", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables={}): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :return: URL based on host settings + """ + + servers = self.get_host_settings() + + # check array index out of bound + if index < 0 or index >= len(servers): + raise ValueError( + "Invalid index {} when selecting the host settings. Must be less than {}" # noqa: E501 + .format(index, len(servers))) + + server = servers[index] + url = server['url'] + + # go through variable and assign a value + for variable_name in server['variables']: + if variable_name in variables: + if variables[variable_name] in server['variables'][ + variable_name]['enum_values']: + url = url.replace("{" + variable_name + "}", + variables[variable_name]) + else: + raise ValueError( + "The variable `{}` in the host URL has invalid value {}. Must be {}." # noqa: E501 + .format( + variable_name, variables[variable_name], + server['variables'][variable_name]['enum_values'])) + else: + # use default value + url = url.replace( + "{" + variable_name + "}", + server['variables'][variable_name]['default_value']) + + return url diff --git a/messente_api/exceptions.py b/messente_api/exceptions.py new file mode 100644 index 0000000..035a1ca --- /dev/null +++ b/messente_api/exceptions.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/messente_api/models/__init__.py b/messente_api/models/__init__.py new file mode 100644 index 0000000..9051bca --- /dev/null +++ b/messente_api/models/__init__.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +# flake8: noqa +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +# import models into model package +from messente_api.models.channel import Channel +from messente_api.models.contact_envelope import ContactEnvelope +from messente_api.models.contact_fields import ContactFields +from messente_api.models.contact_list_envelope import ContactListEnvelope +from messente_api.models.contact_update_fields import ContactUpdateFields +from messente_api.models.delivery_report_response import DeliveryReportResponse +from messente_api.models.delivery_result import DeliveryResult +from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel +from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine +from messente_api.models.error_code_phonebook import ErrorCodePhonebook +from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel +from messente_api.models.error_item_phonebook import ErrorItemPhonebook +from messente_api.models.error_omnichannel import ErrorOmnichannel +from messente_api.models.error_phonebook import ErrorPhonebook +from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel +from messente_api.models.error_title_phonebook import ErrorTitlePhonebook +from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess +from messente_api.models.group_envelope import GroupEnvelope +from messente_api.models.group_list_envelope import GroupListEnvelope +from messente_api.models.group_name import GroupName +from messente_api.models.group_response_fields import GroupResponseFields +from messente_api.models.message_result import MessageResult +from messente_api.models.number_to_blacklist import NumberToBlacklist +from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse +from messente_api.models.omnimessage import Omnimessage +from messente_api.models.sms import SMS +from messente_api.models.status import Status +from messente_api.models.text_store import TextStore +from messente_api.models.viber import Viber +from messente_api.models.whats_app import WhatsApp +from messente_api.models.whats_app_audio import WhatsAppAudio +from messente_api.models.whats_app_document import WhatsAppDocument +from messente_api.models.whats_app_image import WhatsAppImage +from messente_api.models.whats_app_text import WhatsAppText diff --git a/messente_api/models/channel.py b/messente_api/models/channel.py new file mode 100644 index 0000000..d7b190e --- /dev/null +++ b/messente_api/models/channel.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Channel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + SMS = "sms" + VIBER = "viber" + WHATSAPP = "whatsapp" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """Channel - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, Channel): + 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/messente_api/models/contact_envelope.py b/messente_api/models/contact_envelope.py new file mode 100644 index 0000000..35227d2 --- /dev/null +++ b/messente_api/models/contact_envelope.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContactEnvelope(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'contact': 'ContactFields' + } + + attribute_map = { + 'contact': 'contact' + } + + def __init__(self, contact=None): # noqa: E501 + """ContactEnvelope - a model defined in OpenAPI""" # noqa: E501 + + self._contact = None + self.discriminator = None + + if contact is not None: + self.contact = contact + + @property + def contact(self): + """Gets the contact of this ContactEnvelope. # noqa: E501 + + + :return: The contact of this ContactEnvelope. # noqa: E501 + :rtype: ContactFields + """ + return self._contact + + @contact.setter + def contact(self, contact): + """Sets the contact of this ContactEnvelope. + + + :param contact: The contact of this ContactEnvelope. # noqa: E501 + :type: ContactFields + """ + + self._contact = contact + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ContactEnvelope): + 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/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py new file mode 100644 index 0000000..ff78e4e --- /dev/null +++ b/messente_api/models/contact_fields.py @@ -0,0 +1,359 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContactFields(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'phone_number': 'str', + 'email': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'company': 'str', + 'title': 'str', + 'custom': 'str', + 'custom2': 'str', + 'custom3': 'str', + 'custom4': 'str' + } + + attribute_map = { + 'phone_number': 'phoneNumber', + 'email': 'email', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'company': 'company', + 'title': 'title', + 'custom': 'custom', + 'custom2': 'custom2', + 'custom3': 'custom3', + 'custom4': 'custom4' + } + + 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): # noqa: E501 + """ContactFields - a model defined in OpenAPI""" # noqa: E501 + + self._phone_number = None + self._email = None + self._first_name = None + self._last_name = None + self._company = None + self._title = None + self._custom = None + self._custom2 = None + self._custom3 = None + self._custom4 = None + self.discriminator = None + + self.phone_number = phone_number + self.email = email + self.first_name = first_name + self.last_name = last_name + self.company = company + self.title = title + self.custom = custom + self.custom2 = custom2 + self.custom3 = custom3 + self.custom4 = custom4 + + @property + def phone_number(self): + """Gets the phone_number of this ContactFields. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The phone_number of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """Sets the phone_number of this ContactFields. + + Phone number in e.164 format # noqa: E501 + + :param phone_number: The phone_number of this ContactFields. # noqa: E501 + :type: str + """ + if phone_number is None: + raise ValueError("Invalid value for `phone_number`, must not be `None`") # noqa: E501 + + self._phone_number = phone_number + + @property + def email(self): + """Gets the email of this ContactFields. # noqa: E501 + + The email of the contact # noqa: E501 + + :return: The email of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this ContactFields. + + The email of the contact # noqa: E501 + + :param email: The email of this ContactFields. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def first_name(self): + """Gets the first_name of this ContactFields. # noqa: E501 + + The first name of the contact # noqa: E501 + + :return: The first_name of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this ContactFields. + + The first name of the contact # noqa: E501 + + :param first_name: The first_name of this ContactFields. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this ContactFields. # noqa: E501 + + The last name of the contact # noqa: E501 + + :return: The last_name of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this ContactFields. + + The last name of the contact # noqa: E501 + + :param last_name: The last_name of this ContactFields. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def company(self): + """Gets the company of this ContactFields. # noqa: E501 + + The company of the contact # noqa: E501 + + :return: The company of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """Sets the company of this ContactFields. + + The company of the contact # noqa: E501 + + :param company: The company of this ContactFields. # noqa: E501 + :type: str + """ + + self._company = company + + @property + def title(self): + """Gets the title of this ContactFields. # noqa: E501 + + The title of the contact # noqa: E501 + + :return: The title of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ContactFields. + + The title of the contact # noqa: E501 + + :param title: The title of this ContactFields. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def custom(self): + """Gets the custom of this ContactFields. # noqa: E501 + + The first custom field # noqa: E501 + + :return: The custom of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this ContactFields. + + The first custom field # noqa: E501 + + :param custom: The custom of this ContactFields. # noqa: E501 + :type: str + """ + + self._custom = custom + + @property + def custom2(self): + """Gets the custom2 of this ContactFields. # noqa: E501 + + The second custom field # noqa: E501 + + :return: The custom2 of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._custom2 + + @custom2.setter + def custom2(self, custom2): + """Sets the custom2 of this ContactFields. + + The second custom field # noqa: E501 + + :param custom2: The custom2 of this ContactFields. # noqa: E501 + :type: str + """ + + self._custom2 = custom2 + + @property + def custom3(self): + """Gets the custom3 of this ContactFields. # noqa: E501 + + The third custom field # noqa: E501 + + :return: The custom3 of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._custom3 + + @custom3.setter + def custom3(self, custom3): + """Sets the custom3 of this ContactFields. + + The third custom field # noqa: E501 + + :param custom3: The custom3 of this ContactFields. # noqa: E501 + :type: str + """ + + self._custom3 = custom3 + + @property + def custom4(self): + """Gets the custom4 of this ContactFields. # noqa: E501 + + The fourth custom field # noqa: E501 + + :return: The custom4 of this ContactFields. # noqa: E501 + :rtype: str + """ + return self._custom4 + + @custom4.setter + def custom4(self, custom4): + """Sets the custom4 of this ContactFields. + + The fourth custom field # noqa: E501 + + :param custom4: The custom4 of this ContactFields. # noqa: E501 + :type: str + """ + + self._custom4 = custom4 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ContactFields): + 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/messente_api/models/contact_list_envelope.py b/messente_api/models/contact_list_envelope.py new file mode 100644 index 0000000..24e021a --- /dev/null +++ b/messente_api/models/contact_list_envelope.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContactListEnvelope(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'contacts': 'list[ContactFields]' + } + + attribute_map = { + 'contacts': 'contacts' + } + + def __init__(self, contacts=None): # noqa: E501 + """ContactListEnvelope - a model defined in OpenAPI""" # noqa: E501 + + self._contacts = None + self.discriminator = None + + if contacts is not None: + self.contacts = contacts + + @property + def contacts(self): + """Gets the contacts of this ContactListEnvelope. # noqa: E501 + + An array of contacts # noqa: E501 + + :return: The contacts of this ContactListEnvelope. # noqa: E501 + :rtype: list[ContactFields] + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this ContactListEnvelope. + + An array of contacts # noqa: E501 + + :param contacts: The contacts of this ContactListEnvelope. # noqa: E501 + :type: list[ContactFields] + """ + + self._contacts = contacts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ContactListEnvelope): + 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/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py new file mode 100644 index 0000000..166b4bb --- /dev/null +++ b/messente_api/models/contact_update_fields.py @@ -0,0 +1,330 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContactUpdateFields(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'email': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'company': 'str', + 'title': 'str', + 'custom': 'str', + 'custom2': 'str', + 'custom3': 'str', + 'custom4': 'str' + } + + attribute_map = { + 'email': 'email', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'company': 'company', + 'title': 'title', + 'custom': 'custom', + 'custom2': 'custom2', + 'custom3': 'custom3', + 'custom4': 'custom4' + } + + def __init__(self, email=None, first_name=None, last_name=None, company=None, title=None, custom=None, custom2=None, custom3=None, custom4=None): # noqa: E501 + """ContactUpdateFields - a model defined in OpenAPI""" # noqa: E501 + + self._email = None + self._first_name = None + self._last_name = None + self._company = None + self._title = None + self._custom = None + self._custom2 = None + self._custom3 = None + self._custom4 = None + self.discriminator = None + + self.email = email + self.first_name = first_name + self.last_name = last_name + self.company = company + self.title = title + self.custom = custom + self.custom2 = custom2 + self.custom3 = custom3 + self.custom4 = custom4 + + @property + def email(self): + """Gets the email of this ContactUpdateFields. # noqa: E501 + + The email of the contact # noqa: E501 + + :return: The email of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this ContactUpdateFields. + + The email of the contact # noqa: E501 + + :param email: The email of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def first_name(self): + """Gets the first_name of this ContactUpdateFields. # noqa: E501 + + The first name of the contact # noqa: E501 + + :return: The first_name of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this ContactUpdateFields. + + The first name of the contact # noqa: E501 + + :param first_name: The first_name of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this ContactUpdateFields. # noqa: E501 + + The last name of the contact # noqa: E501 + + :return: The last_name of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this ContactUpdateFields. + + The last name of the contact # noqa: E501 + + :param last_name: The last_name of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def company(self): + """Gets the company of this ContactUpdateFields. # noqa: E501 + + The company of the contact # noqa: E501 + + :return: The company of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """Sets the company of this ContactUpdateFields. + + The company of the contact # noqa: E501 + + :param company: The company of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._company = company + + @property + def title(self): + """Gets the title of this ContactUpdateFields. # noqa: E501 + + The title of the contact # noqa: E501 + + :return: The title of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ContactUpdateFields. + + The title of the contact # noqa: E501 + + :param title: The title of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def custom(self): + """Gets the custom of this ContactUpdateFields. # noqa: E501 + + The first custom field # noqa: E501 + + :return: The custom of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this ContactUpdateFields. + + The first custom field # noqa: E501 + + :param custom: The custom of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._custom = custom + + @property + def custom2(self): + """Gets the custom2 of this ContactUpdateFields. # noqa: E501 + + The second custom field # noqa: E501 + + :return: The custom2 of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._custom2 + + @custom2.setter + def custom2(self, custom2): + """Sets the custom2 of this ContactUpdateFields. + + The second custom field # noqa: E501 + + :param custom2: The custom2 of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._custom2 = custom2 + + @property + def custom3(self): + """Gets the custom3 of this ContactUpdateFields. # noqa: E501 + + The third custom field # noqa: E501 + + :return: The custom3 of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._custom3 + + @custom3.setter + def custom3(self, custom3): + """Sets the custom3 of this ContactUpdateFields. + + The third custom field # noqa: E501 + + :param custom3: The custom3 of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._custom3 = custom3 + + @property + def custom4(self): + """Gets the custom4 of this ContactUpdateFields. # noqa: E501 + + The fourth custom field # noqa: E501 + + :return: The custom4 of this ContactUpdateFields. # noqa: E501 + :rtype: str + """ + return self._custom4 + + @custom4.setter + def custom4(self, custom4): + """Sets the custom4 of this ContactUpdateFields. + + The fourth custom field # noqa: E501 + + :param custom4: The custom4 of this ContactUpdateFields. # noqa: E501 + :type: str + """ + + self._custom4 = custom4 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ContactUpdateFields): + 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/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py new file mode 100644 index 0000000..da1e0f1 --- /dev/null +++ b/messente_api/models/delivery_report_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DeliveryReportResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'statuses': 'list[DeliveryResult]', + 'to': 'str', + 'omnimessage_id': 'str' + } + + attribute_map = { + 'statuses': 'statuses', + 'to': 'to', + 'omnimessage_id': 'omnimessage_id' + } + + def __init__(self, statuses=None, to=None, omnimessage_id=None): # noqa: E501 + """DeliveryReportResponse - a model defined in OpenAPI""" # noqa: E501 + + self._statuses = None + self._to = None + self._omnimessage_id = None + self.discriminator = None + + self.statuses = statuses + self.to = to + self.omnimessage_id = omnimessage_id + + @property + def statuses(self): + """Gets the statuses of this DeliveryReportResponse. # noqa: E501 + + Contains the delivery reports for each channel, ordered by send order # noqa: E501 + + :return: The statuses of this DeliveryReportResponse. # noqa: E501 + :rtype: list[DeliveryResult] + """ + return self._statuses + + @statuses.setter + def statuses(self, statuses): + """Sets the statuses of this DeliveryReportResponse. + + Contains the delivery reports for each channel, ordered by send order # noqa: E501 + + :param statuses: The statuses of this DeliveryReportResponse. # noqa: E501 + :type: list[DeliveryResult] + """ + if statuses is None: + raise ValueError("Invalid value for `statuses`, must not be `None`") # noqa: E501 + + self._statuses = statuses + + @property + def to(self): + """Gets the to of this DeliveryReportResponse. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The to of this DeliveryReportResponse. # noqa: E501 + :rtype: str + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this DeliveryReportResponse. + + Phone number in e.164 format # noqa: E501 + + :param to: The to of this DeliveryReportResponse. # noqa: E501 + :type: str + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 + + self._to = to + + @property + def omnimessage_id(self): + """Gets the omnimessage_id of this DeliveryReportResponse. # noqa: E501 + + Unique identifier for the omnimessage # noqa: E501 + + :return: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 + :rtype: str + """ + return self._omnimessage_id + + @omnimessage_id.setter + def omnimessage_id(self, omnimessage_id): + """Sets the omnimessage_id of this DeliveryReportResponse. + + Unique identifier for the omnimessage # noqa: E501 + + :param omnimessage_id: The omnimessage_id of this DeliveryReportResponse. # noqa: E501 + :type: str + """ + if omnimessage_id is None: + raise ValueError("Invalid value for `omnimessage_id`, must not be `None`") # noqa: E501 + + self._omnimessage_id = omnimessage_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, DeliveryReportResponse): + 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/messente_api/models/delivery_result.py b/messente_api/models/delivery_result.py new file mode 100644 index 0000000..e4b38d3 --- /dev/null +++ b/messente_api/models/delivery_result.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DeliveryResult(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'status': 'Status', + 'channel': 'Channel', + 'message_id': 'str', + 'error': 'str', + 'err': 'ErrorCodeOmnichannelMachine', + 'timestamp': 'datetime' + } + + attribute_map = { + 'status': 'status', + 'channel': 'channel', + 'message_id': 'message_id', + 'error': 'error', + 'err': 'err', + 'timestamp': 'timestamp' + } + + def __init__(self, status=None, channel=None, message_id=None, error=None, err=None, timestamp=None): # noqa: E501 + """DeliveryResult - a model defined in OpenAPI""" # noqa: E501 + + self._status = None + self._channel = None + self._message_id = None + self._error = None + self._err = None + self._timestamp = None + self.discriminator = None + + if status is not None: + self.status = status + if channel is not None: + self.channel = channel + if message_id is not None: + self.message_id = message_id + if error is not None: + self.error = error + if err is not None: + self.err = err + if timestamp is not None: + self.timestamp = timestamp + + @property + def status(self): + """Gets the status of this DeliveryResult. # noqa: E501 + + + :return: The status of this DeliveryResult. # noqa: E501 + :rtype: Status + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeliveryResult. + + + :param status: The status of this DeliveryResult. # noqa: E501 + :type: Status + """ + + self._status = status + + @property + def channel(self): + """Gets the channel of this DeliveryResult. # noqa: E501 + + + :return: The channel of this DeliveryResult. # noqa: E501 + :rtype: Channel + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this DeliveryResult. + + + :param channel: The channel of this DeliveryResult. # noqa: E501 + :type: Channel + """ + + self._channel = channel + + @property + def message_id(self): + """Gets the message_id of this DeliveryResult. # noqa: E501 + + Unique identifier for the message # noqa: E501 + + :return: The message_id of this DeliveryResult. # noqa: E501 + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """Sets the message_id of this DeliveryResult. + + Unique identifier for the message # noqa: E501 + + :param message_id: The message_id of this DeliveryResult. # noqa: E501 + :type: str + """ + + self._message_id = message_id + + @property + def error(self): + """Gets the error of this DeliveryResult. # noqa: E501 + + Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 + + :return: The error of this DeliveryResult. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this DeliveryResult. + + Human-readable description of what went wrong, *null* in case of success or if the message has not been processed yet # noqa: E501 + + :param error: The error of this DeliveryResult. # noqa: E501 + :type: str + """ + + self._error = error + + @property + def err(self): + """Gets the err of this DeliveryResult. # noqa: E501 + + + :return: The err of this DeliveryResult. # noqa: E501 + :rtype: ErrorCodeOmnichannelMachine + """ + return self._err + + @err.setter + def err(self, err): + """Sets the err of this DeliveryResult. + + + :param err: The err of this DeliveryResult. # noqa: E501 + :type: ErrorCodeOmnichannelMachine + """ + + self._err = err + + @property + def timestamp(self): + """Gets the timestamp of this DeliveryResult. # noqa: E501 + + When this status was received by Omnichannel API # noqa: E501 + + :return: The timestamp of this DeliveryResult. # noqa: E501 + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this DeliveryResult. + + When this status was received by Omnichannel API # noqa: E501 + + :param timestamp: The timestamp of this DeliveryResult. # noqa: E501 + :type: datetime + """ + + self._timestamp = timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, DeliveryResult): + 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/messente_api/models/error_code_omnichannel.py b/messente_api/models/error_code_omnichannel.py new file mode 100644 index 0000000..aa0e64b --- /dev/null +++ b/messente_api/models/error_code_omnichannel.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorCodeOmnichannel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _101 = "101" + _102 = "102" + _103 = "103" + _104 = "104" + _105 = "105" + _106 = "106" + _107 = "107" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorCodeOmnichannel - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorCodeOmnichannel): + 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/messente_api/models/error_code_omnichannel_machine.py b/messente_api/models/error_code_omnichannel_machine.py new file mode 100644 index 0000000..2c154ab --- /dev/null +++ b/messente_api/models/error_code_omnichannel_machine.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorCodeOmnichannelMachine(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _0 = "0" + _1 = "1" + _2 = "2" + _3 = "3" + _4 = "4" + _5 = "5" + _6 = "6" + _7 = "7" + _8 = "8" + _9 = "9" + _10 = "10" + _999 = "999" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorCodeOmnichannelMachine - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorCodeOmnichannelMachine): + 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/messente_api/models/error_code_phonebook.py b/messente_api/models/error_code_phonebook.py new file mode 100644 index 0000000..a29c95b --- /dev/null +++ b/messente_api/models/error_code_phonebook.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorCodePhonebook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + _201 = "201" + _202 = "202" + _203 = "203" + _204 = "204" + _244 = "244" + _205 = "205" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorCodePhonebook - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorCodePhonebook): + 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/messente_api/models/error_item_omnichannel.py b/messente_api/models/error_item_omnichannel.py new file mode 100644 index 0000000..8360dc7 --- /dev/null +++ b/messente_api/models/error_item_omnichannel.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorItemOmnichannel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'title': 'ErrorTitleOmnichannel', + 'detail': 'str', + 'code': 'ErrorCodeOmnichannel', + 'source': 'str' + } + + attribute_map = { + 'title': 'title', + 'detail': 'detail', + 'code': 'code', + 'source': 'source' + } + + def __init__(self, title=None, detail=None, code=None, source=None): # noqa: E501 + """ErrorItemOmnichannel - a model defined in OpenAPI""" # noqa: E501 + + self._title = None + self._detail = None + self._code = None + self._source = None + self.discriminator = None + + self.title = title + self.detail = detail + self.code = code + self.source = source + + @property + def title(self): + """Gets the title of this ErrorItemOmnichannel. # noqa: E501 + + + :return: The title of this ErrorItemOmnichannel. # noqa: E501 + :rtype: ErrorTitleOmnichannel + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ErrorItemOmnichannel. + + + :param title: The title of this ErrorItemOmnichannel. # noqa: E501 + :type: ErrorTitleOmnichannel + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 + + self._title = title + + @property + def detail(self): + """Gets the detail of this ErrorItemOmnichannel. # noqa: E501 + + Free form more detailed description of the error # noqa: E501 + + :return: The detail of this ErrorItemOmnichannel. # noqa: E501 + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ErrorItemOmnichannel. + + Free form more detailed description of the error # noqa: E501 + + :param detail: The detail of this ErrorItemOmnichannel. # noqa: E501 + :type: str + """ + if detail is None: + raise ValueError("Invalid value for `detail`, must not be `None`") # noqa: E501 + + self._detail = detail + + @property + def code(self): + """Gets the code of this ErrorItemOmnichannel. # noqa: E501 + + + :return: The code of this ErrorItemOmnichannel. # noqa: E501 + :rtype: ErrorCodeOmnichannel + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ErrorItemOmnichannel. + + + :param code: The code of this ErrorItemOmnichannel. # noqa: E501 + :type: ErrorCodeOmnichannel + """ + if code is None: + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 + + self._code = code + + @property + def source(self): + """Gets the source of this ErrorItemOmnichannel. # noqa: E501 + + Describes which field is causing the issue in the payload, null for non 400 status code responses # noqa: E501 + + :return: The source of this ErrorItemOmnichannel. # noqa: E501 + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this ErrorItemOmnichannel. + + Describes which field is causing the issue in the payload, null for non 400 status code responses # noqa: E501 + + :param source: The source of this ErrorItemOmnichannel. # noqa: E501 + :type: str + """ + if source is None: + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 + + self._source = source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorItemOmnichannel): + 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/messente_api/models/error_item_phonebook.py b/messente_api/models/error_item_phonebook.py new file mode 100644 index 0000000..fdeb181 --- /dev/null +++ b/messente_api/models/error_item_phonebook.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorItemPhonebook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'title': 'ErrorTitlePhonebook', + 'detail': 'str', + 'code': 'ErrorCodePhonebook' + } + + attribute_map = { + 'title': 'title', + 'detail': 'detail', + 'code': 'code' + } + + def __init__(self, title=None, detail=None, code=None): # noqa: E501 + """ErrorItemPhonebook - a model defined in OpenAPI""" # noqa: E501 + + self._title = None + self._detail = None + self._code = None + self.discriminator = None + + self.title = title + self.detail = detail + self.code = code + + @property + def title(self): + """Gets the title of this ErrorItemPhonebook. # noqa: E501 + + + :return: The title of this ErrorItemPhonebook. # noqa: E501 + :rtype: ErrorTitlePhonebook + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ErrorItemPhonebook. + + + :param title: The title of this ErrorItemPhonebook. # noqa: E501 + :type: ErrorTitlePhonebook + """ + if title is None: + raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 + + self._title = title + + @property + def detail(self): + """Gets the detail of this ErrorItemPhonebook. # noqa: E501 + + Free form more detailed description of the error # noqa: E501 + + :return: The detail of this ErrorItemPhonebook. # noqa: E501 + :rtype: str + """ + return self._detail + + @detail.setter + def detail(self, detail): + """Sets the detail of this ErrorItemPhonebook. + + Free form more detailed description of the error # noqa: E501 + + :param detail: The detail of this ErrorItemPhonebook. # noqa: E501 + :type: str + """ + if detail is None: + raise ValueError("Invalid value for `detail`, must not be `None`") # noqa: E501 + + self._detail = detail + + @property + def code(self): + """Gets the code of this ErrorItemPhonebook. # noqa: E501 + + + :return: The code of this ErrorItemPhonebook. # noqa: E501 + :rtype: ErrorCodePhonebook + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ErrorItemPhonebook. + + + :param code: The code of this ErrorItemPhonebook. # noqa: E501 + :type: ErrorCodePhonebook + """ + if code is None: + raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 + + self._code = code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorItemPhonebook): + 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/messente_api/models/error_omnichannel.py b/messente_api/models/error_omnichannel.py new file mode 100644 index 0000000..899311d --- /dev/null +++ b/messente_api/models/error_omnichannel.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorOmnichannel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'errors': 'list[ErrorItemOmnichannel]' + } + + attribute_map = { + 'errors': 'errors' + } + + def __init__(self, errors=None): # noqa: E501 + """ErrorOmnichannel - a model defined in OpenAPI""" # noqa: E501 + + self._errors = None + self.discriminator = None + + self.errors = errors + + @property + def errors(self): + """Gets the errors of this ErrorOmnichannel. # noqa: E501 + + An array of errors # noqa: E501 + + :return: The errors of this ErrorOmnichannel. # noqa: E501 + :rtype: list[ErrorItemOmnichannel] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this ErrorOmnichannel. + + An array of errors # noqa: E501 + + :param errors: The errors of this ErrorOmnichannel. # noqa: E501 + :type: list[ErrorItemOmnichannel] + """ + if errors is None: + raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 + + self._errors = errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorOmnichannel): + 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/messente_api/models/error_phonebook.py b/messente_api/models/error_phonebook.py new file mode 100644 index 0000000..d6503b4 --- /dev/null +++ b/messente_api/models/error_phonebook.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorPhonebook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'errors': 'list[ErrorItemPhonebook]' + } + + attribute_map = { + 'errors': 'errors' + } + + def __init__(self, errors=None): # noqa: E501 + """ErrorPhonebook - a model defined in OpenAPI""" # noqa: E501 + + self._errors = None + self.discriminator = None + + self.errors = errors + + @property + def errors(self): + """Gets the errors of this ErrorPhonebook. # noqa: E501 + + An array of errors # noqa: E501 + + :return: The errors of this ErrorPhonebook. # noqa: E501 + :rtype: list[ErrorItemPhonebook] + """ + return self._errors + + @errors.setter + def errors(self, errors): + """Sets the errors of this ErrorPhonebook. + + An array of errors # noqa: E501 + + :param errors: The errors of this ErrorPhonebook. # noqa: E501 + :type: list[ErrorItemPhonebook] + """ + if errors is None: + raise ValueError("Invalid value for `errors`, must not be `None`") # noqa: E501 + + self._errors = errors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorPhonebook): + 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/messente_api/models/error_title_omnichannel.py b/messente_api/models/error_title_omnichannel.py new file mode 100644 index 0000000..469be70 --- /dev/null +++ b/messente_api/models/error_title_omnichannel.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorTitleOmnichannel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NOT_FOUND = "Not found" + FORBIDDEN = "Forbidden" + UNAUTHORIZED = "Unauthorized" + INVALID_DATA = "Invalid data" + INTERNAL_SERVER_ERROR = "Internal Server Error" + MISSING_DATA = "Missing data" + METHOD_NOT_ALLOWED = "Method not allowed" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorTitleOmnichannel - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorTitleOmnichannel): + 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/messente_api/models/error_title_phonebook.py b/messente_api/models/error_title_phonebook.py new file mode 100644 index 0000000..ff2f2c6 --- /dev/null +++ b/messente_api/models/error_title_phonebook.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ErrorTitlePhonebook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INVALID_DATA = "Invalid data" + UNAUTHORIZED = "Unauthorized" + MISSING_RESOURCE = "Missing resource" + CONFLICT = "Conflict" + CLIENT_ERROR = "Client error" + GENERAL_ERROR = "General error" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ErrorTitlePhonebook - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, ErrorTitlePhonebook): + 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/messente_api/models/fetch_blacklist_success.py b/messente_api/models/fetch_blacklist_success.py new file mode 100644 index 0000000..540b866 --- /dev/null +++ b/messente_api/models/fetch_blacklist_success.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FetchBlacklistSuccess(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'phone_numbers': 'list[str]' + } + + attribute_map = { + 'phone_numbers': 'phoneNumbers' + } + + def __init__(self, phone_numbers=None): # noqa: E501 + """FetchBlacklistSuccess - a model defined in OpenAPI""" # noqa: E501 + + self._phone_numbers = None + self.discriminator = None + + if phone_numbers is not None: + self.phone_numbers = phone_numbers + + @property + def phone_numbers(self): + """Gets the phone_numbers of this FetchBlacklistSuccess. # noqa: E501 + + Array of unique phone numbers # noqa: E501 + + :return: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 + :rtype: list[str] + """ + return self._phone_numbers + + @phone_numbers.setter + def phone_numbers(self, phone_numbers): + """Sets the phone_numbers of this FetchBlacklistSuccess. + + Array of unique phone numbers # noqa: E501 + + :param phone_numbers: The phone_numbers of this FetchBlacklistSuccess. # noqa: E501 + :type: list[str] + """ + + self._phone_numbers = phone_numbers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, FetchBlacklistSuccess): + 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/messente_api/models/group_envelope.py b/messente_api/models/group_envelope.py new file mode 100644 index 0000000..31404d8 --- /dev/null +++ b/messente_api/models/group_envelope.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GroupEnvelope(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'group': 'GroupResponseFields' + } + + attribute_map = { + 'group': 'group' + } + + def __init__(self, group=None): # noqa: E501 + """GroupEnvelope - a model defined in OpenAPI""" # noqa: E501 + + self._group = None + self.discriminator = None + + if group is not None: + self.group = group + + @property + def group(self): + """Gets the group of this GroupEnvelope. # noqa: E501 + + + :return: The group of this GroupEnvelope. # noqa: E501 + :rtype: GroupResponseFields + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this GroupEnvelope. + + + :param group: The group of this GroupEnvelope. # noqa: E501 + :type: GroupResponseFields + """ + + self._group = group + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, GroupEnvelope): + 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/messente_api/models/group_list_envelope.py b/messente_api/models/group_list_envelope.py new file mode 100644 index 0000000..b727f91 --- /dev/null +++ b/messente_api/models/group_list_envelope.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GroupListEnvelope(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'groups': 'list[GroupResponseFields]' + } + + attribute_map = { + 'groups': 'groups' + } + + def __init__(self, groups=None): # noqa: E501 + """GroupListEnvelope - a model defined in OpenAPI""" # noqa: E501 + + self._groups = None + self.discriminator = None + + if groups is not None: + self.groups = groups + + @property + def groups(self): + """Gets the groups of this GroupListEnvelope. # noqa: E501 + + An array of groups # noqa: E501 + + :return: The groups of this GroupListEnvelope. # noqa: E501 + :rtype: list[GroupResponseFields] + """ + return self._groups + + @groups.setter + def groups(self, groups): + """Sets the groups of this GroupListEnvelope. + + An array of groups # noqa: E501 + + :param groups: The groups of this GroupListEnvelope. # noqa: E501 + :type: list[GroupResponseFields] + """ + + self._groups = groups + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, GroupListEnvelope): + 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/messente_api/models/group_name.py b/messente_api/models/group_name.py new file mode 100644 index 0000000..533e32b --- /dev/null +++ b/messente_api/models/group_name.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GroupName(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """GroupName - a model defined in OpenAPI""" # noqa: E501 + + self._name = None + self.discriminator = None + + self.name = name + + @property + def name(self): + """Gets the name of this GroupName. # noqa: E501 + + The name of the group # noqa: E501 + + :return: The name of this GroupName. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GroupName. + + The name of the group # noqa: E501 + + :param name: The name of this GroupName. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if name is not None and len(name) < 1: + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, GroupName): + 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/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py new file mode 100644 index 0000000..0a8eaca --- /dev/null +++ b/messente_api/models/group_response_fields.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GroupResponseFields(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'id': 'str', + 'name': 'str', + 'created_on': 'str', + 'contacts_count': 'int' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'created_on': 'createdOn', + 'contacts_count': 'contactsCount' + } + + def __init__(self, id=None, name=None, created_on=None, contacts_count=None): # noqa: E501 + """GroupResponseFields - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._name = None + self._created_on = None + self._contacts_count = None + self.discriminator = None + + self.id = id + self.name = name + self.created_on = created_on + self.contacts_count = contacts_count + + @property + def id(self): + """Gets the id of this GroupResponseFields. # noqa: E501 + + Id string in UUID format # noqa: E501 + + :return: The id of this GroupResponseFields. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GroupResponseFields. + + Id string in UUID format # noqa: E501 + + :param id: The id of this GroupResponseFields. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GroupResponseFields. # noqa: E501 + + The name of the group # noqa: E501 + + :return: The name of this GroupResponseFields. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GroupResponseFields. + + The name of the group # noqa: E501 + + :param name: The name of this GroupResponseFields. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def created_on(self): + """Gets the created_on of this GroupResponseFields. # noqa: E501 + + When the group was created # noqa: E501 + + :return: The created_on of this GroupResponseFields. # noqa: E501 + :rtype: str + """ + return self._created_on + + @created_on.setter + def created_on(self, created_on): + """Sets the created_on of this GroupResponseFields. + + When the group was created # noqa: E501 + + :param created_on: The created_on of this GroupResponseFields. # noqa: E501 + :type: str + """ + + self._created_on = created_on + + @property + def contacts_count(self): + """Gets the contacts_count of this GroupResponseFields. # noqa: E501 + + The count of contacts in the group # noqa: E501 + + :return: The contacts_count of this GroupResponseFields. # noqa: E501 + :rtype: int + """ + return self._contacts_count + + @contacts_count.setter + def contacts_count(self, contacts_count): + """Sets the contacts_count of this GroupResponseFields. + + The count of contacts in the group # noqa: E501 + + :param contacts_count: The contacts_count of this GroupResponseFields. # noqa: E501 + :type: int + """ + if contacts_count is None: + raise ValueError("Invalid value for `contacts_count`, must not be `None`") # noqa: E501 + + self._contacts_count = contacts_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, GroupResponseFields): + 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/messente_api/models/message_result.py b/messente_api/models/message_result.py new file mode 100644 index 0000000..6f8f92c --- /dev/null +++ b/messente_api/models/message_result.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MessageResult(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'message_id': 'str', + 'channel': 'Channel', + 'sender': 'str' + } + + attribute_map = { + 'message_id': 'message_id', + 'channel': 'channel', + 'sender': 'sender' + } + + def __init__(self, message_id=None, channel=None, sender=None): # noqa: E501 + """MessageResult - a model defined in OpenAPI""" # noqa: E501 + + self._message_id = None + self._channel = None + self._sender = None + self.discriminator = None + + self.message_id = message_id + self.channel = channel + self.sender = sender + + @property + def message_id(self): + """Gets the message_id of this MessageResult. # noqa: E501 + + Unique identifier for the message # noqa: E501 + + :return: The message_id of this MessageResult. # noqa: E501 + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """Sets the message_id of this MessageResult. + + Unique identifier for the message # noqa: E501 + + :param message_id: The message_id of this MessageResult. # noqa: E501 + :type: str + """ + if message_id is None: + raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 + + self._message_id = message_id + + @property + def channel(self): + """Gets the channel of this MessageResult. # noqa: E501 + + + :return: The channel of this MessageResult. # noqa: E501 + :rtype: Channel + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this MessageResult. + + + :param channel: The channel of this MessageResult. # noqa: E501 + :type: Channel + """ + if channel is None: + raise ValueError("Invalid value for `channel`, must not be `None`") # noqa: E501 + + self._channel = channel + + @property + def sender(self): + """Gets the sender of this MessageResult. # noqa: E501 + + Sender that was used for the message # noqa: E501 + + :return: The sender of this MessageResult. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this MessageResult. + + Sender that was used for the message # noqa: E501 + + :param sender: The sender of this MessageResult. # noqa: E501 + :type: str + """ + if sender is None: + raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 + + self._sender = sender + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, MessageResult): + 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/messente_api/models/number_to_blacklist.py b/messente_api/models/number_to_blacklist.py new file mode 100644 index 0000000..954a022 --- /dev/null +++ b/messente_api/models/number_to_blacklist.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NumberToBlacklist(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'phone_number': 'str' + } + + attribute_map = { + 'phone_number': 'phoneNumber' + } + + def __init__(self, phone_number=None): # noqa: E501 + """NumberToBlacklist - a model defined in OpenAPI""" # noqa: E501 + + self._phone_number = None + self.discriminator = None + + self.phone_number = phone_number + + @property + def phone_number(self): + """Gets the phone_number of this NumberToBlacklist. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The phone_number of this NumberToBlacklist. # noqa: E501 + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """Sets the phone_number of this NumberToBlacklist. + + Phone number in e.164 format # noqa: E501 + + :param phone_number: The phone_number of this NumberToBlacklist. # noqa: E501 + :type: str + """ + if phone_number is None: + raise ValueError("Invalid value for `phone_number`, must not be `None`") # noqa: E501 + + self._phone_number = phone_number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, NumberToBlacklist): + 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/messente_api/models/omni_message_create_success_response.py b/messente_api/models/omni_message_create_success_response.py new file mode 100644 index 0000000..f766585 --- /dev/null +++ b/messente_api/models/omni_message_create_success_response.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class OmniMessageCreateSuccessResponse(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'messages': 'list[MessageResult]', + 'to': 'str', + 'omnimessage_id': 'str' + } + + attribute_map = { + 'messages': 'messages', + 'to': 'to', + 'omnimessage_id': 'omnimessage_id' + } + + def __init__(self, messages=None, to=None, omnimessage_id=None): # noqa: E501 + """OmniMessageCreateSuccessResponse - a model defined in OpenAPI""" # noqa: E501 + + self._messages = None + self._to = None + self._omnimessage_id = None + self.discriminator = None + + self.messages = messages + self.to = to + self.omnimessage_id = omnimessage_id + + @property + def messages(self): + """Gets the messages of this OmniMessageCreateSuccessResponse. # noqa: E501 + + List of messages that compose the omnimessage # noqa: E501 + + :return: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 + :rtype: list[MessageResult] + """ + return self._messages + + @messages.setter + def messages(self, messages): + """Sets the messages of this OmniMessageCreateSuccessResponse. + + List of messages that compose the omnimessage # noqa: E501 + + :param messages: The messages of this OmniMessageCreateSuccessResponse. # noqa: E501 + :type: list[MessageResult] + """ + if messages is None: + raise ValueError("Invalid value for `messages`, must not be `None`") # noqa: E501 + + self._messages = messages + + @property + def to(self): + """Gets the to of this OmniMessageCreateSuccessResponse. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The to of this OmniMessageCreateSuccessResponse. # noqa: E501 + :rtype: str + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this OmniMessageCreateSuccessResponse. + + Phone number in e.164 format # noqa: E501 + + :param to: The to of this OmniMessageCreateSuccessResponse. # noqa: E501 + :type: str + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 + + self._to = to + + @property + def omnimessage_id(self): + """Gets the omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 + + Unique identifier for the omnimessage # noqa: E501 + + :return: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 + :rtype: str + """ + return self._omnimessage_id + + @omnimessage_id.setter + def omnimessage_id(self, omnimessage_id): + """Sets the omnimessage_id of this OmniMessageCreateSuccessResponse. + + Unique identifier for the omnimessage # noqa: E501 + + :param omnimessage_id: The omnimessage_id of this OmniMessageCreateSuccessResponse. # noqa: E501 + :type: str + """ + if omnimessage_id is None: + raise ValueError("Invalid value for `omnimessage_id`, must not be `None`") # noqa: E501 + + self._omnimessage_id = omnimessage_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, OmniMessageCreateSuccessResponse): + 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/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py new file mode 100644 index 0000000..c841355 --- /dev/null +++ b/messente_api/models/omnimessage.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Omnimessage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'to': 'str', + 'messages': 'list[OneOfViberSMSWhatsApp]', + 'dlr_url': 'str', + 'text_store': 'TextStore', + 'time_to_send': 'datetime' + } + + attribute_map = { + 'to': 'to', + 'messages': 'messages', + 'dlr_url': 'dlr_url', + 'text_store': 'text_store', + 'time_to_send': 'time_to_send' + } + + def __init__(self, to=None, messages=None, dlr_url=None, text_store=None, time_to_send=None): # noqa: E501 + """Omnimessage - a model defined in OpenAPI""" # noqa: E501 + + self._to = None + self._messages = None + self._dlr_url = None + self._text_store = None + self._time_to_send = None + self.discriminator = None + + self.to = to + self.messages = messages + if dlr_url is not None: + self.dlr_url = dlr_url + if text_store is not None: + self.text_store = text_store + if time_to_send is not None: + self.time_to_send = time_to_send + + @property + def to(self): + """Gets the to of this Omnimessage. # noqa: E501 + + Phone number in e.164 format # noqa: E501 + + :return: The to of this Omnimessage. # noqa: E501 + :rtype: str + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this Omnimessage. + + Phone number in e.164 format # noqa: E501 + + :param to: The to of this Omnimessage. # noqa: E501 + :type: str + """ + if to is None: + raise ValueError("Invalid value for `to`, must not be `None`") # noqa: E501 + + self._to = to + + @property + def messages(self): + """Gets the messages of this Omnimessage. # noqa: E501 + + An array of messages # noqa: E501 + + :return: The messages of this Omnimessage. # noqa: E501 + :rtype: list[OneOfViberSMSWhatsApp] + """ + return self._messages + + @messages.setter + def messages(self, messages): + """Sets the messages of this Omnimessage. + + An array of messages # noqa: E501 + + :param messages: The messages of this Omnimessage. # noqa: E501 + :type: list[OneOfViberSMSWhatsApp] + """ + if messages is None: + raise ValueError("Invalid value for `messages`, must not be `None`") # noqa: E501 + + self._messages = messages + + @property + def dlr_url(self): + """Gets the dlr_url of this Omnimessage. # noqa: E501 + + URL where the delivery report will be sent # noqa: E501 + + :return: The dlr_url of this Omnimessage. # noqa: E501 + :rtype: str + """ + return self._dlr_url + + @dlr_url.setter + def dlr_url(self, dlr_url): + """Sets the dlr_url of this Omnimessage. + + URL where the delivery report will be sent # noqa: E501 + + :param dlr_url: The dlr_url of this Omnimessage. # noqa: E501 + :type: str + """ + + self._dlr_url = dlr_url + + @property + def text_store(self): + """Gets the text_store of this Omnimessage. # noqa: E501 + + + :return: The text_store of this Omnimessage. # noqa: E501 + :rtype: TextStore + """ + return self._text_store + + @text_store.setter + def text_store(self, text_store): + """Sets the text_store of this Omnimessage. + + + :param text_store: The text_store of this Omnimessage. # noqa: E501 + :type: TextStore + """ + + self._text_store = text_store + + @property + def time_to_send(self): + """Gets the time_to_send of this Omnimessage. # noqa: E501 + + Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 + + :return: The time_to_send of this Omnimessage. # noqa: E501 + :rtype: datetime + """ + return self._time_to_send + + @time_to_send.setter + def time_to_send(self, time_to_send): + """Sets the time_to_send of this Omnimessage. + + Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) # noqa: E501 + + :param time_to_send: The time_to_send of this Omnimessage. # noqa: E501 + :type: datetime + """ + + self._time_to_send = time_to_send + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, Omnimessage): + 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/messente_api/models/sms.py b/messente_api/models/sms.py new file mode 100644 index 0000000..7b354dc --- /dev/null +++ b/messente_api/models/sms.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SMS(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'text': 'str', + 'sender': 'str', + 'validity': 'int', + 'autoconvert': 'str', + 'udh': 'str', + 'channel': 'str' + } + + attribute_map = { + 'text': 'text', + 'sender': 'sender', + 'validity': 'validity', + 'autoconvert': 'autoconvert', + 'udh': 'udh', + 'channel': 'channel' + } + + def __init__(self, text=None, sender=None, validity=None, autoconvert=None, udh=None, channel='sms'): # noqa: E501 + """SMS - a model defined in OpenAPI""" # noqa: E501 + + self._text = None + self._sender = None + self._validity = None + self._autoconvert = None + self._udh = None + self._channel = None + self.discriminator = None + + self.text = text + if sender is not None: + self.sender = sender + if validity is not None: + self.validity = validity + if autoconvert is not None: + self.autoconvert = autoconvert + if udh is not None: + self.udh = udh + if channel is not None: + self.channel = channel + + @property + def text(self): + """Gets the text of this SMS. # noqa: E501 + + Text content of the SMS # noqa: E501 + + :return: The text of this SMS. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this SMS. + + Text content of the SMS # noqa: E501 + + :param text: The text of this SMS. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + + self._text = text + + @property + def sender(self): + """Gets the sender of this SMS. # noqa: E501 + + Phone number or alphanumeric sender name # noqa: E501 + + :return: The sender of this SMS. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this SMS. + + Phone number or alphanumeric sender name # noqa: E501 + + :param sender: The sender of this SMS. # noqa: E501 + :type: str + """ + + self._sender = sender + + @property + def validity(self): + """Gets the validity of this SMS. # noqa: E501 + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :return: The validity of this SMS. # noqa: E501 + :rtype: int + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this SMS. + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :param validity: The validity of this SMS. # noqa: E501 + :type: int + """ + + self._validity = validity + + @property + def autoconvert(self): + """Gets the autoconvert of this SMS. # noqa: E501 + + Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 + + :return: The autoconvert of this SMS. # noqa: E501 + :rtype: str + """ + return self._autoconvert + + @autoconvert.setter + def autoconvert(self, autoconvert): + """Sets the autoconvert of this SMS. + + Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way # noqa: E501 + + :param autoconvert: The autoconvert of this SMS. # noqa: E501 + :type: str + """ + allowed_values = ["full", "on", "off"] # noqa: E501 + if autoconvert not in allowed_values: + raise ValueError( + "Invalid value for `autoconvert` ({0}), must be one of {1}" # noqa: E501 + .format(autoconvert, allowed_values) + ) + + self._autoconvert = autoconvert + + @property + def udh(self): + """Gets the udh of this SMS. # noqa: E501 + + hex-encoded string containing SMS UDH # noqa: E501 + + :return: The udh of this SMS. # noqa: E501 + :rtype: str + """ + return self._udh + + @udh.setter + def udh(self, udh): + """Sets the udh of this SMS. + + hex-encoded string containing SMS UDH # noqa: E501 + + :param udh: The udh of this SMS. # noqa: E501 + :type: str + """ + + self._udh = udh + + @property + def channel(self): + """Gets the channel of this SMS. # noqa: E501 + + The channel used to deliver the message # noqa: E501 + + :return: The channel of this SMS. # noqa: E501 + :rtype: str + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this SMS. + + The channel used to deliver the message # noqa: E501 + + :param channel: The channel of this SMS. # noqa: E501 + :type: str + """ + allowed_values = ["sms"] # noqa: E501 + if channel not in allowed_values: + raise ValueError( + "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 + .format(channel, allowed_values) + ) + + self._channel = channel + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, SMS): + 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/messente_api/models/status.py b/messente_api/models/status.py new file mode 100644 index 0000000..bd24a05 --- /dev/null +++ b/messente_api/models/status.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Status(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ACK = "ACK" + DELIVRD = "DELIVRD" + UNDELIV = "UNDELIV" + FAILED = "FAILED" + UNKNOWN = "UNKNOWN" + ACCEPTD = "ACCEPTD" + REJECTD = "REJECTD" + DELETED = "DELETED" + EXPIRED = "EXPIRED" + NACK = "NACK" + SEEN = "SEEN" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """Status - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, Status): + 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/messente_api/models/text_store.py b/messente_api/models/text_store.py new file mode 100644 index 0000000..d12f11c --- /dev/null +++ b/messente_api/models/text_store.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TextStore(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NOSTORE = "nostore" + PLAINTEXT = "plaintext" + SHA256 = "sha256" + + """ + Attributes: + openapi_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. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """TextStore - a model defined in OpenAPI""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, TextStore): + 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/messente_api/models/viber.py b/messente_api/models/viber.py new file mode 100644 index 0000000..39de9bf --- /dev/null +++ b/messente_api/models/viber.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Viber(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'sender': 'str', + 'validity': 'int', + 'text': 'str', + 'image_url': 'str', + 'button_url': 'str', + 'button_text': 'str', + 'channel': 'str' + } + + attribute_map = { + 'sender': 'sender', + 'validity': 'validity', + 'text': 'text', + 'image_url': 'image_url', + 'button_url': 'button_url', + 'button_text': 'button_text', + 'channel': 'channel' + } + + def __init__(self, sender=None, validity=None, text=None, image_url=None, button_url=None, button_text=None, channel='viber'): # noqa: E501 + """Viber - a model defined in OpenAPI""" # noqa: E501 + + self._sender = None + self._validity = None + self._text = None + self._image_url = None + self._button_url = None + self._button_text = None + self._channel = None + self.discriminator = None + + if sender is not None: + self.sender = sender + if validity is not None: + self.validity = validity + if text is not None: + self.text = text + if image_url is not None: + self.image_url = image_url + if button_url is not None: + self.button_url = button_url + if button_text is not None: + self.button_text = button_text + if channel is not None: + self.channel = channel + + @property + def sender(self): + """Gets the sender of this Viber. # noqa: E501 + + Phone number or alphanumeric sender name # noqa: E501 + + :return: The sender of this Viber. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this Viber. + + Phone number or alphanumeric sender name # noqa: E501 + + :param sender: The sender of this Viber. # noqa: E501 + :type: str + """ + + self._sender = sender + + @property + def validity(self): + """Gets the validity of this Viber. # noqa: E501 + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :return: The validity of this Viber. # noqa: E501 + :rtype: int + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this Viber. + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :param validity: The validity of this Viber. # noqa: E501 + :type: int + """ + + self._validity = validity + + @property + def text(self): + """Gets the text of this Viber. # noqa: E501 + + Plaintext content for Viber # noqa: E501 + + :return: The text of this Viber. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Viber. + + Plaintext content for Viber # noqa: E501 + + :param text: The text of this Viber. # noqa: E501 + :type: str + """ + + self._text = text + + @property + def image_url(self): + """Gets the image_url of this Viber. # noqa: E501 + + URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 + + :return: The image_url of this Viber. # noqa: E501 + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this Viber. + + URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text # noqa: E501 + + :param image_url: The image_url of this Viber. # noqa: E501 + :type: str + """ + + self._image_url = image_url + + @property + def button_url(self): + """Gets the button_url of this Viber. # noqa: E501 + + URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) # noqa: E501 + + :return: The button_url of this Viber. # noqa: E501 + :rtype: str + """ + return self._button_url + + @button_url.setter + def button_url(self, button_url): + """Sets the button_url of this Viber. + + URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) # noqa: E501 + + :param button_url: The button_url of this Viber. # noqa: E501 + :type: str + """ + + self._button_url = button_url + + @property + def button_text(self): + """Gets the button_text of this Viber. # noqa: E501 + + Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) # noqa: E501 + + :return: The button_text of this Viber. # noqa: E501 + :rtype: str + """ + return self._button_text + + @button_text.setter + def button_text(self, button_text): + """Sets the button_text of this Viber. + + Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) # noqa: E501 + + :param button_text: The button_text of this Viber. # noqa: E501 + :type: str + """ + + self._button_text = button_text + + @property + def channel(self): + """Gets the channel of this Viber. # noqa: E501 + + The channel used to deliver the message # noqa: E501 + + :return: The channel of this Viber. # noqa: E501 + :rtype: str + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this Viber. + + The channel used to deliver the message # noqa: E501 + + :param channel: The channel of this Viber. # noqa: E501 + :type: str + """ + allowed_values = ["viber"] # noqa: E501 + if channel not in allowed_values: + raise ValueError( + "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 + .format(channel, allowed_values) + ) + + self._channel = channel + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, Viber): + 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/messente_api/models/whats_app.py b/messente_api/models/whats_app.py new file mode 100644 index 0000000..18f6133 --- /dev/null +++ b/messente_api/models/whats_app.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsApp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'sender': 'str', + 'validity': 'int', + 'text': 'WhatsAppText', + 'image': 'WhatsAppImage', + 'document': 'WhatsAppDocument', + 'audio': 'WhatsAppAudio', + 'channel': 'str' + } + + attribute_map = { + 'sender': 'sender', + 'validity': 'validity', + 'text': 'text', + 'image': 'image', + 'document': 'document', + 'audio': 'audio', + 'channel': 'channel' + } + + def __init__(self, sender=None, validity=None, text=None, image=None, document=None, audio=None, channel='whatsapp'): # noqa: E501 + """WhatsApp - a model defined in OpenAPI""" # noqa: E501 + + self._sender = None + self._validity = None + self._text = None + self._image = None + self._document = None + self._audio = None + self._channel = None + self.discriminator = None + + if sender is not None: + self.sender = sender + if validity is not None: + self.validity = validity + if text is not None: + self.text = text + if image is not None: + self.image = image + if document is not None: + self.document = document + if audio is not None: + self.audio = audio + if channel is not None: + self.channel = channel + + @property + def sender(self): + """Gets the sender of this WhatsApp. # noqa: E501 + + Phone number or alphanumeric sender name # noqa: E501 + + :return: The sender of this WhatsApp. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this WhatsApp. + + Phone number or alphanumeric sender name # noqa: E501 + + :param sender: The sender of this WhatsApp. # noqa: E501 + :type: str + """ + + self._sender = sender + + @property + def validity(self): + """Gets the validity of this WhatsApp. # noqa: E501 + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :return: The validity of this WhatsApp. # noqa: E501 + :rtype: int + """ + return self._validity + + @validity.setter + def validity(self, validity): + """Sets the validity of this WhatsApp. + + After how many minutes this channel is considered as failed and the next channel is attempted # noqa: E501 + + :param validity: The validity of this WhatsApp. # noqa: E501 + :type: int + """ + + self._validity = validity + + @property + def text(self): + """Gets the text of this WhatsApp. # noqa: E501 + + + :return: The text of this WhatsApp. # noqa: E501 + :rtype: WhatsAppText + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this WhatsApp. + + + :param text: The text of this WhatsApp. # noqa: E501 + :type: WhatsAppText + """ + + self._text = text + + @property + def image(self): + """Gets the image of this WhatsApp. # noqa: E501 + + + :return: The image of this WhatsApp. # noqa: E501 + :rtype: WhatsAppImage + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this WhatsApp. + + + :param image: The image of this WhatsApp. # noqa: E501 + :type: WhatsAppImage + """ + + self._image = image + + @property + def document(self): + """Gets the document of this WhatsApp. # noqa: E501 + + + :return: The document of this WhatsApp. # noqa: E501 + :rtype: WhatsAppDocument + """ + return self._document + + @document.setter + def document(self, document): + """Sets the document of this WhatsApp. + + + :param document: The document of this WhatsApp. # noqa: E501 + :type: WhatsAppDocument + """ + + self._document = document + + @property + def audio(self): + """Gets the audio of this WhatsApp. # noqa: E501 + + + :return: The audio of this WhatsApp. # noqa: E501 + :rtype: WhatsAppAudio + """ + return self._audio + + @audio.setter + def audio(self, audio): + """Sets the audio of this WhatsApp. + + + :param audio: The audio of this WhatsApp. # noqa: E501 + :type: WhatsAppAudio + """ + + self._audio = audio + + @property + def channel(self): + """Gets the channel of this WhatsApp. # noqa: E501 + + The channel used to deliver the message # noqa: E501 + + :return: The channel of this WhatsApp. # noqa: E501 + :rtype: str + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this WhatsApp. + + The channel used to deliver the message # noqa: E501 + + :param channel: The channel of this WhatsApp. # noqa: E501 + :type: str + """ + allowed_values = ["whatsapp"] # noqa: E501 + if channel not in allowed_values: + raise ValueError( + "Invalid value for `channel` ({0}), must be one of {1}" # noqa: E501 + .format(channel, allowed_values) + ) + + self._channel = channel + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, WhatsApp): + 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/messente_api/models/whats_app_audio.py b/messente_api/models/whats_app_audio.py new file mode 100644 index 0000000..b279af4 --- /dev/null +++ b/messente_api/models/whats_app_audio.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsAppAudio(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """WhatsAppAudio - a model defined in OpenAPI""" # noqa: E501 + + self._content = None + self.discriminator = None + + self.content = content + + @property + def content(self): + """Gets the content of this WhatsAppAudio. # noqa: E501 + + Base64-encoded audio # noqa: E501 + + :return: The content of this WhatsAppAudio. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this WhatsAppAudio. + + Base64-encoded audio # noqa: E501 + + :param content: The content of this WhatsAppAudio. # noqa: E501 + :type: str + """ + if content is None: + raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, WhatsAppAudio): + 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/messente_api/models/whats_app_document.py b/messente_api/models/whats_app_document.py new file mode 100644 index 0000000..87c51f1 --- /dev/null +++ b/messente_api/models/whats_app_document.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsAppDocument(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'caption': 'str', + 'content': 'str' + } + + attribute_map = { + 'caption': 'caption', + 'content': 'content' + } + + def __init__(self, caption=None, content=None): # noqa: E501 + """WhatsAppDocument - a model defined in OpenAPI""" # noqa: E501 + + self._caption = None + self._content = None + self.discriminator = None + + if caption is not None: + self.caption = caption + self.content = content + + @property + def caption(self): + """Gets the caption of this WhatsAppDocument. # noqa: E501 + + Description for the document # noqa: E501 + + :return: The caption of this WhatsAppDocument. # noqa: E501 + :rtype: str + """ + return self._caption + + @caption.setter + def caption(self, caption): + """Sets the caption of this WhatsAppDocument. + + Description for the document # noqa: E501 + + :param caption: The caption of this WhatsAppDocument. # noqa: E501 + :type: str + """ + + self._caption = caption + + @property + def content(self): + """Gets the content of this WhatsAppDocument. # noqa: E501 + + Base64-encoded image # noqa: E501 + + :return: The content of this WhatsAppDocument. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this WhatsAppDocument. + + Base64-encoded image # noqa: E501 + + :param content: The content of this WhatsAppDocument. # noqa: E501 + :type: str + """ + if content is None: + raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, WhatsAppDocument): + 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/messente_api/models/whats_app_image.py b/messente_api/models/whats_app_image.py new file mode 100644 index 0000000..c00550c --- /dev/null +++ b/messente_api/models/whats_app_image.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsAppImage(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'caption': 'str', + 'content': 'str' + } + + attribute_map = { + 'caption': 'caption', + 'content': 'content' + } + + def __init__(self, caption=None, content=None): # noqa: E501 + """WhatsAppImage - a model defined in OpenAPI""" # noqa: E501 + + self._caption = None + self._content = None + self.discriminator = None + + if caption is not None: + self.caption = caption + self.content = content + + @property + def caption(self): + """Gets the caption of this WhatsAppImage. # noqa: E501 + + Description for the image # noqa: E501 + + :return: The caption of this WhatsAppImage. # noqa: E501 + :rtype: str + """ + return self._caption + + @caption.setter + def caption(self, caption): + """Sets the caption of this WhatsAppImage. + + Description for the image # noqa: E501 + + :param caption: The caption of this WhatsAppImage. # noqa: E501 + :type: str + """ + + self._caption = caption + + @property + def content(self): + """Gets the content of this WhatsAppImage. # noqa: E501 + + Base64-encoded image # noqa: E501 + + :return: The content of this WhatsAppImage. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this WhatsAppImage. + + Base64-encoded image # noqa: E501 + + :param content: The content of this WhatsAppImage. # noqa: E501 + :type: str + """ + if content is None: + raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, WhatsAppImage): + 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/messente_api/models/whats_app_text.py b/messente_api/models/whats_app_text.py new file mode 100644 index 0000000..128958d --- /dev/null +++ b/messente_api/models/whats_app_text.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsAppText(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_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. + """ + openapi_types = { + 'preview_url': 'bool', + 'body': 'str' + } + + attribute_map = { + 'preview_url': 'preview_url', + 'body': 'body' + } + + def __init__(self, preview_url=True, body=None): # noqa: E501 + """WhatsAppText - a model defined in OpenAPI""" # noqa: E501 + + self._preview_url = None + self._body = None + self.discriminator = None + + if preview_url is not None: + self.preview_url = preview_url + self.body = body + + @property + def preview_url(self): + """Gets the preview_url of this WhatsAppText. # noqa: E501 + + Whether to display link preview if the message contains a hyperlink # noqa: E501 + + :return: The preview_url of this WhatsAppText. # noqa: E501 + :rtype: bool + """ + return self._preview_url + + @preview_url.setter + def preview_url(self, preview_url): + """Sets the preview_url of this WhatsAppText. + + Whether to display link preview if the message contains a hyperlink # noqa: E501 + + :param preview_url: The preview_url of this WhatsAppText. # noqa: E501 + :type: bool + """ + + self._preview_url = preview_url + + @property + def body(self): + """Gets the body of this WhatsAppText. # noqa: E501 + + Plaintext content for WhatsApp, can contain URLs, emojis and formatting # noqa: E501 + + :return: The body of this WhatsAppText. # noqa: E501 + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this WhatsAppText. + + Plaintext content for WhatsApp, can contain URLs, emojis and formatting # noqa: E501 + + :param body: The body of this WhatsAppText. # noqa: E501 + :type: str + """ + if body is None: + raise ValueError("Invalid value for `body`, must not be `None`") # noqa: E501 + + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_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, WhatsAppText): + 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/messente_api/rest.py b/messente_api/rest.py new file mode 100644 index 0000000..77e7aad --- /dev/null +++ b/messente_api/rest.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode +import urllib3 + +from messente_api.exceptions import ApiException, ApiValueError + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str) or isinstance(body, bytes): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bafdc07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1c88757 --- /dev/null +++ b/setup.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "messente-api" +VERSION = "1.0.2" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="Messente API", + author_email="messente@messente.com", + url="https://github.com/messente/messente-api-python", + keywords=["viber", "sms", "whatsapp", "phonebook"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 + """ +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..2702246 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_blacklist_api.py b/test/test_blacklist_api.py new file mode 100644 index 0000000..cc394ff --- /dev/null +++ b/test/test_blacklist_api.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.api.blacklist_api import BlacklistApi # noqa: E501 +from messente_api.rest import ApiException + + +class TestBlacklistApi(unittest.TestCase): + """BlacklistApi unit test stubs""" + + def setUp(self): + self.api = messente_api.api.blacklist_api.BlacklistApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_to_blacklist(self): + """Test case for add_to_blacklist + + Adds a phone number to the blacklist # noqa: E501 + """ + pass + + def test_delete_from_blacklist(self): + """Test case for delete_from_blacklist + + Deletes a phone number from the blacklist # noqa: E501 + """ + pass + + def test_fetch_blacklist(self): + """Test case for fetch_blacklist + + Returns all blacklisted phone numbers # noqa: E501 + """ + pass + + def test_is_blacklisted(self): + """Test case for is_blacklisted + + Checks if a phone number is blacklisted # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_channel.py b/test/test_channel.py new file mode 100644 index 0000000..2e62af1 --- /dev/null +++ b/test/test_channel.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.channel import Channel # noqa: E501 +from messente_api.rest import ApiException + + +class TestChannel(unittest.TestCase): + """Channel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testChannel(self): + """Test Channel""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.channel.Channel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_envelope.py b/test/test_contact_envelope.py new file mode 100644 index 0000000..cf5fce4 --- /dev/null +++ b/test/test_contact_envelope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.contact_envelope import ContactEnvelope # noqa: E501 +from messente_api.rest import ApiException + + +class TestContactEnvelope(unittest.TestCase): + """ContactEnvelope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactEnvelope(self): + """Test ContactEnvelope""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.contact_envelope.ContactEnvelope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_fields.py b/test/test_contact_fields.py new file mode 100644 index 0000000..f2fd59c --- /dev/null +++ b/test/test_contact_fields.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.contact_fields import ContactFields # noqa: E501 +from messente_api.rest import ApiException + + +class TestContactFields(unittest.TestCase): + """ContactFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactFields(self): + """Test ContactFields""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.contact_fields.ContactFields() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_list_envelope.py b/test/test_contact_list_envelope.py new file mode 100644 index 0000000..9cc5fc0 --- /dev/null +++ b/test/test_contact_list_envelope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.contact_list_envelope import ContactListEnvelope # noqa: E501 +from messente_api.rest import ApiException + + +class TestContactListEnvelope(unittest.TestCase): + """ContactListEnvelope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactListEnvelope(self): + """Test ContactListEnvelope""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.contact_list_envelope.ContactListEnvelope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact_update_fields.py b/test/test_contact_update_fields.py new file mode 100644 index 0000000..e313e26 --- /dev/null +++ b/test/test_contact_update_fields.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.contact_update_fields import ContactUpdateFields # noqa: E501 +from messente_api.rest import ApiException + + +class TestContactUpdateFields(unittest.TestCase): + """ContactUpdateFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContactUpdateFields(self): + """Test ContactUpdateFields""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.contact_update_fields.ContactUpdateFields() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py new file mode 100644 index 0000000..2e1293c --- /dev/null +++ b/test/test_contacts_api.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.api.contacts_api import ContactsApi # noqa: E501 +from messente_api.rest import ApiException + + +class TestContactsApi(unittest.TestCase): + """ContactsApi unit test stubs""" + + def setUp(self): + self.api = messente_api.api.contacts_api.ContactsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_add_contact_to_group(self): + """Test case for add_contact_to_group + + Adds a contact to a group # noqa: E501 + """ + pass + + def test_create_contact(self): + """Test case for create_contact + + Creates a new contact # noqa: E501 + """ + pass + + def test_delete_contact(self): + """Test case for delete_contact + + Deletes a contact # noqa: E501 + """ + pass + + def test_fetch_contact(self): + """Test case for fetch_contact + + Lists a contact # noqa: E501 + """ + pass + + def test_fetch_contact_groups(self): + """Test case for fetch_contact_groups + + Lists groups of a contact # noqa: E501 + """ + pass + + def test_fetch_contacts(self): + """Test case for fetch_contacts + + Returns all contacts # noqa: E501 + """ + pass + + def test_remove_contact_from_group(self): + """Test case for remove_contact_from_group + + Removes a contact from a group # noqa: E501 + """ + pass + + def test_update_contact(self): + """Test case for update_contact + + Updates a contact # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delivery_report_api.py b/test/test_delivery_report_api.py new file mode 100644 index 0000000..a3558c7 --- /dev/null +++ b/test/test_delivery_report_api.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.api.delivery_report_api import DeliveryReportApi # noqa: E501 +from messente_api.rest import ApiException + + +class TestDeliveryReportApi(unittest.TestCase): + """DeliveryReportApi unit test stubs""" + + def setUp(self): + self.api = messente_api.api.delivery_report_api.DeliveryReportApi() # noqa: E501 + + def tearDown(self): + pass + + def test_retrieve_delivery_report(self): + """Test case for retrieve_delivery_report + + Retrieves the delivery report for the Omnimessage # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delivery_report_response.py b/test/test_delivery_report_response.py new file mode 100644 index 0000000..c2faf60 --- /dev/null +++ b/test/test_delivery_report_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.delivery_report_response import DeliveryReportResponse # noqa: E501 +from messente_api.rest import ApiException + + +class TestDeliveryReportResponse(unittest.TestCase): + """DeliveryReportResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeliveryReportResponse(self): + """Test DeliveryReportResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.delivery_report_response.DeliveryReportResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delivery_result.py b/test/test_delivery_result.py new file mode 100644 index 0000000..36c339e --- /dev/null +++ b/test/test_delivery_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.delivery_result import DeliveryResult # noqa: E501 +from messente_api.rest import ApiException + + +class TestDeliveryResult(unittest.TestCase): + """DeliveryResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeliveryResult(self): + """Test DeliveryResult""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.delivery_result.DeliveryResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_code_omnichannel.py b/test/test_error_code_omnichannel.py new file mode 100644 index 0000000..f1db5f5 --- /dev/null +++ b/test/test_error_code_omnichannel.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_code_omnichannel import ErrorCodeOmnichannel # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorCodeOmnichannel(unittest.TestCase): + """ErrorCodeOmnichannel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorCodeOmnichannel(self): + """Test ErrorCodeOmnichannel""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_code_omnichannel.ErrorCodeOmnichannel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_code_omnichannel_machine.py b/test/test_error_code_omnichannel_machine.py new file mode 100644 index 0000000..1689313 --- /dev/null +++ b/test/test_error_code_omnichannel_machine.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_code_omnichannel_machine import ErrorCodeOmnichannelMachine # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorCodeOmnichannelMachine(unittest.TestCase): + """ErrorCodeOmnichannelMachine unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorCodeOmnichannelMachine(self): + """Test ErrorCodeOmnichannelMachine""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_code_omnichannel_machine.ErrorCodeOmnichannelMachine() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_code_phonebook.py b/test/test_error_code_phonebook.py new file mode 100644 index 0000000..992ef7f --- /dev/null +++ b/test/test_error_code_phonebook.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_code_phonebook import ErrorCodePhonebook # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorCodePhonebook(unittest.TestCase): + """ErrorCodePhonebook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorCodePhonebook(self): + """Test ErrorCodePhonebook""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_code_phonebook.ErrorCodePhonebook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_item_omnichannel.py b/test/test_error_item_omnichannel.py new file mode 100644 index 0000000..d466877 --- /dev/null +++ b/test/test_error_item_omnichannel.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_item_omnichannel import ErrorItemOmnichannel # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorItemOmnichannel(unittest.TestCase): + """ErrorItemOmnichannel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorItemOmnichannel(self): + """Test ErrorItemOmnichannel""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_item_omnichannel.ErrorItemOmnichannel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_item_phonebook.py b/test/test_error_item_phonebook.py new file mode 100644 index 0000000..4db6c5e --- /dev/null +++ b/test/test_error_item_phonebook.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_item_phonebook import ErrorItemPhonebook # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorItemPhonebook(unittest.TestCase): + """ErrorItemPhonebook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorItemPhonebook(self): + """Test ErrorItemPhonebook""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_item_phonebook.ErrorItemPhonebook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_omnichannel.py b/test/test_error_omnichannel.py new file mode 100644 index 0000000..922cf72 --- /dev/null +++ b/test/test_error_omnichannel.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_omnichannel import ErrorOmnichannel # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorOmnichannel(unittest.TestCase): + """ErrorOmnichannel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorOmnichannel(self): + """Test ErrorOmnichannel""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_omnichannel.ErrorOmnichannel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_phonebook.py b/test/test_error_phonebook.py new file mode 100644 index 0000000..3ac06e9 --- /dev/null +++ b/test/test_error_phonebook.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_phonebook import ErrorPhonebook # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorPhonebook(unittest.TestCase): + """ErrorPhonebook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorPhonebook(self): + """Test ErrorPhonebook""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_phonebook.ErrorPhonebook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_title_omnichannel.py b/test/test_error_title_omnichannel.py new file mode 100644 index 0000000..2a1b6f5 --- /dev/null +++ b/test/test_error_title_omnichannel.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_title_omnichannel import ErrorTitleOmnichannel # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorTitleOmnichannel(unittest.TestCase): + """ErrorTitleOmnichannel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorTitleOmnichannel(self): + """Test ErrorTitleOmnichannel""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_title_omnichannel.ErrorTitleOmnichannel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_error_title_phonebook.py b/test/test_error_title_phonebook.py new file mode 100644 index 0000000..913f7c4 --- /dev/null +++ b/test/test_error_title_phonebook.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.error_title_phonebook import ErrorTitlePhonebook # noqa: E501 +from messente_api.rest import ApiException + + +class TestErrorTitlePhonebook(unittest.TestCase): + """ErrorTitlePhonebook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testErrorTitlePhonebook(self): + """Test ErrorTitlePhonebook""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.error_title_phonebook.ErrorTitlePhonebook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_fetch_blacklist_success.py b/test/test_fetch_blacklist_success.py new file mode 100644 index 0000000..5eec063 --- /dev/null +++ b/test/test_fetch_blacklist_success.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.fetch_blacklist_success import FetchBlacklistSuccess # noqa: E501 +from messente_api.rest import ApiException + + +class TestFetchBlacklistSuccess(unittest.TestCase): + """FetchBlacklistSuccess unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFetchBlacklistSuccess(self): + """Test FetchBlacklistSuccess""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.fetch_blacklist_success.FetchBlacklistSuccess() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_envelope.py b/test/test_group_envelope.py new file mode 100644 index 0000000..774c00e --- /dev/null +++ b/test/test_group_envelope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.group_envelope import GroupEnvelope # noqa: E501 +from messente_api.rest import ApiException + + +class TestGroupEnvelope(unittest.TestCase): + """GroupEnvelope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupEnvelope(self): + """Test GroupEnvelope""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.group_envelope.GroupEnvelope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_list_envelope.py b/test/test_group_list_envelope.py new file mode 100644 index 0000000..960cbbf --- /dev/null +++ b/test/test_group_list_envelope.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.group_list_envelope import GroupListEnvelope # noqa: E501 +from messente_api.rest import ApiException + + +class TestGroupListEnvelope(unittest.TestCase): + """GroupListEnvelope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupListEnvelope(self): + """Test GroupListEnvelope""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.group_list_envelope.GroupListEnvelope() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_name.py b/test/test_group_name.py new file mode 100644 index 0000000..00a5fce --- /dev/null +++ b/test/test_group_name.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.group_name import GroupName # noqa: E501 +from messente_api.rest import ApiException + + +class TestGroupName(unittest.TestCase): + """GroupName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupName(self): + """Test GroupName""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.group_name.GroupName() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_group_response_fields.py b/test/test_group_response_fields.py new file mode 100644 index 0000000..ada4c0a --- /dev/null +++ b/test/test_group_response_fields.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.group_response_fields import GroupResponseFields # noqa: E501 +from messente_api.rest import ApiException + + +class TestGroupResponseFields(unittest.TestCase): + """GroupResponseFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupResponseFields(self): + """Test GroupResponseFields""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.group_response_fields.GroupResponseFields() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_api.py b/test/test_groups_api.py new file mode 100644 index 0000000..d772c50 --- /dev/null +++ b/test/test_groups_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.api.groups_api import GroupsApi # noqa: E501 +from messente_api.rest import ApiException + + +class TestGroupsApi(unittest.TestCase): + """GroupsApi unit test stubs""" + + def setUp(self): + self.api = messente_api.api.groups_api.GroupsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_group(self): + """Test case for create_group + + Creates a new group with the provided name # noqa: E501 + """ + pass + + def test_delete_group(self): + """Test case for delete_group + + Deletes a group # noqa: E501 + """ + pass + + def test_fetch_group(self): + """Test case for fetch_group + + Lists a group # noqa: E501 + """ + pass + + def test_fetch_groups(self): + """Test case for fetch_groups + + Returns all groups # noqa: E501 + """ + pass + + def test_update_group(self): + """Test case for update_group + + Updates a group with the provided name # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_message_result.py b/test/test_message_result.py new file mode 100644 index 0000000..743af81 --- /dev/null +++ b/test/test_message_result.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.message_result import MessageResult # noqa: E501 +from messente_api.rest import ApiException + + +class TestMessageResult(unittest.TestCase): + """MessageResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMessageResult(self): + """Test MessageResult""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.message_result.MessageResult() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_number_to_blacklist.py b/test/test_number_to_blacklist.py new file mode 100644 index 0000000..bf3cbfa --- /dev/null +++ b/test/test_number_to_blacklist.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.number_to_blacklist import NumberToBlacklist # noqa: E501 +from messente_api.rest import ApiException + + +class TestNumberToBlacklist(unittest.TestCase): + """NumberToBlacklist unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNumberToBlacklist(self): + """Test NumberToBlacklist""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.number_to_blacklist.NumberToBlacklist() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_omni_message_create_success_response.py b/test/test_omni_message_create_success_response.py new file mode 100644 index 0000000..0366e64 --- /dev/null +++ b/test/test_omni_message_create_success_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.omni_message_create_success_response import OmniMessageCreateSuccessResponse # noqa: E501 +from messente_api.rest import ApiException + + +class TestOmniMessageCreateSuccessResponse(unittest.TestCase): + """OmniMessageCreateSuccessResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOmniMessageCreateSuccessResponse(self): + """Test OmniMessageCreateSuccessResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.omni_message_create_success_response.OmniMessageCreateSuccessResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_omnimessage.py b/test/test_omnimessage.py new file mode 100644 index 0000000..45ec4f0 --- /dev/null +++ b/test/test_omnimessage.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.omnimessage import Omnimessage # noqa: E501 +from messente_api.rest import ApiException + + +class TestOmnimessage(unittest.TestCase): + """Omnimessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOmnimessage(self): + """Test Omnimessage""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.omnimessage.Omnimessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_omnimessage_api.py b/test/test_omnimessage_api.py new file mode 100644 index 0000000..a9d2fb3 --- /dev/null +++ b/test/test_omnimessage_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.api.omnimessage_api import OmnimessageApi # noqa: E501 +from messente_api.rest import ApiException + + +class TestOmnimessageApi(unittest.TestCase): + """OmnimessageApi unit test stubs""" + + def setUp(self): + self.api = messente_api.api.omnimessage_api.OmnimessageApi() # noqa: E501 + + def tearDown(self): + pass + + def test_cancel_scheduled_message(self): + """Test case for cancel_scheduled_message + + Cancels a scheduled Omnimessage # noqa: E501 + """ + pass + + def test_send_omnimessage(self): + """Test case for send_omnimessage + + Sends an Omnimessage # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sms.py b/test/test_sms.py new file mode 100644 index 0000000..96f7073 --- /dev/null +++ b/test/test_sms.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.sms import SMS # noqa: E501 +from messente_api.rest import ApiException + + +class TestSMS(unittest.TestCase): + """SMS unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSMS(self): + """Test SMS""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.sms.SMS() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_status.py b/test/test_status.py new file mode 100644 index 0000000..95df560 --- /dev/null +++ b/test/test_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.status import Status # noqa: E501 +from messente_api.rest import ApiException + + +class TestStatus(unittest.TestCase): + """Status unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStatus(self): + """Test Status""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.status.Status() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_text_store.py b/test/test_text_store.py new file mode 100644 index 0000000..8f23b43 --- /dev/null +++ b/test/test_text_store.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.text_store import TextStore # noqa: E501 +from messente_api.rest import ApiException + + +class TestTextStore(unittest.TestCase): + """TextStore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTextStore(self): + """Test TextStore""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.text_store.TextStore() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_viber.py b/test/test_viber.py new file mode 100644 index 0000000..1dbcfef --- /dev/null +++ b/test/test_viber.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.viber import Viber # noqa: E501 +from messente_api.rest import ApiException + + +class TestViber(unittest.TestCase): + """Viber unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testViber(self): + """Test Viber""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.viber.Viber() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whats_app.py b/test/test_whats_app.py new file mode 100644 index 0000000..106cfc1 --- /dev/null +++ b/test/test_whats_app.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.whats_app import WhatsApp # noqa: E501 +from messente_api.rest import ApiException + + +class TestWhatsApp(unittest.TestCase): + """WhatsApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsApp(self): + """Test WhatsApp""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.whats_app.WhatsApp() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whats_app_audio.py b/test/test_whats_app_audio.py new file mode 100644 index 0000000..81eddde --- /dev/null +++ b/test/test_whats_app_audio.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.whats_app_audio import WhatsAppAudio # noqa: E501 +from messente_api.rest import ApiException + + +class TestWhatsAppAudio(unittest.TestCase): + """WhatsAppAudio unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsAppAudio(self): + """Test WhatsAppAudio""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.whats_app_audio.WhatsAppAudio() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whats_app_document.py b/test/test_whats_app_document.py new file mode 100644 index 0000000..0e4fb6f --- /dev/null +++ b/test/test_whats_app_document.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.whats_app_document import WhatsAppDocument # noqa: E501 +from messente_api.rest import ApiException + + +class TestWhatsAppDocument(unittest.TestCase): + """WhatsAppDocument unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsAppDocument(self): + """Test WhatsAppDocument""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.whats_app_document.WhatsAppDocument() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whats_app_image.py b/test/test_whats_app_image.py new file mode 100644 index 0000000..49c8b6c --- /dev/null +++ b/test/test_whats_app_image.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.whats_app_image import WhatsAppImage # noqa: E501 +from messente_api.rest import ApiException + + +class TestWhatsAppImage(unittest.TestCase): + """WhatsAppImage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsAppImage(self): + """Test WhatsAppImage""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.whats_app_image.WhatsAppImage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whats_app_text.py b/test/test_whats_app_text.py new file mode 100644 index 0000000..3f3b4b8 --- /dev/null +++ b/test/test_whats_app_text.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Messente API + + [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + Contact: messente@messente.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import messente_api +from messente_api.models.whats_app_text import WhatsAppText # noqa: E501 +from messente_api.rest import ApiException + + +class TestWhatsAppText(unittest.TestCase): + """WhatsAppText unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsAppText(self): + """Test WhatsAppText""" + # FIXME: construct object with mandatory attributes with example values + # model = messente_api.models.whats_app_text.WhatsAppText() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3d0be61 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] From c602da72ac49d2e3d5665a4f826275caf3293bf9 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 6 Jun 2019 12:29:59 +0000 Subject: [PATCH 14/16] Travis update: Jun 2019 (Build 272) [skip ci] --- docs/BlacklistApi.md | 4 ++-- docs/ContactsApi.md | 16 ++++++++-------- docs/GroupsApi.md | 10 +++++----- messente_api/api/blacklist_api.py | 4 ++-- messente_api/api/contacts_api.py | 16 ++++++++-------- messente_api/api/groups_api.py | 10 +++++----- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/BlacklistApi.md b/docs/BlacklistApi.md index d883382..9941b74 100644 --- a/docs/BlacklistApi.md +++ b/docs/BlacklistApi.md @@ -5,9 +5,9 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_to_blacklist**](BlacklistApi.md#add_to_blacklist) | **POST** /phonebook/blacklist | Adds a phone number to the blacklist -[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /blacklist/{phone} | Deletes a phone number from the blacklist +[**delete_from_blacklist**](BlacklistApi.md#delete_from_blacklist) | **DELETE** /phonebook/blacklist/{phone} | Deletes a phone number from the blacklist [**fetch_blacklist**](BlacklistApi.md#fetch_blacklist) | **GET** /phonebook/blacklist | Returns all blacklisted phone numbers -[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /blacklist/{phone} | Checks if a phone number is blacklisted +[**is_blacklisted**](BlacklistApi.md#is_blacklisted) | **GET** /phonebook/blacklist/{phone} | Checks if a phone number is blacklisted # **add_to_blacklist** diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index cffd1ec..13d3682 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -4,14 +4,14 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group -[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact -[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact -[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact -[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact -[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts -[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group -[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact +[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /phonebook/groups/{groupId}/contacts/{phone} | Adds a contact to a group +[**create_contact**](ContactsApi.md#create_contact) | **POST** /phonebook/contacts | Creates a new contact +[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /phonebook/contacts/{phone} | Deletes a contact +[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /phonebook/contacts/{phone} | Lists a contact +[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /phonebook/contacts/{phone}/groups | Lists groups of a contact +[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /phonebook/contacts | Returns all contacts +[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /phonebook/groups/{groupId}/contacts/{phone} | Removes a contact from a group +[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /phonebook/contacts/{phone} | Updates a contact # **add_contact_to_group** diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 035ad5b..e389ff7 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -4,11 +4,11 @@ All URIs are relative to *https://api.messente.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**create_group**](GroupsApi.md#create_group) | **POST** /groups | Creates a new group with the provided name -[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /groups/{groupId} | Deletes a group -[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /groups/{groupId} | Lists a group -[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /groups | Returns all groups -[**update_group**](GroupsApi.md#update_group) | **PUT** /groups/{groupId} | Updates a group with the provided name +[**create_group**](GroupsApi.md#create_group) | **POST** /phonebook/groups | Creates a new group with the provided name +[**delete_group**](GroupsApi.md#delete_group) | **DELETE** /phonebook/groups/{groupId} | Deletes a group +[**fetch_group**](GroupsApi.md#fetch_group) | **GET** /phonebook/groups/{groupId} | Lists a group +[**fetch_groups**](GroupsApi.md#fetch_groups) | **GET** /phonebook/groups | Returns all groups +[**update_group**](GroupsApi.md#update_group) | **PUT** /phonebook/groups/{groupId} | Updates a group with the provided name # **create_group** diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py index f3667b8..8880ac8 100644 --- a/messente_api/api/blacklist_api.py +++ b/messente_api/api/blacklist_api.py @@ -214,7 +214,7 @@ def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/blacklist/{phone}', 'DELETE', + '/phonebook/blacklist/{phone}', 'DELETE', path_params, query_params, header_params, @@ -394,7 +394,7 @@ def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/blacklist/{phone}', 'GET', + '/phonebook/blacklist/{phone}', 'GET', path_params, query_params, header_params, diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index daf6b32..38fc2c8 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -124,7 +124,7 @@ def add_contact_to_group_with_http_info(self, group_id, phone, **kwargs): # noq auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups/{groupId}/contacts/{phone}', 'POST', + '/phonebook/groups/{groupId}/contacts/{phone}', 'POST', path_params, query_params, header_params, @@ -222,7 +222,7 @@ def create_contact_with_http_info(self, contact_fields, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts', 'POST', + '/phonebook/contacts', 'POST', path_params, query_params, header_params, @@ -316,7 +316,7 @@ def delete_contact_with_http_info(self, phone, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts/{phone}', 'DELETE', + '/phonebook/contacts/{phone}', 'DELETE', path_params, query_params, header_params, @@ -410,7 +410,7 @@ def fetch_contact_with_http_info(self, phone, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts/{phone}', 'GET', + '/phonebook/contacts/{phone}', 'GET', path_params, query_params, header_params, @@ -504,7 +504,7 @@ def fetch_contact_groups_with_http_info(self, phone, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts/{phone}/groups', 'GET', + '/phonebook/contacts/{phone}/groups', 'GET', path_params, query_params, header_params, @@ -595,7 +595,7 @@ def fetch_contacts_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts', 'GET', + '/phonebook/contacts', 'GET', path_params, query_params, header_params, @@ -697,7 +697,7 @@ def remove_contact_from_group_with_http_info(self, group_id, phone, **kwargs): auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups/{groupId}/contacts/{phone}', 'DELETE', + '/phonebook/groups/{groupId}/contacts/{phone}', 'DELETE', path_params, query_params, header_params, @@ -803,7 +803,7 @@ def update_contact_with_http_info(self, phone, contact_update_fields, **kwargs): auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/contacts/{phone}', 'PATCH', + '/phonebook/contacts/{phone}', 'PATCH', path_params, query_params, header_params, diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 8054711..54667af 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -120,7 +120,7 @@ def create_group_with_http_info(self, group_name, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups', 'POST', + '/phonebook/groups', 'POST', path_params, query_params, header_params, @@ -214,7 +214,7 @@ def delete_group_with_http_info(self, group_id, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups/{groupId}', 'DELETE', + '/phonebook/groups/{groupId}', 'DELETE', path_params, query_params, header_params, @@ -308,7 +308,7 @@ def fetch_group_with_http_info(self, group_id, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups/{groupId}', 'GET', + '/phonebook/groups/{groupId}', 'GET', path_params, query_params, header_params, @@ -394,7 +394,7 @@ def fetch_groups_with_http_info(self, **kwargs): # noqa: E501 auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups', 'GET', + '/phonebook/groups', 'GET', path_params, query_params, header_params, @@ -500,7 +500,7 @@ def update_group_with_http_info(self, group_id, group_name, **kwargs): # noqa: auth_settings = ['basicAuth'] # noqa: E501 return self.api_client.call_api( - '/groups/{groupId}', 'PUT', + '/phonebook/groups/{groupId}', 'PUT', path_params, query_params, header_params, From cbb06e363fccf85140a19252fea42b58b6108d71 Mon Sep 17 00:00:00 2001 From: api-librarian Date: Thu, 6 Jun 2019 12:45:52 +0000 Subject: [PATCH 15/16] Travis update: Jun 2019 (Build 273) [skip ci] --- README.md | 4 ++-- messente_api/__init__.py | 4 ++-- messente_api/api/blacklist_api.py | 2 +- messente_api/api/contacts_api.py | 2 +- messente_api/api/delivery_report_api.py | 2 +- messente_api/api/groups_api.py | 2 +- messente_api/api/omnimessage_api.py | 2 +- messente_api/api_client.py | 4 ++-- messente_api/configuration.py | 6 +++--- messente_api/exceptions.py | 2 +- messente_api/models/__init__.py | 2 +- messente_api/models/channel.py | 2 +- messente_api/models/contact_envelope.py | 2 +- messente_api/models/contact_fields.py | 2 +- messente_api/models/contact_list_envelope.py | 2 +- messente_api/models/contact_update_fields.py | 2 +- messente_api/models/delivery_report_response.py | 2 +- messente_api/models/delivery_result.py | 2 +- messente_api/models/error_code_omnichannel.py | 2 +- messente_api/models/error_code_omnichannel_machine.py | 2 +- messente_api/models/error_code_phonebook.py | 2 +- messente_api/models/error_item_omnichannel.py | 2 +- messente_api/models/error_item_phonebook.py | 2 +- messente_api/models/error_omnichannel.py | 2 +- messente_api/models/error_phonebook.py | 2 +- messente_api/models/error_title_omnichannel.py | 2 +- messente_api/models/error_title_phonebook.py | 2 +- messente_api/models/fetch_blacklist_success.py | 2 +- messente_api/models/group_envelope.py | 2 +- messente_api/models/group_list_envelope.py | 2 +- messente_api/models/group_name.py | 2 +- messente_api/models/group_response_fields.py | 2 +- messente_api/models/message_result.py | 2 +- messente_api/models/number_to_blacklist.py | 2 +- messente_api/models/omni_message_create_success_response.py | 2 +- messente_api/models/omnimessage.py | 2 +- messente_api/models/sms.py | 2 +- messente_api/models/status.py | 2 +- messente_api/models/text_store.py | 2 +- messente_api/models/viber.py | 2 +- messente_api/models/whats_app.py | 2 +- messente_api/models/whats_app_audio.py | 2 +- messente_api/models/whats_app_document.py | 2 +- messente_api/models/whats_app_image.py | 2 +- messente_api/models/whats_app_text.py | 2 +- messente_api/rest.py | 2 +- setup.py | 4 ++-- test/test_blacklist_api.py | 2 +- test/test_channel.py | 2 +- test/test_contact_envelope.py | 2 +- test/test_contact_fields.py | 2 +- test/test_contact_list_envelope.py | 2 +- test/test_contact_update_fields.py | 2 +- test/test_contacts_api.py | 2 +- test/test_delivery_report_api.py | 2 +- test/test_delivery_report_response.py | 2 +- test/test_delivery_result.py | 2 +- test/test_error_code_omnichannel.py | 2 +- test/test_error_code_omnichannel_machine.py | 2 +- test/test_error_code_phonebook.py | 2 +- test/test_error_item_omnichannel.py | 2 +- test/test_error_item_phonebook.py | 2 +- test/test_error_omnichannel.py | 2 +- test/test_error_phonebook.py | 2 +- test/test_error_title_omnichannel.py | 2 +- test/test_error_title_phonebook.py | 2 +- test/test_fetch_blacklist_success.py | 2 +- test/test_group_envelope.py | 2 +- test/test_group_list_envelope.py | 2 +- test/test_group_name.py | 2 +- test/test_group_response_fields.py | 2 +- test/test_groups_api.py | 2 +- test/test_message_result.py | 2 +- test/test_number_to_blacklist.py | 2 +- test/test_omni_message_create_success_response.py | 2 +- test/test_omnimessage.py | 2 +- test/test_omnimessage_api.py | 2 +- test/test_sms.py | 2 +- test/test_status.py | 2 +- test/test_text_store.py | 2 +- test/test_viber.py | 2 +- test/test_whats_app.py | 2 +- test/test_whats_app_audio.py | 2 +- test/test_whats_app_document.py | 2 +- test/test_whats_app_image.py | 2 +- test/test_whats_app_text.py | 2 +- 86 files changed, 92 insertions(+), 92 deletions(-) diff --git a/README.md b/README.md index c591975..66ec536 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Messente API Library -- Messente API version: 1.0.1 -- Python package version: 1.0.2 +- Messente API version: 1.0.2 +- Python package version: 1.0.3 [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. diff --git a/messente_api/__init__.py b/messente_api/__init__.py index 3465e3f..693f22b 100644 --- a/messente_api/__init__.py +++ b/messente_api/__init__.py @@ -7,7 +7,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -15,7 +15,7 @@ from __future__ import absolute_import -__version__ = "1.0.2" +__version__ = "1.0.3" # import apis into sdk package from messente_api.api.blacklist_api import BlacklistApi diff --git a/messente_api/api/blacklist_api.py b/messente_api/api/blacklist_api.py index 8880ac8..cd1d4c2 100644 --- a/messente_api/api/blacklist_api.py +++ b/messente_api/api/blacklist_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/contacts_api.py b/messente_api/api/contacts_api.py index 38fc2c8..2ecf3ec 100644 --- a/messente_api/api/contacts_api.py +++ b/messente_api/api/contacts_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/delivery_report_api.py b/messente_api/api/delivery_report_api.py index a731e5c..47592bf 100644 --- a/messente_api/api/delivery_report_api.py +++ b/messente_api/api/delivery_report_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/groups_api.py b/messente_api/api/groups_api.py index 54667af..59ec0c3 100644 --- a/messente_api/api/groups_api.py +++ b/messente_api/api/groups_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api/omnimessage_api.py b/messente_api/api/omnimessage_api.py index 32ef137..708a036 100644 --- a/messente_api/api/omnimessage_api.py +++ b/messente_api/api/omnimessage_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/api_client.py b/messente_api/api_client.py index 16a3d7f..b25e9d2 100644 --- a/messente_api/api_client.py +++ b/messente_api/api_client.py @@ -4,7 +4,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -77,7 +77,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.0.2/python' + self.user_agent = 'OpenAPI-Generator/1.0.3/python' def __del__(self): if self._pool: diff --git a/messente_api/configuration.py b/messente_api/configuration.py index 44ec4fa..5ba7fe9 100644 --- a/messente_api/configuration.py +++ b/messente_api/configuration.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -233,8 +233,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.1\n"\ - "SDK Package Version: 1.0.2".\ + "Version of the API: 1.0.2\n"\ + "SDK Package Version: 1.0.3".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/messente_api/exceptions.py b/messente_api/exceptions.py index 035a1ca..cf945dd 100644 --- a/messente_api/exceptions.py +++ b/messente_api/exceptions.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/__init__.py b/messente_api/models/__init__.py index 9051bca..0d8bc10 100644 --- a/messente_api/models/__init__.py +++ b/messente_api/models/__init__.py @@ -6,7 +6,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/channel.py b/messente_api/models/channel.py index d7b190e..e947371 100644 --- a/messente_api/models/channel.py +++ b/messente_api/models/channel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_envelope.py b/messente_api/models/contact_envelope.py index 35227d2..a04abb5 100644 --- a/messente_api/models/contact_envelope.py +++ b/messente_api/models/contact_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_fields.py b/messente_api/models/contact_fields.py index ff78e4e..0d61b2c 100644 --- a/messente_api/models/contact_fields.py +++ b/messente_api/models/contact_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_list_envelope.py b/messente_api/models/contact_list_envelope.py index 24e021a..cad6e5b 100644 --- a/messente_api/models/contact_list_envelope.py +++ b/messente_api/models/contact_list_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/contact_update_fields.py b/messente_api/models/contact_update_fields.py index 166b4bb..b9eef8e 100644 --- a/messente_api/models/contact_update_fields.py +++ b/messente_api/models/contact_update_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/delivery_report_response.py b/messente_api/models/delivery_report_response.py index da1e0f1..d04bd27 100644 --- a/messente_api/models/delivery_report_response.py +++ b/messente_api/models/delivery_report_response.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/delivery_result.py b/messente_api/models/delivery_result.py index e4b38d3..2308593 100644 --- a/messente_api/models/delivery_result.py +++ b/messente_api/models/delivery_result.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_omnichannel.py b/messente_api/models/error_code_omnichannel.py index aa0e64b..4cc0d76 100644 --- a/messente_api/models/error_code_omnichannel.py +++ b/messente_api/models/error_code_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_omnichannel_machine.py b/messente_api/models/error_code_omnichannel_machine.py index 2c154ab..f23f4ee 100644 --- a/messente_api/models/error_code_omnichannel_machine.py +++ b/messente_api/models/error_code_omnichannel_machine.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_code_phonebook.py b/messente_api/models/error_code_phonebook.py index a29c95b..8fd634c 100644 --- a/messente_api/models/error_code_phonebook.py +++ b/messente_api/models/error_code_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_item_omnichannel.py b/messente_api/models/error_item_omnichannel.py index 8360dc7..96495fe 100644 --- a/messente_api/models/error_item_omnichannel.py +++ b/messente_api/models/error_item_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_item_phonebook.py b/messente_api/models/error_item_phonebook.py index fdeb181..428c483 100644 --- a/messente_api/models/error_item_phonebook.py +++ b/messente_api/models/error_item_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_omnichannel.py b/messente_api/models/error_omnichannel.py index 899311d..b0f709b 100644 --- a/messente_api/models/error_omnichannel.py +++ b/messente_api/models/error_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_phonebook.py b/messente_api/models/error_phonebook.py index d6503b4..35b33a5 100644 --- a/messente_api/models/error_phonebook.py +++ b/messente_api/models/error_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_title_omnichannel.py b/messente_api/models/error_title_omnichannel.py index 469be70..b74590a 100644 --- a/messente_api/models/error_title_omnichannel.py +++ b/messente_api/models/error_title_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/error_title_phonebook.py b/messente_api/models/error_title_phonebook.py index ff2f2c6..9f1b904 100644 --- a/messente_api/models/error_title_phonebook.py +++ b/messente_api/models/error_title_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/fetch_blacklist_success.py b/messente_api/models/fetch_blacklist_success.py index 540b866..25844f2 100644 --- a/messente_api/models/fetch_blacklist_success.py +++ b/messente_api/models/fetch_blacklist_success.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_envelope.py b/messente_api/models/group_envelope.py index 31404d8..2137ad0 100644 --- a/messente_api/models/group_envelope.py +++ b/messente_api/models/group_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_list_envelope.py b/messente_api/models/group_list_envelope.py index b727f91..0c0adff 100644 --- a/messente_api/models/group_list_envelope.py +++ b/messente_api/models/group_list_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_name.py b/messente_api/models/group_name.py index 533e32b..073f4e3 100644 --- a/messente_api/models/group_name.py +++ b/messente_api/models/group_name.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/group_response_fields.py b/messente_api/models/group_response_fields.py index 0a8eaca..9638ecf 100644 --- a/messente_api/models/group_response_fields.py +++ b/messente_api/models/group_response_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/message_result.py b/messente_api/models/message_result.py index 6f8f92c..366b959 100644 --- a/messente_api/models/message_result.py +++ b/messente_api/models/message_result.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/number_to_blacklist.py b/messente_api/models/number_to_blacklist.py index 954a022..3097f8c 100644 --- a/messente_api/models/number_to_blacklist.py +++ b/messente_api/models/number_to_blacklist.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/omni_message_create_success_response.py b/messente_api/models/omni_message_create_success_response.py index f766585..7e02e1e 100644 --- a/messente_api/models/omni_message_create_success_response.py +++ b/messente_api/models/omni_message_create_success_response.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/omnimessage.py b/messente_api/models/omnimessage.py index c841355..0b24c16 100644 --- a/messente_api/models/omnimessage.py +++ b/messente_api/models/omnimessage.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/sms.py b/messente_api/models/sms.py index 7b354dc..20439db 100644 --- a/messente_api/models/sms.py +++ b/messente_api/models/sms.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/status.py b/messente_api/models/status.py index bd24a05..c4ca4fd 100644 --- a/messente_api/models/status.py +++ b/messente_api/models/status.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/text_store.py b/messente_api/models/text_store.py index d12f11c..dbb1bca 100644 --- a/messente_api/models/text_store.py +++ b/messente_api/models/text_store.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/viber.py b/messente_api/models/viber.py index 39de9bf..c1291f7 100644 --- a/messente_api/models/viber.py +++ b/messente_api/models/viber.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app.py b/messente_api/models/whats_app.py index 18f6133..77a453e 100644 --- a/messente_api/models/whats_app.py +++ b/messente_api/models/whats_app.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_audio.py b/messente_api/models/whats_app_audio.py index b279af4..5254bad 100644 --- a/messente_api/models/whats_app_audio.py +++ b/messente_api/models/whats_app_audio.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_document.py b/messente_api/models/whats_app_document.py index 87c51f1..dbac4e6 100644 --- a/messente_api/models/whats_app_document.py +++ b/messente_api/models/whats_app_document.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_image.py b/messente_api/models/whats_app_image.py index c00550c..dbd5eaa 100644 --- a/messente_api/models/whats_app_image.py +++ b/messente_api/models/whats_app_image.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/models/whats_app_text.py b/messente_api/models/whats_app_text.py index 128958d..413e85d 100644 --- a/messente_api/models/whats_app_text.py +++ b/messente_api/models/whats_app_text.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/messente_api/rest.py b/messente_api/rest.py index 77e7aad..01b46ba 100644 --- a/messente_api/rest.py +++ b/messente_api/rest.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index 1c88757..2a01d1b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "messente-api" -VERSION = "1.0.2" +VERSION = "1.0.3" # To install the library, run the following # # python setup.py install diff --git a/test/test_blacklist_api.py b/test/test_blacklist_api.py index cc394ff..a6386e0 100644 --- a/test/test_blacklist_api.py +++ b/test/test_blacklist_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_channel.py b/test/test_channel.py index 2e62af1..31efecf 100644 --- a/test/test_channel.py +++ b/test/test_channel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_contact_envelope.py b/test/test_contact_envelope.py index cf5fce4..67007e5 100644 --- a/test/test_contact_envelope.py +++ b/test/test_contact_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_contact_fields.py b/test/test_contact_fields.py index f2fd59c..0a910ae 100644 --- a/test/test_contact_fields.py +++ b/test/test_contact_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_contact_list_envelope.py b/test/test_contact_list_envelope.py index 9cc5fc0..773a162 100644 --- a/test/test_contact_list_envelope.py +++ b/test/test_contact_list_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_contact_update_fields.py b/test/test_contact_update_fields.py index e313e26..93c9016 100644 --- a/test/test_contact_update_fields.py +++ b/test/test_contact_update_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py index 2e1293c..58d248f 100644 --- a/test/test_contacts_api.py +++ b/test/test_contacts_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delivery_report_api.py b/test/test_delivery_report_api.py index a3558c7..5ccfbf1 100644 --- a/test/test_delivery_report_api.py +++ b/test/test_delivery_report_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delivery_report_response.py b/test/test_delivery_report_response.py index c2faf60..b4c004d 100644 --- a/test/test_delivery_report_response.py +++ b/test/test_delivery_report_response.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delivery_result.py b/test/test_delivery_result.py index 36c339e..2ddc1ad 100644 --- a/test/test_delivery_result.py +++ b/test/test_delivery_result.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_code_omnichannel.py b/test/test_error_code_omnichannel.py index f1db5f5..849f4eb 100644 --- a/test/test_error_code_omnichannel.py +++ b/test/test_error_code_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_code_omnichannel_machine.py b/test/test_error_code_omnichannel_machine.py index 1689313..4d9123d 100644 --- a/test/test_error_code_omnichannel_machine.py +++ b/test/test_error_code_omnichannel_machine.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_code_phonebook.py b/test/test_error_code_phonebook.py index 992ef7f..fb3f7f9 100644 --- a/test/test_error_code_phonebook.py +++ b/test/test_error_code_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_item_omnichannel.py b/test/test_error_item_omnichannel.py index d466877..77519ed 100644 --- a/test/test_error_item_omnichannel.py +++ b/test/test_error_item_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_item_phonebook.py b/test/test_error_item_phonebook.py index 4db6c5e..186766b 100644 --- a/test/test_error_item_phonebook.py +++ b/test/test_error_item_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_omnichannel.py b/test/test_error_omnichannel.py index 922cf72..4618e53 100644 --- a/test/test_error_omnichannel.py +++ b/test/test_error_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_phonebook.py b/test/test_error_phonebook.py index 3ac06e9..05eadd4 100644 --- a/test/test_error_phonebook.py +++ b/test/test_error_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_title_omnichannel.py b/test/test_error_title_omnichannel.py index 2a1b6f5..f89ea7b 100644 --- a/test/test_error_title_omnichannel.py +++ b/test/test_error_title_omnichannel.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_error_title_phonebook.py b/test/test_error_title_phonebook.py index 913f7c4..240cbd7 100644 --- a/test/test_error_title_phonebook.py +++ b/test/test_error_title_phonebook.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_fetch_blacklist_success.py b/test/test_fetch_blacklist_success.py index 5eec063..d2c6931 100644 --- a/test/test_fetch_blacklist_success.py +++ b/test/test_fetch_blacklist_success.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_group_envelope.py b/test/test_group_envelope.py index 774c00e..cb10e1f 100644 --- a/test/test_group_envelope.py +++ b/test/test_group_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_group_list_envelope.py b/test/test_group_list_envelope.py index 960cbbf..3ee156f 100644 --- a/test/test_group_list_envelope.py +++ b/test/test_group_list_envelope.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_group_name.py b/test/test_group_name.py index 00a5fce..94a4e47 100644 --- a/test/test_group_name.py +++ b/test/test_group_name.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_group_response_fields.py b/test/test_group_response_fields.py index ada4c0a..4c53725 100644 --- a/test/test_group_response_fields.py +++ b/test/test_group_response_fields.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_groups_api.py b/test/test_groups_api.py index d772c50..b86ecb2 100644 --- a/test/test_groups_api.py +++ b/test/test_groups_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_message_result.py b/test/test_message_result.py index 743af81..f7d7982 100644 --- a/test/test_message_result.py +++ b/test/test_message_result.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_number_to_blacklist.py b/test/test_number_to_blacklist.py index bf3cbfa..5de59bc 100644 --- a/test/test_number_to_blacklist.py +++ b/test/test_number_to_blacklist.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_omni_message_create_success_response.py b/test/test_omni_message_create_success_response.py index 0366e64..866c84d 100644 --- a/test/test_omni_message_create_success_response.py +++ b/test/test_omni_message_create_success_response.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_omnimessage.py b/test/test_omnimessage.py index 45ec4f0..e88ad2d 100644 --- a/test/test_omnimessage.py +++ b/test/test_omnimessage.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_omnimessage_api.py b/test/test_omnimessage_api.py index a9d2fb3..687b0e3 100644 --- a/test/test_omnimessage_api.py +++ b/test/test_omnimessage_api.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_sms.py b/test/test_sms.py index 96f7073..e9b38eb 100644 --- a/test/test_sms.py +++ b/test/test_sms.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_status.py b/test/test_status.py index 95df560..17c193e 100644 --- a/test/test_status.py +++ b/test/test_status.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_text_store.py b/test/test_text_store.py index 8f23b43..3ef1671 100644 --- a/test/test_text_store.py +++ b/test/test_text_store.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_viber.py b/test/test_viber.py index 1dbcfef..d6befeb 100644 --- a/test/test_viber.py +++ b/test/test_viber.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_whats_app.py b/test/test_whats_app.py index 106cfc1..330137c 100644 --- a/test/test_whats_app.py +++ b/test/test_whats_app.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_whats_app_audio.py b/test/test_whats_app_audio.py index 81eddde..0855246 100644 --- a/test/test_whats_app_audio.py +++ b/test/test_whats_app_audio.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_whats_app_document.py b/test/test_whats_app_document.py index 0e4fb6f..f4def7a 100644 --- a/test/test_whats_app_document.py +++ b/test/test_whats_app_document.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_whats_app_image.py b/test/test_whats_app_image.py index 49c8b6c..664ba9c 100644 --- a/test/test_whats_app_image.py +++ b/test/test_whats_app_image.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_whats_app_text.py b/test/test_whats_app_text.py index 3f3b4b8..50f93c2 100644 --- a/test/test_whats_app_text.py +++ b/test/test_whats_app_text.py @@ -5,7 +5,7 @@ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. 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.0.1 + The version of the OpenAPI document: 1.0.2 Contact: messente@messente.com Generated by: https://openapi-generator.tech """ From 335941d87aede7443d28e557e31a56a2762d9789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Ra=CC=88ni?= Date: Thu, 6 Jun 2019 15:59:59 +0300 Subject: [PATCH 16/16] Set long description type skip ci --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2a01d1b..0afb52f 100644 --- a/setup.py +++ b/setup.py @@ -36,5 +36,6 @@ include_package_data=True, long_description="""\ [Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501 - """ + """, + long_description_content_type="text/markdown" )