api

We offer a simple http API to check your status and turn your TwitSMS service on or off. Here are the URLs:

URLPurpose
http://www.twitsms.com.au/twitsms/user/statusCheck your status.
http://www.twitsms.com.au/twitsms/user/onTurn your TwitSMS service on.
http://www.twitsms.com.au/twitsms/user/offTurn your TwitSMS service off.

You must POST your username and password to the URL to get a response. The response is JSON. A sample response is below:

{"sending":"on","credits":67,"dms":"All","replies":"None","tweets":"5 friends"}

Response Description

sending:on or off
credits:the number of credits remaining on your account. 1 credit = 1 SMS
dms:The number of friends you are receiving direct messages from. 'All', 'None', or 'X friends'.
replies:The number of friends you are receiving @replies from. 'All', 'None', or 'X friends'.
tweets:The number of friends you are receiving tweets from. 'All', 'None', or 'X friends'.

An invalid username / password combination will return a http 403 (Not Authorized) error

Example

An Example usage using Curl would be:
curl http://www.twitsms.com.au/twitsms/user/status -d "username=twitsmsco&password=mysecret"

Feel free to DM us on twitter (@twitsmsco) with any feedback, or email us at support@twitsms.com.au.

Try it now - get your first 5 messages free!