Google URL Shortener

A java library for Google URL Shortener

License

License

GroupId

GroupId

io.sgr
ArtifactId

ArtifactId

urlshortener-google
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Google URL Shortener
A java library for Google URL Shortener
Project URL

Project URL

https://github.com/io-sgr/urlshortener-google
Source Code Management

Source Code Management

https://github.com/io-sgr/urlshortener-google

Download urlshortener-google

How to add to project

<!-- https://jarcasting.com/artifacts/io.sgr/urlshortener-google/ -->
<dependency>
    <groupId>io.sgr</groupId>
    <artifactId>urlshortener-google</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.sgr/urlshortener-google/
implementation 'io.sgr:urlshortener-google:1.0.1'
// https://jarcasting.com/artifacts/io.sgr/urlshortener-google/
implementation ("io.sgr:urlshortener-google:1.0.1")
'io.sgr:urlshortener-google:jar:1.0.1'
<dependency org="io.sgr" name="urlshortener-google" rev="1.0.1">
  <artifact name="urlshortener-google" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.sgr', module='urlshortener-google', version='1.0.1')
)
libraryDependencies += "io.sgr" % "urlshortener-google" % "1.0.1"
[io.sgr/urlshortener-google "1.0.1"]

Dependencies

compile (7)

Group / Artifact Type Version
com.squareup.retrofit2 : retrofit jar
com.squareup.retrofit2 : converter-jackson jar
com.squareup.okhttp3 : okhttp jar
com.fasterxml.jackson.core : jackson-core jar
com.fasterxml.jackson.core : jackson-annotations jar
com.fasterxml.jackson.core : jackson-databind jar
org.slf4j : slf4j-api jar

test (3)

Group / Artifact Type Version
org.apache.logging.log4j : log4j-core jar
org.apache.logging.log4j : log4j-slf4j-impl jar
junit : junit jar

Project Modules

There are no modules declared in this project.

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);
    }
    
}
io.sgr

sgr.io

Versions

Version
1.0.1
1.0.0