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

Your sales lab time is scarce

20 Jun 2017

In the series about sales research, I touched upon allocating about 30% of your research time on finding new ideas and possibilities around sales tactics. But how do you actually do it and what do you look for?

Uku Tomikas

Uku Tomikas

An open letter to financial institutions from Yuriy

09 Jun 2017

To the bank, credit card company, and investment firm I work with: I trust you. I really do.

If I didn’t, I wouldn’t put my hard-earned money in your hands. While I’m not a Certified Financial Analyst, I am financially savvy, so I understand that we have a mutually beneficial relationship. From a high-level, banks use the money I deposit to sell loans and invest in other financial instruments. Credit card companies make money on interest charges, other fees, and transaction fees from merchants. The brokerage firm makes money through fees on my account. On the other hand, all I expect is that you are honest about your services, provide returns, and keep my money safe.

Yuriy Mikitchenko

Yuriy Mikitchenko

Centralizing SMS operations and why you should consider it

07 Jun 2017

Centralization /(sɛntrəlʌɪˈzeɪʃ(ə)n/ noun - the action or process of bringing activities together in one place.

In the era of globalization and communication through technology, businesses no longer have borders and it's very common for companies to offer services from Germany to Zimbabwe, in multiple markets, and different continents. However, offering services in multiple countries leads to cooperating with a longer, more complicated list of partners.

Kaur Virunurm

Kaur Virunurm

Start sending messages to

for € N/A

Contact us