In order to run this application, a DS Server trial token is required. If you don't have a token yet, you can get your token here for free:
The function getAccessToken is requesting an access token from the OAuth endpoints of DS Server by exchanging the ClientId and ClientSecret for a valid OAuth access token:
This initializes the DocumentViewer on the HTML page. The load
╰ TXDocumentViewer Object
╰ loadDocument Method
You can test this on your own by downloading the full sample from our GitHub repository.