api
We offer a simple http API to check your status and turn your TwitSMS service on or off. Here are the URLs:
| URL | Purpose |
|---|---|
| http://www.twitsms.com.au/twitsms/user/status | Check your status. |
| http://www.twitsms.com.au/twitsms/user/on | Turn your TwitSMS service on. |
| http://www.twitsms.com.au/twitsms/user/off | Turn 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.
