deniskristov / checkbox-api-client

Java API client
https://checkbox.ua
3 stars 1 forks source link
api-client api-rest api-wrapper checkbox checkbox-api checkbox-ua java-api ua

Checkbox REST API Client Library for Java

Java CI with Maven

This API Client is a wrapper around https://checkbox.ua/ REST API. Please see the API documentation for more information.

Use as Maven dependency. Add to your pom.xml repository and dependency:

<repository>
    <id>checkbox</id>
    <name>Checkbox API</name>
    <url>https://maven.pkg.github.com/deniskristov/checkbox-api-client</url>
    <releases>
        <enabled>true</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

<dependency>
    <groupId>ua.in.checkbox</groupId>
    <artifactId>checkbox-api-client</artifactId>
    <version>{latest-version}</version>
</dependency>

Example of usage:

CheckboxApiClient client = new CheckboxApiClient(
    "login",
    "password",
    "https://dev-api.checkbox.in.ua",
    apiVersion);
client.signIn();
ShiftWithCashierAndCashRegister shift = client.openShift("X-License-Key");