Can refer to the website API. Yozocloud. Cn/index. The HTML
First look at the pattern
Usage:
Step 1: open the wing cloud transformation website API. Yozocloud. Cn/index. HTML
Step 2: Register yongzhong Cloud. If you have an account, please log in directly and enter the following page
Try the demo first
Click document Preview enter the test address and click Online Preview
Now you’ve converted it and click on the preview address and you’ll see that it’s ready to preview
Step 3: On the Domain name management page, add the domain name (corresponding to the public download address of the file).
So you don’t have to worry about security
Step 4: Concatenate API preview address dcsapi.com/?k= domain name key&ur…
Parameter Description:
1. Parameter K: The system automatically generates a key when adding a domain name to check whether the domain name is valid.
2, parameter url: file download address, such as: http://dcs.yozosoft.com/yozodoc.docx.
Four optional parameters:
1, noCache: Boolean format Whether to force a recast (ignoring caching),true: force recast, false: do not force recast.
2. Watermark: String format. Set the watermark content for a single document.
3. IsCopy: Integer format (0 no 1 Yes, the default value is 0. Set anti-copy for a single document).
PageStart: Integer format; PageEnd: Integer format. (The start page and end page of converted pages can be invoked only by domain names with corresponding permissions.)
To obtain the preview url:
Interface description: Users obtain the preview address through API invocation. The preview address obtained does not contain parameters such as the user key value and the user document address.
Url assembly format: http://api url/getPreview +? K =(user Key corresponding to the domain name)+& URL =(online document address)+& isCopy=(Anti-copy 1 Yes 0 No, optional)+& waterMaerk =(Watermark text content, optional)
Description:
1. Domain name address of API website
2. Optional content can be removed if it is not needed
For example, if the registered domain name of the user is abc.com, the corresponding user Key is 123456, and the online document address is http://abc.com/123.doc, the assembly url is as follows:
The assembly result is http://api.yozocloud.cn/ getPreview? K =123456&url=http://abc.com/123.doc,
With optional content the effect is: http://api.yozocloud.cn/ getPreview? K =123456&url=http://abc.com/123.doc&isCopy=1&watermark=abcd
The following information is returned as a JSON string. The HTTPS link in data is the preview address:
{
"data": {"data":"https://p.dcsapi.com/view/preview/xxxxxxxx/"
},
"message":"Operation successful"."errorcode":0
}Copy the code
Its help page is also very detailed and clear
Support doc, DOCX, XLS, XLSX, PPT, PPTX, PDF, TXT and compressed files and other common Office document formats generally speaking is very powerful and safe like partners can start to try oh