类 SAOs
java.lang.Object
cn.duskykite.open.call.SAO
cn.duskykite.open.call.SAOs
飞书开放接口远程调用对象部分接口实现
-
字段概要
从类继承的字段 cn.duskykite.open.call.SAO
APPLICATION_JSON_UTF_8, JSON_CONTENT_TYPE_HEADERS, OPENAPI_PRIMARY_URL -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getContactV3DepartmentsDepartmentId(@NonNull String authorization, @NonNull String departmentId, String userIdType, String departmentIdType) getContactV3DepartmentsDepartmentIdChildren(@NonNull String authorization, @NonNull String departmentId, String userIdType, String departmentIdType, Boolean fetchChild, Integer pageSize, String pageToken) @NonNull Response<DataResult<GetContactV3ScopesData>>getContactV3Scopes(@NonNull String authorization, String userIdType, String departmentIdType, String pageToken, Integer pageSize) getContactV3UsersFindByDepartment(@NonNull String authorization, String userIdType, String departmentIdType, @NonNull String departmentId, Integer pageSize, String pageToken) @NonNull Response<DataResult<GetContactV3UsersUserIdData>>getContactV3UsersUserId(@NonNull String authorization, @NonNull String userId, String userIdType, String departmentIdType) @NonNull Response<DataResult<GetIMV1ChatsData>>getIMV1Chats(@NonNull String authorization, String userIdType, String pageToken, Integer pageSize) @NonNull Response<DataResult<GetIMV1ChatsMembersData>>getIMV1ChatsMembers(@NonNull String authorization, @NonNull String chatId, String memberIdType, String pageToken, Integer pageSize) @NonNull Response<byte[]>getIMV1MessagesResources(@NonNull String authorization, @NonNull String messageId, @NonNull String fileKey, @NonNull String type) @NonNull Response<DataResult<Object>>patchIMV1MessagesMessageId(@NonNull String authorization, @NonNull String messageId, @NonNull PatchIMV1MessagesMessageIdRequestBody body) @NonNull Response<PostAuthV3AppAccessTokenResult>postAuthV3AppAccessToken(@NonNull PostAuthV3AppAccessTokenRequestBody body) @NonNull Response<PostAuthV3TenantAccessTokenResult>@NonNull Response<DataResult<PostIMV1ImageData>>postIMV1Image(@NonNull String authorization, @NonNull PostIMV1ImageRequestBody body) @NonNull Response<DataResult<IMV1Messages>>postIMV1Messages(@NonNull String authorization, @NonNull String receiveIdType, @NonNull PostIMV1MessagesRequestBody body) @NonNull Response<DataResult<IMV1Messages>>postIMV1MessagesMessageIdReply(@NonNull String authorization, @NonNull String messageId, @NonNull PostIMV1MessagesMessageIdReplyRequestBody body) postInteractiveV1CardUpdate(@NonNull String authorization, @NonNull PostInteractiveV1CardUpdateRequestBody body) @NonNull Response<DataResult<PostMessageV4BatchSendData>>postMessageV4BatchSend(@NonNull String authorization, @NonNull PostMessageV4BatchSendRequestBody body) 从类继承的方法 cn.duskykite.open.call.SAO
delete, get, headers, pagingAll, patch, post, request, toAuthorization, toAuthorizationHeaders, toContentTypeHeaders, toJsonRequestBody, toJsonResultMapper, toMultipartBody, variables
-
构造器详细资料
-
SAOs
public SAOs(@NonNull @NonNull okhttp3.HttpUrl primaryURL, @NonNull @NonNull okhttp3.OkHttpClient client) - 参数:
primaryURL- 开放接口主链接,例如飞书开放平台接口client- HTTP请求客户端
-
-
方法详细资料
-
postAuthV3AppAccessToken
@NonNull public @NonNull Response<PostAuthV3AppAccessTokenResult> postAuthV3AppAccessToken(@NonNull @NonNull PostAuthV3AppAccessTokenRequestBody body) - 参数:
body- 请求体- 返回:
- 响应结果
-
postAuthV3TenantAccessToken
@NonNull public @NonNull Response<PostAuthV3TenantAccessTokenResult> postAuthV3TenantAccessToken(@NonNull @NonNull PostAuthV3TenantAccessTokenRequestBody body) - 参数:
body- 请求体- 返回:
- 响应结果
-
postAuthV3TenantAccessTokenInternal
@NonNull public @NonNull Response<PostAuthV3TenantAccessTokenInternalResult> postAuthV3TenantAccessTokenInternal(@NonNull @NonNull PostAuthV3TenantAccessTokenInternalRequestBody body) - 参数:
body- 请求体- 返回:
- 响应结果
-
getContactV3DepartmentsDepartmentId
@NonNull public @NonNull Response<DataResult<GetContactV3DepartmentsDepartmentIdData>> getContactV3DepartmentsDepartmentId(@NonNull @NonNull String authorization, @NonNull @NonNull String departmentId, String userIdType, String departmentIdType) -
getContactV3DepartmentsDepartmentIdChildren
@NonNull public @NonNull Response<DataResult<GetContactV3DepartmentsDepartmentIdChildrenData>> getContactV3DepartmentsDepartmentIdChildren(@NonNull @NonNull String authorization, @NonNull @NonNull String departmentId, String userIdType, String departmentIdType, Boolean fetchChild, Integer pageSize, String pageToken) - 参数:
authorization- tenant_access_token 或 user_access_tokendepartmentId- 部门ID,根部门的部门ID 为0 department_id的获取方式参见 部门ID说明userIdType- 用户 ID 类型 open_id/union_id/user_id 示例值:"open_id"departmentIdType- 此次调用中使用的部门ID的类型 不同 ID 的说明与department_id的获取方式参见 部门ID说明 department_id/open_department_id 默认值:open_department_idfetchChild- 是否递归获取子部门pageSize- 分页大小 示例值:10 默认值:10pageToken- 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果- 返回:
- 响应结果
-
getContactV3Scopes
@NonNull public @NonNull Response<DataResult<GetContactV3ScopesData>> getContactV3Scopes(@NonNull @NonNull String authorization, String userIdType, String departmentIdType, String pageToken, Integer pageSize) - 参数:
authorization- tenant_access_tokenuserIdType- 用户 ID 类型 open_id/union_id/user_id 默认值:open_iddepartmentIdType- 返回值的部门ID的类型 department_id/open_department_id 默认值:open_department_idpageToken- 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果pageSize- 分页大小 最大值:100- 返回:
- 响应结果
-
getContactV3UsersFindByDepartment
@NonNull public @NonNull Response<DataResult<GetContactV3UsersFindByDepartmentData>> getContactV3UsersFindByDepartment(@NonNull @NonNull String authorization, String userIdType, String departmentIdType, @NonNull @NonNull String departmentId, Integer pageSize, String pageToken) - 参数:
authorization- tenant_access_token 或 user_access_tokenuserIdType- 用户 ID 类型 open_id/union_id/user_id 默认值:open_iddepartmentIdType- 返回值的部门ID的类型 department_id/open_department_id 默认值:open_department_iddepartmentId- 填写该字段表示获取该部门下用户,必填。根部门的部门ID为0。ID值与查询参数中的department_id_type 对应。不同 ID 的说明与department_id的获取方式参见 部门ID说明pageSize- 分页大小 默认值:10 最大值:50pageToken- 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果- 返回:
- 响应结果
-
getContactV3UsersUserId
@NonNull public @NonNull Response<DataResult<GetContactV3UsersUserIdData>> getContactV3UsersUserId(@NonNull @NonNull String authorization, @NonNull @NonNull String userId, String userIdType, String departmentIdType) - 参数:
authorization- tenant_access_token 或 user_access_tokenuserId- 用户ID,类型需要与查询参数中的user_id_type保持一致。 例如user_id_type=open_id,user_id的类型需为open_id 不同ID的说明参见 用户相关的 ID 概念userIdType- 用户 ID 类型 open_id/union_id/user_id 默认值:open_iddepartmentIdType- 返回值的部门ID的类型 department_id/open_department_id 默认值:open_department_id- 返回:
- 响应结果
-
postIMV1Image
@NonNull public @NonNull Response<DataResult<PostIMV1ImageData>> postIMV1Image(@NonNull @NonNull String authorization, @NonNull @NonNull PostIMV1ImageRequestBody body) - 参数:
authorization- tenant_access_tokenbody- 请求体- 返回:
- 响应结果
-
postIMV1Messages
@NonNull public @NonNull Response<DataResult<IMV1Messages>> postIMV1Messages(@NonNull @NonNull String authorization, @NonNull @NonNull String receiveIdType, @NonNull @NonNull PostIMV1MessagesRequestBody body) - 参数:
authorization- tenant_access_tokenreceiveIdType- 消息接收者id类型 open_id/user_id/union_id/email/chat_idbody- 请求体- 返回:
- 响应结果
-
patchIMV1MessagesMessageId
@NonNull public @NonNull Response<DataResult<Object>> patchIMV1MessagesMessageId(@NonNull @NonNull String authorization, @NonNull @NonNull String messageId, @NonNull @NonNull PatchIMV1MessagesMessageIdRequestBody body) - 参数:
authorization- tenant_access_token 或 user_access_tokenmessageId- 待更新的消息的ID,仅支持更新消息卡片(interactive类型),详情参见...body- 请求体- 返回:
- 响应结果
-
postIMV1MessagesMessageIdReply
@NonNull public @NonNull Response<DataResult<IMV1Messages>> postIMV1MessagesMessageIdReply(@NonNull @NonNull String authorization, @NonNull @NonNull String messageId, @NonNull @NonNull PostIMV1MessagesMessageIdReplyRequestBody body) - 参数:
authorization- tenant_access_tokenmessageId- 待回复的消息的ID,详情参见 消息ID说明body- 请求体- 返回:
- 响应结果
-
getIMV1MessagesResources
@NonNull public @NonNull Response<byte[]> getIMV1MessagesResources(@NonNull @NonNull String authorization, @NonNull @NonNull String messageId, @NonNull @NonNull String fileKey, @NonNull @NonNull String type) - 参数:
authorization- tenant_access_tokenmessageId- 待查询资源对应的消息IDfileKey- 待查询资源的keytype- 资源类型 image/file- 返回:
- 响应结果
-
postInteractiveV1CardUpdate
@NonNull public @NonNull Response<Result> postInteractiveV1CardUpdate(@NonNull @NonNull String authorization, @NonNull @NonNull PostInteractiveV1CardUpdateRequestBody body) - 参数:
authorization- tenant_access_tokenbody- 请求体- 返回:
- 响应结果
-
postMessageV4BatchSend
@NonNull public @NonNull Response<DataResult<PostMessageV4BatchSendData>> postMessageV4BatchSend(@NonNull @NonNull String authorization, @NonNull @NonNull PostMessageV4BatchSendRequestBody body) - 参数:
authorization- tenant_access_tokenbody- 请求体- 返回:
- 响应结果
-
getIMV1Chats
@NonNull public @NonNull Response<DataResult<GetIMV1ChatsData>> getIMV1Chats(@NonNull @NonNull String authorization, String userIdType, String pageToken, Integer pageSize) - 参数:
authorization- tenant_access_token 或 user_access_tokenuserIdType- 用户 ID 类型 open_id/union_id/user_id 默认值:open_idpageToken- 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果pageSize- 分页大小 默认值:20 最大值:100- 返回:
- 响应结果
-
getIMV1ChatsMembers
@NonNull public @NonNull Response<DataResult<GetIMV1ChatsMembersData>> getIMV1ChatsMembers(@NonNull @NonNull String authorization, @NonNull @NonNull String chatId, String memberIdType, String pageToken, Integer pageSize) - 参数:
authorization- tenant_access_token 或 user_access_tokenchatId- 群 ID,详情参见 群ID 说明memberIdType- 群成员 用户 ID 类型,详情参见 用户相关的 ID 概念pageToken- 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果pageSize- 分页大小 默认值:20 最大值:100- 返回:
- 响应结果
-