I created a very early lib for getting a shortened URL using Google's URL shortener. Can be found here
— Setok