I wrote an easy to use Bitly client:

https://github.com/specious/bitly-client