Python Wrapper for Textbelt SMS API.
Python
Latest commit f25e7b2 Jan 16, 2017 @ksdme Fixed Typo in examples
Permalink
Failed to load latest commit information.
example Fixed Typo in examples Jan 16, 2017
src Fixed Typo's Oct 28, 2016
LICENSE Initial commit Oct 23, 2016
README.md Update README.md Dec 4, 2016

README.md

Py-Textbelt

Python Wrapper for Textbelt SMS API.

Installation

This module is not currently available on any package index, So just clone this repo and do import pytextbelt.

Usage

Example:

from pytextbelt import Textbelt

Recipient = Textbelt.Recipient("1122334455", "us")
reponse = Recipient.send("Hello World!")
reponse = Recipient.send("Its me, The Bot.")

The construcor of Recipient Class: def __init__(self, phone, region="us", tag = None), tag here helps maintain custom meta information on the Recipient object.

Available Properties:
  • Recipient.phone
  • Recipient.region
  • Recipient.tag
Supported Regions:
  • us (Defaulted)
  • ca (Canada)
  • intl (International)