Apex
CloudFiles Client
Get Preview URL
To get the preview url for a file, you would have to use getPreviewUrls method of the Client class. Method definition as follows:

- a custom type PreviewParams
- PreviewParams has a Boolean allowDownload property
- String library
- String runAs

List<String>