I use java-sdk. It is pretty simple isn’t it. And this is your sample: MindeeClient mindeeClient = new MindeeClient(apiKey); // Load a file from disk LocalInputSource inputSource = new LocalInputSource(filePath); // Parse the file PredictResponse<InvoiceV4> response = mindeeClient.parse(InvoiceV4.class, inputSource); // Print a summary of the response System.out.println(response.toString()); And the result is:
Exception in thread "main" com.mindee.http.MindeeHttpException: Authorization required - HTTP 401 - Invalid token provided at com.mindee.http.MindeeHttpApi.getHttpError(MindeeHttpApi.java:360) at com.mindee.http.MindeeHttpApi.lambda$predictPost$5(MindeeHttpApi.java:226) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:247) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:188) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:162)
Please authenticate to join the conversation.
In Review
🐛 Bug
12 days ago
computart
Get notified by email when there are changes.
In Review
🐛 Bug
12 days ago
computart
Get notified by email when there are changes.