Skip to content

Commit ae05971

Browse files
author
Erik Räni
authored
1.0.1 (#1)
1 parent edc172e commit ae05971

File tree

93 files changed

+501
-202
lines changed

Some content is hidden

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

93 files changed

+501
-202
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0-beta2
1+
4.0.0

.travis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# ref: https://docs.travis-ci.com/user/languages/python
21
language: python
3-
python:
4-
- "2.7"
5-
- "3.2"
6-
- "3.3"
7-
- "3.4"
8-
- "3.5"
9-
#- "3.5-dev" # 3.5 development branch
10-
#- "nightly" # points to the latest development branch e.g. 3.6-dev
11-
# command to install dependencies
12-
install: "pip install -r requirements.txt"
13-
# command to run tests
14-
script: nosetests
2+
3+
script:
4+
- echo "skipping tests"
5+
6+
deploy:
7+
provider: pypi
8+
user: messente
9+
password:
10+
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=
11+
on:
12+
tags: true

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.0.0
4-
- Python package version: 1.0.0
3+
- Messente API version: 1.0.1
4+
- Python package version: 1.0.1
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

docs/Omnimessage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
**to** | **str** | Phone number in e.164 format |
77
**messages** | [**list[OneOfViberSMSWhatsApp]**](OneOfViberSMSWhatsApp.md) | |
88
**dlr_url** | **str** | URL where the delivery report will be sent | [optional]
9-
**time_to_send** | **datetime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the 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]
9+
**text_store** | [**TextStore**](TextStore.md) | | [optional]
10+
**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]
1011

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

docs/SMS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**text** | **str** | Text content of the SMS | [default to 'Hello world!']
6+
**text** | **str** | Text content of the SMS |
77
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
8-
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] [default to 360]
8+
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
99
**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]
1010
**udh** | **str** | hex-encoded string containing SMS UDH | [optional]
1111
**channel** | **str** | | [optional] [default to 'sms']

docs/TextStore.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# TextStore
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/Viber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
7-
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] [default to 360]
7+
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
88
**text** | **str** | Plaintext content for Viber | [optional]
99
**image_url** | **str** | URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional]
1010
**button_url** | **str** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]

docs/WhatsApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**sender** | **str** | Phone number or alphanumeric sender name | [optional]
7-
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] [default to 360]
7+
**validity** | **int** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
88
**text** | [**WhatsAppText**](WhatsAppText.md) | | [optional]
99
**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
1010
**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]

messente_api/__init__.py

Lines changed: 9 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. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
99
10-
OpenAPI spec version: 1.0.0
10+
The version of the OpenAPI document: 1.0.1
1111
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "1.0.0"
18+
__version__ = "1.0.1"
1919

2020
# import apis into sdk package
2121
from messente_api.api.blacklist_api import BlacklistApi
@@ -27,6 +27,11 @@
2727
# import ApiClient
2828
from messente_api.api_client import ApiClient
2929
from messente_api.configuration import Configuration
30+
from messente_api.exceptions import OpenApiException
31+
from messente_api.exceptions import ApiTypeError
32+
from messente_api.exceptions import ApiValueError
33+
from messente_api.exceptions import ApiKeyError
34+
from messente_api.exceptions import ApiException
3035
# import models into sdk package
3136
from messente_api.models.channel import Channel
3237
from messente_api.models.contact_envelope import ContactEnvelope
@@ -55,9 +60,11 @@
5560
from messente_api.models.omnimessage import Omnimessage
5661
from messente_api.models.sms import SMS
5762
from messente_api.models.status import Status
63+
from messente_api.models.text_store import TextStore
5864
from messente_api.models.viber import Viber
5965
from messente_api.models.whats_app import WhatsApp
6066
from messente_api.models.whats_app_audio import WhatsAppAudio
6167
from messente_api.models.whats_app_document import WhatsAppDocument
6268
from messente_api.models.whats_app_image import WhatsAppImage
6369
from messente_api.models.whats_app_text import WhatsAppText
70+

messente_api/api/blacklist_api.py

Lines changed: 12 additions & 8 deletions
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. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world. # noqa: E501
77
8-
OpenAPI spec version: 1.0.0
8+
The version of the OpenAPI document: 1.0.1
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -19,6 +19,10 @@
1919
import six
2020

2121
from messente_api.api_client import ApiClient
22+
from messente_api.exceptions import (
23+
ApiTypeError,
24+
ApiValueError
25+
)
2226

2327

2428
class BlacklistApi(object):
@@ -79,7 +83,7 @@ def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noq
7983

8084
for key, val in six.iteritems(local_var_params['kwargs']):
8185
if key not in all_params:
82-
raise TypeError(
86+
raise ApiTypeError(
8387
"Got an unexpected keyword argument '%s'"
8488
" to method add_to_blacklist" % key
8589
)
@@ -88,7 +92,7 @@ def add_to_blacklist_with_http_info(self, number_to_blacklist, **kwargs): # noq
8892
# verify the required parameter 'number_to_blacklist' is set
8993
if ('number_to_blacklist' not in local_var_params or
9094
local_var_params['number_to_blacklist'] is None):
91-
raise ValueError("Missing the required parameter `number_to_blacklist` when calling `add_to_blacklist`") # noqa: E501
95+
raise ApiValueError("Missing the required parameter `number_to_blacklist` when calling `add_to_blacklist`") # noqa: E501
9296

9397
collection_formats = {}
9498

@@ -177,7 +181,7 @@ def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501
177181

178182
for key, val in six.iteritems(local_var_params['kwargs']):
179183
if key not in all_params:
180-
raise TypeError(
184+
raise ApiTypeError(
181185
"Got an unexpected keyword argument '%s'"
182186
" to method delete_from_blacklist" % key
183187
)
@@ -186,7 +190,7 @@ def delete_from_blacklist_with_http_info(self, phone, **kwargs): # noqa: E501
186190
# verify the required parameter 'phone' is set
187191
if ('phone' not in local_var_params or
188192
local_var_params['phone'] is None):
189-
raise ValueError("Missing the required parameter `phone` when calling `delete_from_blacklist`") # noqa: E501
193+
raise ApiValueError("Missing the required parameter `phone` when calling `delete_from_blacklist`") # noqa: E501
190194

191195
collection_formats = {}
192196

@@ -269,7 +273,7 @@ def fetch_blacklist_with_http_info(self, **kwargs): # noqa: E501
269273

270274
for key, val in six.iteritems(local_var_params['kwargs']):
271275
if key not in all_params:
272-
raise TypeError(
276+
raise ApiTypeError(
273277
"Got an unexpected keyword argument '%s'"
274278
" to method fetch_blacklist" % key
275279
)
@@ -357,7 +361,7 @@ def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501
357361

358362
for key, val in six.iteritems(local_var_params['kwargs']):
359363
if key not in all_params:
360-
raise TypeError(
364+
raise ApiTypeError(
361365
"Got an unexpected keyword argument '%s'"
362366
" to method is_blacklisted" % key
363367
)
@@ -366,7 +370,7 @@ def is_blacklisted_with_http_info(self, phone, **kwargs): # noqa: E501
366370
# verify the required parameter 'phone' is set
367371
if ('phone' not in local_var_params or
368372
local_var_params['phone'] is None):
369-
raise ValueError("Missing the required parameter `phone` when calling `is_blacklisted`") # noqa: E501
373+
raise ApiValueError("Missing the required parameter `phone` when calling `is_blacklisted`") # noqa: E501
370374

371375
collection_formats = {}
372376

0 commit comments

Comments
 (0)