Skip to content

Commit ae459ea

Browse files
author
Erik Räni
authored
🎉 1.3.0 (#9)
#9: **Added Functionality** - [phonebook-api][contacts] Add scheduled deletion date to response - The date (in ISO 8601 format, YYYY-MM-DD) on which the contact is going to be deleted because it has not belonged to a group for 30 days - [statistics-api] Allow fetching Telegram statistics **Bug Fixes** - [omnichannel-api] Declare error item source nullable - [omnichannel-api] Make cancelling a message return an empty object
1 parent 8cf4e46 commit ae459ea

Some content is hidden

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

67 files changed

+113
-86
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

3-
- Messente API version: 1.2.0
4-
- Python package version: 1.2.2
3+
- Messente API version: 1.3.0
4+
- Python package version: 1.3.0
55

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

docs/ContactFields.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**custom2** | **str** | The second custom field | [optional]
1515
**custom3** | **str** | The third custom field | [optional]
1616
**custom4** | **str** | The fourth custom field | [optional]
17+
**scheduled_deletion_date** | **date** | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [optional]
1718

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

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ configuration = messente_api.Configuration(
127127
with messente_api.ApiClient(configuration) as api_client:
128128
# Create an instance of the API class
129129
api_instance = messente_api.ContactsApi(api_client)
130-
contact_fields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields |
130+
contact_fields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"} # ContactFields |
131131

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

580580
try:
581581
# Updates a contact

docs/OmnimessageApi.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **cancel_scheduled_message**
12-
> cancel_scheduled_message(omnimessage_id)
12+
> object cancel_scheduled_message(omnimessage_id)
1313
1414
Cancels a scheduled Omnimessage
1515

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

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

6162
### Return type
6263

63-
void (empty response body)
64+
**object**
6465

6566
### Authorization
6667

docs/StatisticsReportSettings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**start_date** | **date** | Start date for the report |
88
**end_date** | **date** | End date for the report |
9-
**message_types** | **list[str]** | Optional list of message types (sms, viber, whatsapp, hlr) | [optional]
9+
**message_types** | **list[str]** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [optional]
1010

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

messente_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
99
10-
The version of the OpenAPI document: 1.2.0
10+
The version of the OpenAPI document: 1.3.0
1111
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.2.2"
18+
__version__ = "1.3.0"
1919

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi

messente_api/api/blacklist_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
77
8-
The version of the OpenAPI document: 1.2.0
8+
The version of the OpenAPI document: 1.3.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""

messente_api/api/contacts_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
77
8-
The version of the OpenAPI document: 1.2.0
8+
The version of the OpenAPI document: 1.3.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""

messente_api/api/delivery_report_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
77
8-
The version of the OpenAPI document: 1.2.0
8+
The version of the OpenAPI document: 1.3.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""

messente_api/api/groups_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
77
8-
The version of the OpenAPI document: 1.2.0
8+
The version of the OpenAPI document: 1.3.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""

0 commit comments

Comments
 (0)