获取文件夹列表





用途 

获取 Writer 帐户中文件夹的列表。

HTTP 请求 URL

https://writer.zoho.com.cn/api/v1/folders

有关文件夹 API 中的错误处理案例,请参阅此处。

作用域

ZohoWriter.documentEditor.ALL, ZohoPC.files.ALL

样本请求:


				curl "https://writer.zoho.com.cn/api/v1/folders
-X GET
-H "Authorization: Zoho-oauthtoken f92d01c803988c5ch49d0b4215f52"			

示例响应:


				{
    "folders":[{
            "author_name": "Amelia",
            "parentfolder_id": "1",
            "modified_time": "2017-09-26T05:28:47Z",
            "last_modifiedby": "Amelia",
            "folder_name": "MENU",
            "folder_id": "poz1ba3ac63b122848a2561c5ed9fe"
        },{
            "author_name": "Amelia",
            "parentfolder_id": "1",
            "modified_time": "2017-09-26T05:28:58Z",
            "last_modifiedby": "Amelia",
            "folder_name": "SAMPLE",
            "folder_id": "poz1ba3ac63b1848a24c7561c5ed9fe"
        },{
            "author_name": "Amelia",
            "parentfolder_id": "1",
            "modified_time": "2017-09-26T10:09:43Z",
            "last_modifiedby": "Amelia",
            "folder_name": "AGREEMENTS",
            "folder_id": "poz6bf9ba42e994f5ac3793956e3e39ad"
        },{
            "author_name": "Amelia",
            "parentfolder_id": "1",
            "modified_time": "2017-09-27T12:38:02Z",
            "last_modifiedby": "Amelia",
            "folder_name": "DECEMBER",
            "folder_id": "pozd7830afe7d01401b939dae5583538f"
        },{
            "author_name": "Amelia",
            "parentfolder_id": "1",
            "modified_time": "2017-10-05T07:43:05Z",
            "last_modifiedby": "Amelia",
            "folder_name": "2018",
            "folder_id": "poz0935fd4eaa304410bf9ac26140a617"
        }
    ]
}