To shorten URLs with the lnk.by service:

We provide a simple querystring feature. Point your application to the following URL:

http://lnk.by/Shorten?

&url = the url you want shortened [required]
&twitterUserName = the username of the twitterUser creating the link. [optional]
&applicationId = the name of your application. [optional]
&format = json [required] Note: new formats will soon be available.


 

For example:

http://www.lnk.by/Shorten?url=http://www.youtube.com/&applicationId=jotoju&usernName=tomnewton&format=json

If successful, this will return only the shortened URL mapped to our contextual short domain. A youtube link will come back as eg. "WACH.IT/abcde"

 

Note: If we don't yet map the domain, protocol, or extension to one of our contextual short domains ( WACH, SEEE, LSTN, READ ) it will return with a generic LNK.BY domain.


To UPLOAD IMAGES to the lnk.by service:

Point your application to the following URL:

http://www.lnk.by/Shorten/Upload

Fields to post in:
(post data should be formatted as multipart/form-data)

media : Binary = image data. [required]
userName = the username of the twitterUser creating the link. [required]
applicationId = the name of your application. [optional]
format = json [required] Note: new formats will soon be available.

Example JSON response :
"{"Success":true,"Validated":true,"RuleViolations":[],"ShortUrl":"SEEE.IT/cE","LongUrl":""}"

You will always receive a SEEE.IT short url in the response from the upload service.