A java library for Google URL Shortener
public class Example {
public static void main(String... args) {
GoogleURLShortener shortener = new GoogleURLShortener();
String longUrl = "https://github.com/io-sgr/urlshortener-google";
String shortUrl = shortener.shortenURL("<some_origin>", "<your_api_key>", longUrl);
System.out.println(shortUrl);
}
}