dingtalk.oapi.process.dentry.auth (审批钉盘文件授权)

根据钉盘文件spaceId和fileId 授权下载预览

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request GrantCspaceRequestV2 可选 入参VO
  • file_infos
  • FileInfo []
  • 必须
  • 授权的钉盘文件信息
  • └ space_id
  • Number
  • 必须
  • 1123273
  • 文件spaceId
  • └ file_id
  • String
  • 必须
  • 734120
  • 文件fileId
  • └ userid
  • String
  • 必须
  • 133xxxx
  • 授权的userid

响应参数

名称 类型 示例值 描述
result Boolean true 成功
errcode Number -1 错误码
errmsg String 无服务 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/process/dentry/auth");
OapiProcessDentryAuthRequest req = new OapiProcessDentryAuthRequest();
GrantCspaceRequestV2 obj1 = new GrantCspaceRequestV2();
List<FileInfo> list3 = new ArrayList<FileInfo>();
FileInfo obj4 = new FileInfo();
list3.add(obj4);
obj4.setSpaceId(1123273L);
obj4.setFileId("734120");
obj1.setFileInfos(list3);
obj1.setUserid("133xxxx");
req.setRequest(obj1);
OapiProcessDentryAuthResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":true,
    "errcode":-1,
    "errmsg":"无服务"
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部