Skip to content

Commit

Permalink
Create request-status.js
Browse files Browse the repository at this point in the history
Add request-status JavaScript example
  • Loading branch information
datalogics-erics authored Apr 25, 2024
1 parent d03f539 commit de81467
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions JavaScript/Endpoint Examples/Multipart Payload/request-status.js
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit de81467

Please sign in to comment.