This is a dead simple client for interacting with various URL shortening services. Supported services: bit.ly and goo.gl. Diwaker Gupta originally wrote urlshortener at Maginatics.
Usage:
UrlShortener shortener = UrlShorteners.bitlyUrlShortener(bitlyAccessToken);
// Or googleUrlShortener(googleApiKey)
URL shortUrl = shortener.shorten(longUrl);
That's it!
urlshortener is available via Maven Central:
<dependency>
<groupId>com.maginatics</groupId>
<artifactId>urlshortener</artifactId>
<version>0.3.0</version>
</dependency>
Copyright (C) 2013-2014 Maginatics, Inc.
Licensed under the Apache License, Version 2.0