Skip to content

Reportyy/reportyy-client-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reportyy-client-java

Maven Central CI

Java 11+ client for Reportyy API.

Installation

Prerequisites

  • Java 11+

Gradle

Add this dependency to your project's build file:

implementation "com.reportyy:reportyy-client-java:0.0.1"

Maven

Add this dependency to your project's POM:

<dependency>
  <groupId>com.reportyy</groupId>
  <artifactId>reportyy-client-java</artifactId>
  <version>0.0.1</version>
</dependency>

Others

You'll need to manually install the following JARs:

Documentation

Please see the Java docs for the most up-to-date documentation.

Usage

import com.reportyy.client.ReportyyApiClient;

import java.util.Map;
import java.util.HashMap;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

public class ReportyyExample {
    public static void main(String[] args) throws IOException, ExecutionException, InterruptedException {
        ReportyyApiClient client = new ReportyyApiClient("rpty_ktS0rU...");

        Map<string, string> data = new HashMap<>();
        data.put("date", "February 23, 2023");
        data.put("total", "£14.00");

        CompletableFuture<InputStream> result = client.generatePdf("cleakim7c00129882ha9ct56d", data);
        InputStream generatedPdf = result.get();
    }
}

About

Java 11+ client for Reportyy API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages