using bitly API for url shortening and other functions