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.

The second Payment Services Directive (PSD2) impact: Read the full report.


Bartlomiej Kurek

Software engineer




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

Email again:

Further reading

How we do it: Supporting a culture of growth

14 Nov 2017

Recently, I’ve had several discussions about company culture. And here’s a common question: How do you build a...

Lauri Kinkar

2 min read

This is an opportunity. Take advantage of it.

07 Nov 2017

In today’s world, it feels like the technology changes faster than we can keep up. As technology becomes...

Raili Liiva

2 min read

Scrub customer databases and make SMS more effective

31 Oct 2017

It’s often that we are asked, “what is your average delivery rate in (fill in the blank) country?”...

Margus Sütt

2 min read

Startup Conferences: What’s the point? (Slush 2017)

25 Oct 2017

With Slush coming up in about a month, it’s a good time ponder the purpose of...

Yuriy Mikitchenko

2 min read