Twishort API
Method: Get Text
Method: Post Text
Method: Post And Tweet
Get Text
Address: http://api.twishort.com/
HTTP methods: GET, POST
Parameters:
action: get
url: part of the tweet url after slash (ex. abcde for the tweet http://twishort.com/abcde/)
format: xml or json
Or you can use simple format:
http://api.twishort.com/<identificator>.<format>
(Example:
http://api.twishort.com/aaaaa.xml
or
http://api.twishort.com/aaaaa.json).
Sample XML response:
<?xml version="1.0" encoding="UTF-8"?>
<tweet>
<url>abcde</url>
<created_at>1234567890</created_at>
<reply_to>edcba</reply_to>
<text>long text</text>
</tweet>
Sample JSON response:
"tweet": {
"url": "abcde",
"created_at": "1234567890",
"reply_to": "edcba",
"text": "long text"
}
Post Text
Address: http://api.twishort.com/
HTTP methods: GET, POST
Parameters for basic authorization:
action: send
username: Twitter username
password: Twitter password
text: long text
in_reply_to (optional): identificator of long tweet on twishort (ex. abcde)
via (optional): name of the client
via_link (optional): site of the client (ex. http://twishort.com)
format: xml or json
Parameters for OAuth authorization:
action: send
consumer_key: Your Twitter Consumer Key.
consumer_secret: Your Twitter Consumer Secret.
oauth_token: The Twitter OAuth Token for the user.
oauth_secret: The Twitter OAuth Secret for the user.
text: long text
in_reply_to (optional): identificator of long tweet on twishort (ex. abcde)
via (optional): name of the client
via_link (optional): site of the client (ex. http://twishort.com)
format: xml or json
Sample XML response:
<?xml version="1.0" encoding="UTF-8"?>
<tweet>
<url>abcde</url>
<created_at>1234567890</created_at>
<reply_to>edcba</reply_to>
<text>long text</text>
</tweet>
Sample JSON response:
"tweet": {
"url": "abcde",
"created_at": "1234567890",
"reply_to": "edcba",
"text": "long text"
}
Post And Tweet
Address: http://api.twishort.com/
HTTP methods: GET, POST
Parameters for basic authorization:
action: send-and-tweet
username: Twitter username
password: Twitter password
text: long text
twitter_text (optional): text to Twitter (up to 140 characters)
in_reply_to (optional): identificator of long tweet on twishort (ex. abcde)
via (optional): name of the client
via_link (optional): site of the client (ex. http://twishort.com)
format: xml or json
Parameters for OAuth authorization:
action: send-and-tweet
consumer_key: Your Twitter Consumer Key.
consumer_secret: Your Twitter Consumer Secret.
oauth_token: The Twitter OAuth Token for the user.
oauth_secret: The Twitter OAuth Secret for the user.
text: long text
twitter_text (optional): text to Twitter (up to 140 characters)
in_reply_to (optional): identificator of long tweet on twishort (ex. abcde)
via (optional): name of the client
via_link (optional): site of the client (ex. http://twishort.com)
format: xml or json
Sample XML response:
<?xml version="1.0" encoding="UTF-8"?>
<tweet>
<url>abcde</url>
<created_at>1234567890</created_at>
<reply_to>edcba</reply_to>
<text>long text</text>
</tweet>
Sample JSON response:
"tweet": {
"url": "abcde",
"created_at": "1234567890",
"reply_to": "edcba",
"text": "long text"
}
Errors
In the case of error response will be error text.
Example:
wrong username or password
or:
wrong oauth data
Support
Please report any problems/bugs you encounter to support@twishort.com.