如何在dropbox api中实现文件夹内容的分页

时间:2017-06-14 23:05:32

标签: c# asp.net-mvc dropbox-api

是否有任何api调用实现dropbox文件夹的分页?目前,我使用 mysql> select * from Nonprofit; Empty set (0.00 sec) mysql> desc Nonprofit; +---------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------------+--------------+------+-----+---------+----------------+ | nonprofit_id | int(11) | NO | PRI | NULL | auto_increment | | state | varchar(2) | NO | | NULL | | | nonprofit_name | varchar(100) | NO | | NULL | | | street_address | varchar(255) | YES | | NULL | | | zip_code | int(11) | YES | | NULL | | | number_of_employees | int(11) | YES | | NULL | | | type_of_business | varchar(255) | YES | | NULL | | | number_of_donors | int(11) | NO | | 0 | | | social_handle | varchar(255) | YES | | NULL | | | city | varchar(255) | NO | | NULL | | np_photo_link | varchar(255) | NO | MUL | empty | | | cp_photo_link | varchar(255) | NO | | empty | | +---------------------+--------------+------+-----+---------+-------- --------+ 12 rows in set (0.00 sec) mysql> desc Company; +------------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+---------+------+-----+---------+----------------+ | company_id | int(11) | NO | PRI | NULL | auto_increment | +------------+---------+------+-----+---------+----------------+ 1 row in set (0.00 sec) mysql> desc Photo; +----------------------+--------------+------+-----+-------------------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------------+--------------+------+-----+-------------------+-------+ | campaign_photo_link | varchar(255) | NO | PRI | empty | | | nonprofit_photo_link | varchar(255) | NO | PRI | empty | | | photo_id | varchar(40) | NO | | NULL | | | company_id | int(11) | NO | MUL | NULL | | | date_created | datetime | NO | | CURRENT_TIMESTAMP | | +----------------------+--------------+------+-----+-------------------+-------+ 5 rows in set (0.00 sec) 迭代文件夹的内容,其中检索大文件夹的内容非常慢。 ListFolderAsync不会返回任何结果,所以我不确定这是不是。

ListFolderGetLatestCursorResult

1 个答案:

答案 0 :(得分:1)

Dropbox API通过ListFolderListFolderContinue为列出文件和文件夹提供分页功能。即,Dropbox不会为每个响应返回无限数量的条目。响应中的ListFolderResult.HasMore将指示您是否需要回拨以获取另一页结果。

它不提供请求自定义页面大小的功能。