Java 11+ client for Reportyy API.
- Java 11+
Add this dependency to your project's build file:
implementation "com.reportyy:reportyy-client-java:0.0.1"Add this dependency to your project's POM:
<dependency>
  <groupId>com.reportyy</groupId>
  <artifactId>reportyy-client-java</artifactId>
  <version>0.0.1</version>
</dependency>You'll need to manually install the following JARs:
Please see the Java docs for the most up-to-date documentation.
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();
    }
}