Created
October 18, 2022 12:05
-
-
Save Stephen2/47e440c80d2c25c368a41b0cad6aa39f to your computer and use it in GitHub Desktop.
Revisions
-
Stephen2 created this gist
Oct 18, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ import axios from "axios"; const url = "https://{domain}.jotform.com/API/pdf-converter/{form}/fill-pdf?apikey={apiKey}&download=1&submissionID={submissionId}"; const main = async() => { await Promise.all( Array(50).fill().map(async (_, i) => { try { await axios.get(url); console.log(`Got ${i}`); } catch (err) { console.log("ERR: ", { status: err.response.status, data: err.response.data, }); } }) ); } main();