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:

Apex


Input Parameters

  1. a List of Resource
  2. a custom type PreviewParams
    1. PreviewParams has a Boolean allowDownload property
  3. String library
  4. String runAs



Output

List<String>

Example

Apex