Created
August 28, 2024 17:17
-
-
Save cfjedimaster/bd70c0b072609341c7f030ec4c35eba7 to your computer and use it in GitHub Desktop.
This file contains 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 characters
async function getFormDataJob(source, token, clientId) { | |
let body = { | |
'assetID': source.assetID | |
} | |
let resp = await fetch('https://pdf-services-ue1.adobe.io/operation/getformdata', { | |
method: 'POST', | |
headers: { | |
'Authorization':`Bearer ${token}`, | |
'X-API-KEY':clientId, | |
'Content-Type':'application/json' | |
}, | |
body:JSON.stringify(body) | |
}); | |
return resp.headers.get('location'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment