Download or open document in browser using REST service
I'm having trouble downloading or openning in the browser a document from Content Server using the REST service "/api/v1/nodes/{{doc_id}}/content".From Postman it works well and you can even see a preview of the document (image, text, pdf).
I know Postman shows code examples in different languages, but I have not been able to download a document using javascript/jquery.
Also, I saw once this variation of same service: "/api/v1/nodes/{{doc_id}}/content?action=open&token={{xxxxxxxxxxxx}}" to show the document in a browser window. But I have no idea of how to obtain the token parameter.
Any help in any of both cases would be great !
Comments
-
the token param could be the authentication token, usually passed in the request, there are some simple tutorials in https://developer.opentext.com
1
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 149 General Questions
- 148 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories