Python SDK
Official Python client for the Instasent Transactional API. Install via pip, instantiate the client with your api_sms token, and call send_sms.
Minimal client over the Transactional HTTP endpoints. Anything beyond the methods below is a plain REST call — the Reference covers the whole surface.
Installation
Via pip
pip install instasentFrom source
python setup.py installSend an SMS
import os
import instasent
client = instasent.Client(os.environ["INSTASENT_TOKEN"])
response = client.send_sms("My company", "+34666666666", "test message")
print(response["response_code"])
print(response["response_body"])Available methods
client.send_sms(sender, to, text)
client.get_sms(page, per_page)
client.get_sms_by_id(message_id)Getting help
For help installing or using the library, contact support@instasent.com. Bugs and feature requests belong on the GitHub repository.