Welcome to TextMarks Lite - free ad-supported text messaging platform. Visit our main site for ad-free service. Free trial available!

Mobilize your world
Home
Tour
Buzz
Developers Center
Help
Python

API V2 Python Client

TextMarks provides a Python library to integrate with the V2 HTTP API. This allows your apps to easily make calls into the TextMarks API. There are also other easier (less technical) ways to send and receive text messages from and to your apps without using this API.

 

Client Library

View | Download (textmarks_v2api_client.py - ~8 KB)

Support Files (required ONLY for Python 2.5 or older)

simplejson (JSON support for Python 2.5 or older)

 

Example Code - Invite a user to join a TextMark group

import textmarks_v2api_client

# Invite a user to join a TextMark group:
my_api_key = 'MyAPIKEY_12345678'
keyword    = 'MYKEYWORD'
phone      = '4155551212'
tmapi = textmarks_v2api_client.Client(api_key=my_api_key)
tmapi.rpc_json('Anybody', 'invite_to_group', {
    'tm': keyword,
    'user': phone
    })
 
 
Service available on the following wireless networks: AT&T, Verizon Wireless, Sprint, T-Mobile, Virgin, Cricket, Alltel.
v2.68e-BETA  -  Copyright © 2008 TextMarks Inc. All rights reserved.