Messente avatar logo

Messente API official python library

- 5 MIN READ - 30 Nov 2016

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.

Bartlomiej Kurek

Bartlomiej Kurek - Software engineer

Underlying reasons for trends in SMS traffic

25 Apr 2017

In a recent article (it's in Estonian, but you'll get the gist of it in this blog,) Tele2 - a local mobile network operator in the Baltics - highlighted a few interesting trends about the growth or decline of certain types of messaging traffic.

Lauri Kinkar

Lauri Kinkar

Underlying drivers of GLobal SMS traffic

25 Apr 2017

In a recent article (it's in Estonian, but you'll get the gist of it in this blog,) Tele2 - a local mobile network operator in the Baltics - highlighted a few interesting trends about the growth and decline of certain types of SMS messaging traffic.

Lauri Kinkar

Lauri Kinkar

Digging for gold part 2

22 Mar 2017

This is a continuation from the previous article and focuses on the methods of research and how to find leads.
Uku Tomikas

Uku Tomikas

Start sending messages to

for € N/A

Contact us