TweetLink

Perform API requests for tweet links

The easiest way to explain the API is via a concrete example:

Request

http://tweetlink.abiro.com/api.php

Arguments

URL-encoded GET or POST:

mandatory

optional

Responses

JSON-encoded:

success

{
    "code":0,
    "status":"OK",
    "message":"I'm testing the API http://goo.gl/vLj8jH",
    "linklong":"https://twitter.com/intent/tweet?text=I%27m%20testing%20the%20API%20
        http%3A%2F%2Fgoo.gl%2FvLj8jH&url=&source=TweetLink%20by%20Abiro",
    "linkshort":"http://goo.gl/7eMgZD",
    "shortened":["http://goo.gl/vLj8jH"]
}

linkshort is what you have most use for, that encapsulates the complete tweet intent together with the message.

shortened contains the shortened versions of the links in the message for easy reference, e.g. for analysis.

failure

{
    "code":code,
    "status":"status"
}

Status

Please contact us if you have suggestions for improvements or want to discuss a business opportunity.