Try the fastest and simplest way to install ONLYOFFICE

Config Document Server API to get from Community Server

Any issues about docs (uploading, editing and etc.)

Config Document Server API to get from Community Server

Postby coisox » Fri Sep 28, 2018 8:57 am

I've integrated Document Server and Community Server successfully (maybe). When I call CS API to get the edit link, it return:
Code: Select all

My problem is, the URL for CS mustn't be public. Only the DS URL can be made public. So I assume using the CS API will always return URL from CS server (not configurable?).

Now I have to switch from using CS API to DS front end API (which I hope can cater my need to edit, download, delete, create folder). I can't figure whats the correct URL & callbackUrl since I don't know the physical file URL:

Code: Select all
var docEditor = new DocsAPI.DocEditor("placeholder", {
   "document": {
      "fileType": "docx",
      "key": "Khirz6zTPdfd7",
      "title": "Example Document Title.docx",
      "url": "" <-- this is wrong but what?
   "documentType": "text",
   "editorConfig": {
      "callbackUrl": ""  <-- no idea at all
Posts: 13
Joined: Tue Jul 31, 2018 1:52 am

Return to Documents

Who is online

Users browsing this forum: No registered users and 3 guests