Config Document Server API to get from Community Server

Any issues about docs (uploading, editing and etc.)
Post Reply
coisox
Posts: 13
Joined: Tue Jul 31, 2018 1:52 am

Config Document Server API to get from Community Server

Post by 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

http://cs.com/products/files/doceditor.aspx?fileid=99&doc=bDhxcHgrbHJCeisrZXM4VzlEei9PRFNVRUp3cWlJS2dyOVpXUVNOOHNicz0_Ijk5Ig2
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": "http://cs.com/products/files/doceditor.aspx?fileid=99" <-- this is wrong but what?
	},
	"documentType": "text",
	"editorConfig": {
		"callbackUrl": ""  <-- no idea at all
	}
});

Post Reply