Sjoerd Maessen blog

PHP and webdevelopment

Archive for the ‘bitly’ tag

Using the BitLy API to shorten urls

without comments

I was asked to place Twitter messages with product links when new products were added to a webshop. I’ve used my own Twitter class for posting the first test Tweet then I went looking for a shorten url a service to shorten the product links.

There are many url shorten services available on the internet, one of these services is Bitly.
The reasons why I’ve chosen Bitly:
– Urls don’t expire after a period of time.
– Bitly provides a click url summary (although Google Analytics can be used for this instead)
– Urls are short in length so i could use the remaining Tweet length for a small product description.
– And more important, they provide an easy to use API.
– Authentication does not require a password, we can use our API key instead.
Read the rest of this entry »

Written by Sjoerd Maessen

December 4th, 2009 at 5:05 pm

Posted in API

Tagged with ,