a URL shortening service

You can either use a browser to connect to this service from the home page or you can connect through the API programmatically.

API: minimize a long URL programmatically

POST: http://hap.ly/miniurl?format=[xml or json]
HEADER: Content-Type: application/x-www-form-urlencoded
BODY: url=[long url]

RESULT in XML:
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ErrorCode>0</ErrorCode> <Message>SUCCESS</Message> <Data xsi:type="ResultData"> <Key>miniurl</Key> <Value>http://hap.ly/1q</Value> </Data> </Result> RESULT in JSON:
{"ErrorCode":0,"Message":"SUCCESS","Data":{"Key":"miniurl","Value":"http://hap.ly/1q"}}