My favorites | Sign in
Logo
          

TextMagic offers a quick, cost-effective way to send text messages from any computer. This package provides a simple Python API on top of the TextMagic HTTPS API; which is a web-based interface to the SMS functionality.

Install

Install using easy_install:

easy_install PyTextMagicSMS

OR manually:

Register

Before using the service you need to register at http://www.textmagic.com/ and obtain an API password (different from your login password) at https://www.textmagic.com/app/wt/account/api/cmd/password.

Get Started

Now you are ready to send your first SMS:

client = textmagic.client.TextMagicClient('your_username', 'your_api_password')
result = client.send("Hello, World!", "1234567890")
message_id = result['message_id'].keys()[0]

And you can retrieve the delivery status of the message:

response = client.message_status(message_id)
status = response[message_id]['status']

There is more detail in the UserManual









Hosted by Google Code