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.

What's SMS service quality?


Bartlomiej Kurek

Software engineer




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

Email again:

Further reading

A note on keeping things real

17 Apr 2018

Over the years, I've had the good fortune of talking to and doing business with many entrepreneurs and...

Lauri Kinkar

2 min read

Next-generation Omnichannel API is well underway

10 Apr 2018

Over the last few months we’ve been setting the direction of our Omnichannel messaging API and our development...

Uku Loskit

2 min read

You're protected from the pitfalls of grey routes

03 Apr 2018

“Grey routes” is a loosely used term in the telecommunications industry. Frankly, the industry-specific meaning of grey routes...

Joosep Pintsaar

2 min read

Announcing preliminary plans for the Dashboard!

27 Mar 2018

Our development team is always hunkered down, working on our APIs to create better communication and verification products...

Jaanus Rõõmus

2 min read