Problem with downloading via CSS-v2
I'm trying to download the content of a file using:
https://css.na-1-dev.api.opentext.com/v2/content/42d51007-f845-4e30-883f-6e0a01733d17/download
Even in the tester on the developerwebsite I get an error:
Server response
Code | Details |
---|---|
Failed to fetch.
|
Does anyone know what I'm doing wrong? I thougth this was working in the past?
Best Answer
-
Hello @Jeroen Jansen ,
From the CSS ID above, it seems you are trying to fetch an id that does not exist. In css v2, the blob id is a base64 encoded string. The css v2 URL for download would look similar to this:
Where are you getting the ID above from? I mean the id: 42d51007-f845-4e30-883f-6e0a01733d17
0
Answers
-
@Jeroen Jansen, I have tested CSS V2 and it seems to work. Can you please verify with the Postman collection from the Contract Approval App (https://github.com/opentext/demo-contract-approval-app/tree/master/postman). Under the Content Storage Service (CSS) section, you will find a REST API request to upload a file which will return a download link. This download link you can then use (make sure to use the bearer token) in a GET request and it should return/download the previously uploaded document.
0 -
Hello @Jeroen Jansen ,
From the CSS ID above, it seems you are trying to fetch an id that does not exist. In css v2, the blob id is a base64 encoded string. The css v2 URL for download would look similar to this:
Where are you getting the ID above from? I mean the id: 42d51007-f845-4e30-883f-6e0a01733d17
0 -
Hi, Yes that was the problem. I used the wrong Blob_id. It works fine now, Thanks.
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 150 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories