|
Project Information
Members
Links
|
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. InstallInstall using easy_install: easy_install PyTextMagicSMS OR manually:
python setup.py install
RegisterBefore 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 StartedNow 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 UserManual SMS Gateway Affiliate Programme For DevelopersHere’s what you’ll get: |