*/ $page = 2; $files = $api->getFileList($page); /** * You can get some information about pagination. * * You will get an array with params: * - page: current page * - next: uri to request next page * - per_page: number of files per page * - pages: number of pages * - previous: uri to request previous page * * Use "per_page" and "pages" information to create pagination inside your own project */ $pagination_info = $api->getFilePaginationInfo(); /** * If you have a file_id (for example, it's saved in your database) you can create object for file easily. * Just user request below */ $file_id = '5255b9dd-f790-425e-9fa9-8b49d4e64643'; $file = $api->getFile($file_id); /** * Ok, using object of \Uploadcare\File class we can get url for the file */ echo $file->getUrl() . "\n"; /** * Or even get an image tag */ echo $file->getImgTag('image.jpg', array('alt' => 'Somealt')) . "\n"; /**