Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ coverage.xml
*,cover
.hypothesis/
venv/
.venv/
.python-version
.pytest_cache

# Translations
*.mo
Expand Down
33 changes: 33 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ref: https://docs.gitlab.com/ee/ci/README.html

stages:
- test

.nosetest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=messente_api

nosetest-2.7:
extends: .nosetest
image: python:2.7-alpine
nosetest-3.3:
extends: .nosetest
image: python:3.3-alpine
nosetest-3.4:
extends: .nosetest
image: python:3.4-alpine
nosetest-3.5:
extends: .nosetest
image: python:3.5-alpine
nosetest-3.6:
extends: .nosetest
image: python:3.6-alpine
nosetest-3.7:
extends: .nosetest
image: python:3.7-alpine
nosetest-3.8:
extends: .nosetest
image: python:3.8-alpine
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.3
4.3.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Messente API Library

- Messente API version: 1.2.0
- Python package version: 1.2.0
- Python package version: 1.2.1

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

Expand Down
84 changes: 48 additions & 36 deletions docs/BlacklistApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ configuration.password = 'YOUR_PASSWORD'

# Defining host is optional and default to https://api.messente.com/v1
configuration.host = "https://api.messente.com/v1"
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
number_to_blacklist = {"phoneNumber":"+37251000000"} # 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)

# Enter a context with an instance of the API client
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(api_client)
number_to_blacklist = {"phoneNumber":"+37251000000"} # 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
Expand Down Expand Up @@ -93,15 +96,18 @@ configuration.password = 'YOUR_PASSWORD'

# Defining host is optional and default to https://api.messente.com/v1
configuration.host = "https://api.messente.com/v1"
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
phone = '+37251000000' # 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)

# Enter a context with an instance of the API client
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(api_client)
phone = '+37251000000' # 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
Expand Down Expand Up @@ -155,15 +161,18 @@ configuration.password = 'YOUR_PASSWORD'

# Defining host is optional and default to https://api.messente.com/v1
configuration.host = "https://api.messente.com/v1"
# 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)

# Enter a context with an instance of the API client
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(api_client)

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
Expand Down Expand Up @@ -212,15 +221,18 @@ configuration.password = 'YOUR_PASSWORD'

# Defining host is optional and default to https://api.messente.com/v1
configuration.host = "https://api.messente.com/v1"
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(messente_api.ApiClient(configuration))
phone = '+37251000000' # 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)

# Enter a context with an instance of the API client
with messente_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = messente_api.BlacklistApi(api_client)
phone = '+37251000000' # 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
Expand Down
1 change: 1 addition & 0 deletions docs/Channel.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Channel

Defines the delivery channel
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
1 change: 1 addition & 0 deletions docs/ContactEnvelope.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ContactEnvelope

A container for a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
1 change: 1 addition & 0 deletions docs/ContactFields.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ContactFields

A container for fields of a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
1 change: 1 addition & 0 deletions docs/ContactListEnvelope.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ContactListEnvelope

A container for contacts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
1 change: 1 addition & 0 deletions docs/ContactUpdateFields.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ContactUpdateFields

A container for fields of a contact
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
Expand Down
Loading