/urlshortener-google

Primary LanguageJavaApache License 2.0Apache-2.0

Google URL Shortener

Build Statuscodecov

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);
    }
    
}