Java Integration

Please note these are examples. It is recommended that you make one that is more complex and adjustable to your needs.

To use this API, first ensure you have all the necessary dependencies added to your project. These dependencies include Maven and the following libraries:

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>RELEASE</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>com.squareup.okhttp3</groupId>
    <artifactId>okhttp</artifactId>
    <version>4.9.3</version>
</dependency>
<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20210307</version>
</dependency>
<dependency>
    <groupId>org.jetbrains.kotlin</groupId>
    <artifactId>kotlin-stdlib-jdk8</artifactId>
    <version>1.5.30</version>
</dependency>

Or with Gradle:

Then, you can utilize the API in your Java code. Here's an example of how you could do it:

Make sure to replace <license-key>, <product>, and <version> with the appropriate values for your application.

Remember to change <domain> to the correct URL of your API and <public-api-key> with your public API key. With these changes, you'll be able to use the API in your Java application.

Last updated