In order to use Twiffo APIs you must first request a key by emailing to contact@twiffo.com. In your email, please include a description of how you intend to use Twiffo API.
Use this method to post a message to Twiffo.
http://twiffo.com/api/post
POST
xml
X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.xml
X-Verify-Credentials-Authorization:
OAuth realm="http://api.twitter.com/",
oauth_consumer_key="",
oauth_signature_method="HMAC-SHA1",
oauth_token="",
oauth_timestamp="",
oauth_nonce="",
oauth_version="1.0",
oauth_signature=""
key (Required): Your API Key.
content (Required): Message content to post. (Max 14000 characters)
<?xml version="1.0" encoding="UTF-8"?> <rsp status="ok"> <user_id>86702763</user_id> <msg_code>6c</msg_code> <msg_link>http://twiffo.com/6c</msg_link> <short_text>Twiffo is a simple free service that allow you to post more than 140 characters to Twitter. Tell your friends about</short_text> <full_text>Twiffo is a simple free service that allow you to post more than 140 characters to Twitter. Tell your friends about us and start sharing more on Twitter.</full_text> <post_text>Twiffo is a simple free service that allow you to post more than 140 characters to Twitter. Tell your friends about... http://twiffo.com/6c</post_text> </rsp>
Return a message specified by the code parameter.
http://twiffo.com/api/get/code
GET
xml
code - The alphanumeric code for the message. The code is case-sensitve.
<?xml version="1.0" encoding="UTF-8"?> <rsp status="ok"> <user_id>86702763</user_id> <msg_code>6f</msg_code> <msg_link>http://twiffo.com/6f</msg_link> </rsp>
Below are the error codes and their description.
1001 - Missing/Invalid parameters.
1002 - Invalid Twiffo API key.
1003 - Authorization failed.
1004 - Internal error.
1005 - Maximum of 2000 posts for this user within 24 hours reached.
1006 - Post content is empty.
1007 - Post content exceeded maximum limit of 14000 characters.
1008 - Message not found.
<?xml version="1.0" encoding="UTF-8"?> <rsp status="fail"> <err code="1001">Missing/Invalid parameters</err> </rsp>