Messente avatar logo

Messente API official python library

Bartlomiej Kurek

30 Nov 2016 -

5 min read

Bartlomiej Kurek

30 Nov 2016

-

2 min read

Our collection of API libraries now include official Python language support.
Among the official and community contributed development tools Messente now provides official messente-python library compatible with both Python2 and Python3.

The library is distributed via PyPI and can be installed simply with:
pip install messente-python

messente-python is open-source and resides on GitHub.

Currently supported Messente services are:
To see it in action, let's take a simple example of sending sms:
import messente

api = messente.Messente(
    username="api_user",
    password="api_password"
)

response = api.sms.send({
    "to": "+372123456789",
    "from": "Server 2",
    "text": "Nginx restared at 10:32"
})

if response.is_ok():
    print("SMS Sent, id", response.get_sms_id())
else:
    print("Could not send SMS", response.get_full_error_msg())
Every API call returns a response object that provides utility methods for checking the status, error codes, obtaining the result of a performed action and translating the errors into meaningful messages.

For full documentation please visit GitHub page.
It's also worth mentioning that messente-python library comes with a list of example programs demonstrating the use of all the supported API calls.

Whitepaper: Impact of Two-Factor Authentication on data breaches


Bartlomiej Kurek

Software engineer




We're here to help you connect with your customers. Let's start talking.

Email again:

Further reading

Consider this in the bidding process - Part 2

16 Jan 2018

Continuing last week’s discussion around things that companies must consider when selecting a global SMS messaging...

Marcus Kallavus

2 min read

Consider this in the bidding process - Part 1

09 Jan 2018

Selecting an SMS provider from a pool of many can be daunting task. What should be considered when...

Marcus Kallavus

2 min read

Personalized support and why there is no way around it

02 Jan 2018

We often see client support packaged into software products, whether it includes general support tickets, to live chat,...

Uku Tomikas

2 min read

SMS boosts CRM services and it can't be overlooked

19 Dec 2017

SMS messaging has become an expected feature in customer engagement platforms, which involves communicating information to people. Even...

Marcus Kallavus

2 min read