From de81467cc8b05e70a19eb4a2dc3df7307078c533 Mon Sep 17 00:00:00 2001 From: Eric Shore Date: Thu, 25 Apr 2024 14:18:43 -0500 Subject: [PATCH] Create request-status.js Add request-status JavaScript example --- .../Multipart Payload/request-status.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 JavaScript/Endpoint Examples/Multipart Payload/request-status.js diff --git a/JavaScript/Endpoint Examples/Multipart Payload/request-status.js b/JavaScript/Endpoint Examples/Multipart Payload/request-status.js new file mode 100644 index 0000000..d397067 --- /dev/null +++ b/JavaScript/Endpoint Examples/Multipart Payload/request-status.js @@ -0,0 +1,18 @@ +const axios = require("axios"); + +let config = { + method: "get", + maxBodyLength: Infinity, // set maximum length of the request body + url: "https://api.pdfrest.com/request-status/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + headers: { "Api-Key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } +}; + +// define configuration options for axios request +axios + .request(config) + .then((response) => { + console.log(JSON.stringify(response.data)); + }) + .catch((error) => { + console.log(error); + });