Page tree
Skip to end of metadata
Go to start of metadata

Options

Name

Type

Value

Required

date_from

String (Datetime)

Y-m-d H:i:s

No

date_toString (Datetime)Y-m-d H:i:sNo
item_idInteger
No
item_titleStringWildcardNo
offsetInteger
No
limitInteger
No
idsArray
No

Example

$data = array('object' => 'file', 'action' => 'list',

'options'=> array(

'date_from' => '2016-05-24 20:00:00',

'date_to' => '2016-06-24 20:00:00',

'item_id' => '234',

'item_title' => 'filename’

)

);


Response


Response FieldsTypeSample ValueComment
statusCode


Integer00 - success
statusMessage


String""Error or confirmation message
data


Array
Array of {Found file}s









{Found file}

0

Array


id
Integer2402Id of the file

title
String"movietitle.mp4"Title of the file

use_token
Integer0Whether token will be added to URL. (0 or 1)

category
Integer1Id of the category the file is in

org_filename
String"movietitle.mp4"Original filename of file

url
String
"https://download.cloudycdn.services/dl/..."
Download URL of file

security


Array
Array of security values for the file


expire_time

String"2018-12-20 10:00:00"UTC Time at which public access to file will stop(NULL if no expire time set)


use_token

Integer0If the file uses token authentication (0 or 1)


token_durationString"1h"How long the token lasts


restricted_domainsString"telia.lv"If not empty, then file can only be embedded in set domains


ip_blacklistString"111.111.111.111,222.222.222.222"If connecting IP is in this list, access will be blocked


ip_whitelistString"333.333.333.333"If not empty, only these IPs will have access to file


allowed_countriesString"all"Regions that are allowed to access file ("all" gives access to any region)
offset


Integer1First response record position
limit


Integer10Max. number of records in the respons
total


Integer1Number of records in response
  • No labels