Hello,
Big stretch here, but I'm wondering if anyone here can point me in the right direction. I'm attempting to connect to an Adobe api to manipulate a pdf I have in WorkDrive. I'm able to get the Bearer token, but the next piece is to get the upload URI and asset id. Adobe's documentation gives this as a reference:
- curl --location --request POST 'https://pdf-services.adobe.io/assets' \
- --header 'X-API-Key: {{Placeholder for client_id}}' \
- --header 'Authorization: Bearer {{Placeholder for token}}' \
- --header 'Content-Type: application/json' \
- --data-raw '{
- "mediaType": "{{Placeholder for mediaType}}"
- }'
The code I'm using:
- adobeUploadUrl = "https://pdf-services.adobe.io/assets";
- uploadHeader = {"X-API-Key":"efa5ef5bc6594dXXXXXXXXXX","Authorization":"Bearer" + adobeKey,"Content-Type":"application/json"};
- uploadParam = {"mediaType":"application/pdf"};
- uploadToAdobe = invokeurl
- [
- url: adobeUploadUrl
- type: POST
- parameters: uploadParam
- headers: uploadHeader
- ];
- info "Return: " + uploadToAdobe;
On my info statement, I'm getting back:
1696522222342.vnd.adobe.dc+json
Anyone able to point me in the right direction?
Thanks