it’s already coded on core.php shortenURL function(current version).
just make something like
function top_get_bitly_short_url($url,$login,$appkey,$format=’txt’) {
$connectURL = ‘http://api.bit.ly/v3/shorten?login=’.$login.’&apiKey=’.$appkey.’&uri=’.urlencode($url).’&format=’.$format;
return top_curl_get_result($connectURL);
}
which is on 4.0.10 version.
no change on bit.ly api.
http://api.bit.ly/v3/shorten?format=txt&login=themeisle&apiKey=R_63828fcfb472493582406758bbdbfb7d&longUrl=http://google.com
works fine.
it’s already coded on core.php shortenURL function(current version).
just make something like
function top_get_bitly_short_url($url,$login,$appkey,$format=’txt’) {
$connectURL = ‘http://api.bit.ly/v3/shorten?login=’.$login.’&apiKey=’.$appkey.’&uri=’.urlencode($url).’&format=’.$format;
return top_curl_get_result($connectURL);
}
which is on 4.0.10 version.