url shortening can now be easily added to your applications, just pass on the url, though the api only accepts a URL at this point, and of course features will be added as day passes. and as it is needed.
i created a small PHP function that can show how you can add the service to your applications or blogs.
function get_short_url($url){
$ch = curl_init();
$timeout = 5;
curl_setopt($ch,CURLOPT_URL,’http://edb.in/api.php?url=’.$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
have fun!