Google URL Shortener
A java library for Google URL Shortener
How to use
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);
}
}