如何从Box.Com API中的Folder响应中获取某些参数?

时间:2013-11-07 10:07:28

标签: box-api

根据Box.Com文档,要检索文件夹的项目,我们必须传递

https://api.box.com/2.0/folders/FOLDER_ID/items

我们会得到这样的回复:

{
"total_count": 24,
"entries": [
    {
        "type": "folder",
        "id": "192429928",
        "sequence_id": "1",
        "etag": "1",
        "name": "Stephen Curry Three Pointers"
    },

我想只获取“total_count”。端点应该是什么样的?

此致

1 个答案:

答案 0 :(得分:0)

我认为你能做的最好是指定limit = 0:

https://api.box.com/2.0/folders/FOLDER_ID/items?limit=0