Inspired by the simple tweet to twitter function by Fabian Potencier I have built a stupidly simple url shorter for bit.ly. Something you are probably going to want to do if you are sending tweets via PHP.
function shorten($url, $login, $apikey)
{
$api_url = “http://api.bit.ly/shorten?version=2.0.1&
[...]
Tag Archives: twitter
Simple shorten url using bit.ly and php
November 23, 2009 – 3:10 pm