Bitly Java API

Java client library to execute operations on URLs using the Bitly API.

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.opsmatters
ArtifactId

ArtifactId

bitly-java-api
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

Bitly Java API
Java client library to execute operations on URLs using the Bitly API.
Project URL

Project URL

https://github.com/opsmatters/bitly-java-api
Source Code Management

Source Code Management

https://github.com/opsmatters/bitly-java-api

Download bitly-java-api

How to add to project

<!-- https://jarcasting.com/artifacts/com.opsmatters/bitly-java-api/ -->
<dependency>
    <groupId>com.opsmatters</groupId>
    <artifactId>bitly-java-api</artifactId>
    <version>1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.opsmatters/bitly-java-api/
implementation 'com.opsmatters:bitly-java-api:1.0.4'
// https://jarcasting.com/artifacts/com.opsmatters/bitly-java-api/
implementation ("com.opsmatters:bitly-java-api:1.0.4")
'com.opsmatters:bitly-java-api:jar:1.0.4'
<dependency org="com.opsmatters" name="bitly-java-api" rev="1.0.4">
  <artifact name="bitly-java-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.opsmatters', module='bitly-java-api', version='1.0.4')
)
libraryDependencies += "com.opsmatters" % "bitly-java-api" % "1.0.4"
[com.opsmatters/bitly-java-api "1.0.4"]

Dependencies

compile (5)

Group / Artifact Type Version
com.google.code.gson : gson jar 2.8.6
com.google.guava : guava jar 29.0-jre
org.apache.httpcomponents : httpclient jar 4.5.9
org.apache.httpcomponents : httpcore jar 4.4.11
org.apache.commons : commons-lang3 jar 3.8.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

opsmatters

Bitly Java API

Build Status Maven Central Javadocs

Java client library to execute operations on URLs using the Bitly V4 API.

The following Bitly APIs are currently supported:

Bitlinks

Custom Bitlinks

Groups

Organizations

Campaigns

Campaign Channels

Users

Webhooks

BSDs (Branded Short Domains)

OAuth Apps

Examples

A detailed set of examples of the usage of each of the APIs can be found on the API site.

Prerequisites

A Bitly account with an access token. The user needs to generate an Access Token to provide access via the Bitly V4 API. The Access Token is referenced in the documentation as the parameter "YOUR_ACCESS_TOKEN".

Installing

First clone the repository using:

>$ git clone https://github.com/opsmatters/bitly-java-api.git
>$ cd bitly-java-api

To compile the source code, run all tests, and generate all artefacts (including sources, javadoc, etc):

mvn package -Dbitly.access_token="<YOUR_ACCESS_TOKEN>"

Running the tests

To execute the unit tests:

mvn clean test -Dbitly.access_token="<YOUR_ACCESS_TOKEN>"

The following tests are included:

  • testBitlinksServices: Operations on bitlinks such as shorten and expand.

Deployment

The build artefacts are hosted in The Maven Central Repository.

Add the following dependency to include the artefact within your project:

<dependency>
  <groupId>com.opsmatters</groupId>
  <artifactId>bitly-java-api</artifactId>
  <version>1.0.2</version>
</dependency>

Built With

  • HttpComponents - RESTful Web Services in Java using HttpClient and HttpCore
  • Gson - Java serialization/deserialization library
  • Guava - An open-source set of common libraries for Java
  • Maven - Dependency Management
  • JUnit - Unit testing framework

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

This project use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the terms of the Apache license 2.0.

Copyright (c) 2020 OpsMatters

com.opsmatters

OpsMatters

The Source for News & Information on Operational Applications & Tools

Versions

Version
1.0.4
1.0.2
1.0.1
1.0.0