Retrieves a list of files.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
fields | string Limits the returned fields to the specified list, each field separated by a comma. The ID value is always returned. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
List of files retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
$files = $client->files()->search([ 'filter' => 'name:TestFile', ]);
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "extension": "string",
- "description": "string",
- "sourceType": "upload",
- "tags": [
- "string"
], - "mime": "image/png",
- "size": 0,
- "width": 0,
- "height": 0,
- "sha1": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "isPublic": true,
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]