public interface WxCpOaWeDriveService
| 限定符和类型 | 方法和说明 | 
|---|---|
| WxCpBaseResp | fileAclAdd(@NonNull WxCpFileAclAddRequest request)新增指定人
 该接口用于对指定文件添加指定人/部门。 | 
| WxCpBaseResp | fileAclDel(@NonNull WxCpFileAclDelRequest request)删除指定人
 该接口用于删除指定文件的指定人/部门。 | 
| WxCpFileCreate | fileCreate(@NonNull String spaceId,
          @NonNull String fatherId,
          @NonNull Integer fileType,
          @NonNull String fileName)新建文件夹/文档
 该接口用于在微盘指定位置新建文件夹、文档(更多文档接口能力可见文档API接口说明)。 | 
| WxCpBaseResp | fileDelete(@NonNull List<String> fileIds)删除文件
 该接口用于删除指定文件。 | 
| WxCpFileDownload | fileDownload(String fileId,
            String selectedTicket)下载文件
 该接口用于下载文件,请求的userid需有下载权限。 | 
| WxCpFileInfo | fileInfo(@NonNull String fileId)文件信息
 该接口用于获取指定文件的信息。 | 
| WxCpFileList | fileList(@NonNull WxCpFileListRequest request)获取文件列表
 该接口用于获取指定地址下的文件列表。 | 
| WxCpFileMove | fileMove(@NonNull WxCpFileMoveRequest request)移动文件
 该接口用于将文件移动到指定位置。 | 
| WxCpFileRename | fileRename(@NonNull String fileId,
          @NonNull String newName)重命名文件
 该接口用于对指定文件进行重命名。 | 
| WxCpBaseResp | fileSetting(@NonNull String userId,
           @NonNull String fileId,
           @NonNull Integer authScope,
           Integer auth)分享设置
 该接口用于文件的分享设置。 | 
| WxCpFileShare | fileShare(@NonNull String userId,
         @NonNull String fileId)获取分享链接
 该接口用于获取文件的分享链接。 | 
| WxCpFileUpload | fileUpload(@NonNull WxCpFileUploadRequest request)上传文件
 该接口用于向微盘中的指定位置上传文件。 | 
| WxCpBaseResp | spaceAclAdd(@NonNull WxCpSpaceAclAddRequest request)添加成员/部门
 该接口用于对指定空间添加成员/部门,可一次性添加多个。 | 
| WxCpBaseResp | spaceAclDel(@NonNull WxCpSpaceAclDelRequest request)移除成员/部门
 该接口用于对指定空间移除成员/部门,操作者需要有移除权限。 | 
| WxCpSpaceCreateData | spaceCreate(@NonNull WxCpSpaceCreateRequest request)新建空间
 该接口用于在微盘内新建空间,可以指定人创建空间。 | 
| WxCpBaseResp | spaceDismiss(@NonNull String userId,
            @NonNull String spaceId)解散空间
 该接口用于解散已有空间,需要以空间管理员身份来解散。 | 
| WxCpSpaceInfo | spaceInfo(@NonNull String userId,
         @NonNull String spaceId)获取空间信息
 该接口用于获取空间成员列表、信息、权限等信息。 | 
| WxCpBaseResp | spaceRename(@NonNull WxCpSpaceRenameRequest request)重命名空间
 该接口用于重命名已有空间,接收userid参数,以空间管理员身份来重命名。 | 
| WxCpBaseResp | spaceSetting(@NonNull WxCpSpaceSettingRequest request)权限管理
 该接口用于修改空间权限,需要传入userid,修改权限范围继承传入用户的权限范围。 | 
| WxCpSpaceShare | spaceShare(@NonNull String userId,
          @NonNull String spaceId)获取邀请链接
 该接口用于获取空间邀请分享链接。 | 
WxCpSpaceCreateData spaceCreate(@NonNull @NonNull WxCpSpaceCreateRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 新建空间对应请求参数WxErrorException - the wx error exceptionWxCpBaseResp spaceRename(@NonNull @NonNull WxCpSpaceRenameRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 重命名空间的请求参数WxErrorException - the wx error exceptionWxCpBaseResp spaceDismiss(@NonNull @NonNull String userId, @NonNull @NonNull String spaceId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
userId - the user idspaceId - the space idWxErrorException - the wx error exceptionWxCpSpaceInfo spaceInfo(@NonNull @NonNull String userId, @NonNull @NonNull String spaceId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
userId - the user idspaceId - the space idWxErrorException - the wx error exceptionWxCpBaseResp spaceAclAdd(@NonNull @NonNull WxCpSpaceAclAddRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 添加成员/部门请求参数WxErrorException - the wx error exceptionWxCpBaseResp spaceAclDel(@NonNull @NonNull WxCpSpaceAclDelRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 移除成员/部门请求参数WxErrorException - the wx error exceptionWxCpBaseResp spaceSetting(@NonNull @NonNull WxCpSpaceSettingRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 权限管理请求参数WxErrorException - the wx error exceptionWxCpSpaceShare spaceShare(@NonNull @NonNull String userId, @NonNull @NonNull String spaceId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
userId - the user idspaceId - the space idWxErrorException - the wx error exceptionWxCpFileList fileList(@NonNull @NonNull WxCpFileListRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 获取文件列表请求参数WxErrorException - the wx error exceptionWxCpFileUpload fileUpload(@NonNull @NonNull WxCpFileUploadRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 上传文件请求参数WxErrorException - the wx error exceptionWxCpFileDownload fileDownload(String fileId, String selectedTicket) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
fileId - 文件fileid(只支持下载普通文件,不支持下载文件夹或微文档)selectedTicket - 微盘和文件选择器jsapi返回的selectedTicket。若填此参数,则不需要填fileid。WxErrorException - the wx error exceptionWxCpFileRename fileRename(@NonNull @NonNull String fileId, @NonNull @NonNull String newName) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
fileId - the file idnewName - the new nameWxErrorException - the wx error exceptionWxCpFileCreate fileCreate(@NonNull @NonNull String spaceId, @NonNull @NonNull String fatherId, @NonNull @NonNull Integer fileType, @NonNull @NonNull String fileName) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
spaceId - 空间spaceidfatherId - 父目录fileid, 在根目录时为空间spaceidfileType - 文件类型, 1:文件夹 3:文档(文档) 4:文档(表格)fileName - 文件名字(注意:文件名最多填255个字符, 英文算1个, 汉字算2个)WxErrorException - the wx error exceptionWxCpFileMove fileMove(@NonNull @NonNull WxCpFileMoveRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 移动文件的请求参数WxErrorException - the wx error exceptionWxCpBaseResp fileDelete(@NonNull @NonNull List<String> fileIds) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
fileIds - 文件fileid列表WxErrorException - the wx error exceptionWxCpFileInfo fileInfo(@NonNull @NonNull String fileId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
fileId - the file idWxErrorException - the wx error exceptionWxCpBaseResp fileAclAdd(@NonNull @NonNull WxCpFileAclAddRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 新增指定人请求参数WxErrorException - the wx error exceptionWxCpBaseResp fileAclDel(@NonNull @NonNull WxCpFileAclDelRequest request) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
request - 请求参数WxErrorException - the wx error exceptionWxCpBaseResp fileSetting(@NonNull @NonNull String userId, @NonNull @NonNull String fileId, @NonNull @NonNull Integer authScope, Integer auth) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
userId - the user idfileId - the file idauthScope - the auth scopeauth - the authWxErrorException - the wx error exceptionWxCpFileShare fileShare(@NonNull @NonNull String userId, @NonNull @NonNull String fileId) throws WxErrorException
请求方式:POST(HTTPS) 请求地址: ...
userId - the user idfileId - the file idWxErrorException - the wx error exceptionCopyright © 2024. All rights reserved.