WorkPro 手册

列表共享文件/文件夹

[API接口调用测试]

接口地址

[接口服务器地址]/api/groups/file_list.html

请求方法

POST

Request Headers

名称 必选 类型 说明
Content-Type true string application/json; charset=UTF-8
authen true string 认证码 什么是认证码
appid true string 接入ID 什么是接入ID
timestamp true string 时间戳
uid true string 当前帐号
lang true string 语言 zh-cn,en-us

Request Body

名称 必选 类型 说明
group_id true string 群组ID
pid true string 上级文件夹ID 根节点为也要传pid=''
key false string 搜索关键词 文件名
page false integer 页数 默认:1
page_size false integer 分页条数 默认:20

调用样例及调试工具

测试接口

返回结果(成功)

            {"status":1,"code":0,"msg":"","data":{"count":1,"page":1,"page_size":20,"list":[{"gid":"bd030b845f4211e9ae5488d7f697be9a","group_id":"7ad4f2d25d0211e9a5ee88d7f697be9a","name":"1.jpg","type":"image","ext":"jpg","size":37326,"url":"\\uploads\\group\\20180101\\d66e386157fbd6db7768ee73f2a7c807.jpg","thumb_url":"\\uploads\\group\\20180101\\d66e386157fbd6db7768ee73f2a7c807_thumb.jpg","download":0,"status":1,"create_uid":"user_id1","create_uname":"用户1","create_time":1514736000,"extdata":"","id":"5cb41c4115e20a20bc002725"}]}}