Skip to content

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.

License

Notifications You must be signed in to change notification settings

dfstrauss/textmagic-sms-api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

python setup.py install

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:

import textmagic.client
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 User Manual

Here’s what you’ll get:

  • A 10% share of the lifetime value of the customer. If a customer spends £5,000 on SMS credit during his or her membership of TextMagic, you’ll earn £500.
  • Bonus: we’ll pay you a £15 flat fee for each new paying customer referral. You’ll still get your 10% revenue share from their initial order, too.
  • About

    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.

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages