Skip to content

vlado-markovic/textmagic-rest-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About TextMagic Python API

The TextMagic Python API includes classes and methods for accessing the functionality of the TextMagic REST API.

Installing

The easiest way to install the TextMagic Python API is via pip:

pip install textmagic

You can also install the package manually:

git clone git@github.com:textmagic/textmagic-rest-python.git
cd textmagic-python
python setup.py install

Usage

The first thing to do is create a TextmagicRestClient object:

from textmagic.rest import TextmagicRestClient
client = TextmagicRestClient("username", "API key")

You will, of course, need to provide your own username and API key.

To send an SMS message:

client.messages.create(phones="comma-separated list of phone numbers", text="message text")

You can send to multiple phone numbers by separating them by a comma.

Building the Documentation

Sphinx document is provided in the doc directory. Building the documentation is as simple as runing make html, make latexpdf, etc. If you are are using virtualenv, you may need to tweak the make file to use sphinx-build from your virtualenv. Alternatively, you could use sphinx-build directly.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%