From 4c533754049f08b66bab1fd7d3ba1b50d9a6267f Mon Sep 17 00:00:00 2001 From: "Kevin A. Mitchell" Date: Thu, 25 Apr 2024 15:20:35 -0500 Subject: [PATCH] RequestStatus.java: Apply Spotless to format code --- .../Multipart Payload/RequestStatus.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Java/Endpoint Examples/Multipart Payload/RequestStatus.java b/Java/Endpoint Examples/Multipart Payload/RequestStatus.java index a9d1548..916cf61 100644 --- a/Java/Endpoint Examples/Multipart Payload/RequestStatus.java +++ b/Java/Endpoint Examples/Multipart Payload/RequestStatus.java @@ -1,7 +1,6 @@ +import io.github.cdimascio.dotenv.Dotenv; import java.io.IOException; import java.util.concurrent.TimeUnit; - -import io.github.cdimascio.dotenv.Dotenv; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; @@ -9,7 +8,8 @@ public class RequestStatus { - // Request UUIDs can be found in the JSON response of POST requests as "requestId" when API Polling is enabled. + // Request UUIDs can be found in the JSON response of POST requests as "requestId" when API + // Polling is enabled. // Resource UUIDs usually look like this: '0950b9bdf-0465-4d3f-8ea3-d2894f1ae839'. private static final String REQUEST_ID = "2e3c603d1-30b2-4c16-8c11-911a51bb2ba9"; // place requestID here @@ -18,13 +18,12 @@ public class RequestStatus { // You can also put the environment variable in a .env file. private static final String DEFAULT_API_KEY = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; -public static void main(String[] args) { + public static void main(String[] args) { final Dotenv dotenv = Dotenv.configure().ignoreIfMalformed().ignoreIfMissing().load(); - - String urlString = - String.format("https://api.pdfrest.com/request-status/%s", REQUEST_ID); - + + String urlString = String.format("https://api.pdfrest.com/request-status/%s", REQUEST_ID); + Request request = new Request.Builder() .header("Api-Key", dotenv.get("PDFREST_API_KEY", DEFAULT_API_KEY))