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

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

Messente meets Zapier

17 Mar 2017

Good news, we’ve launched an integration with Zapier
Joosep Merelaht

Joosep Merelaht

Digging for Gold

21 Feb 2017

What to look for in sales research
Uku Tomikas

Uku Tomikas

Start sending messages to

for € N/A

Contact us