I’ve been trying to download a file from my account on Adobe Acrobat’s website using their PDF Services REST API and their Java SDK as well.
I already have my credentials (client_id, client_secret), and in the same account I have the file that I want to download. This file is publicly shared.
Using the REST API, using Postman, the usual OAuth server-to-server steps. I get a token from https://pdf-services-ue1.adobe.io/token
then I want to get a pre-signed URI on the asset calling https://pdf-services-ue1.adobe.io/assets/{assetId}
but I get an “Asset not found” response everytime.
From the SDK, I set up simple code to just refresh the download URI:
Credentials credentials = new ServicePrincipalCredentials("MY_CLIENT_ID", "MY_CLIENT_SECRET");
PDFServices pdfServices = new PDFServices(credentials);
try {
CloudAsset asset = new CloudAsset("urn:aaid:sc:REST_OF_THE_ASSET_ID");
pdfServices.refreshDownloadURI(asset);
} catch (ServiceApiException e) {
throw new RuntimeException(e);
}
But also, I get a “The requested resource does not exist.” response.
How can I download a file from Adobe Acrobat’s cloud storage using this or any other API?