Uploadcare\Api::getFilesChunk PHP Method

getFilesChunk() public method

Get portion of files from server respecting filters
public getFilesChunk ( array $options = [], $reverse = false ) : array
$options array
return array
    public function getFilesChunk($options = array(), $reverse = false)
    {
        $data = $this->__preparedRequest('file_list', 'GET', $options);
        $files_raw = (array) $data->results;
        $result = array();
        foreach ($files_raw as $file_raw) {
            $result[] = new File($file_raw->uuid, $this, $file_raw);
        }
        parse_str(parse_url(!$reverse ? $data->next : $data->previous, PHP_URL_QUERY), $params);
        if ($reverse) {
            $result = array_reverse($result);
        }
        return array('params' => $params, 'files' => $result);
    }