类 SAOs

java.lang.Object
cn.duskykite.open.call.SAO
cn.duskykite.open.call.SAOs

public class SAOs extends SAO
飞书开放接口远程调用对象部分接口实现
  • 构造器详细资料

    • 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)
      参数:
      authorization - tenant_access_token 或 user_access_token
      departmentId - 需要获取的部门ID 不同 ID 的说明及获取方式 参见部门ID说明
      userIdType - 用户 ID 类型 open_id/union_id/user_id 默认值:open_id
      departmentIdType - 此次调用中使用的部门ID的类型 不同 ID 的说明 部门ID说明
      返回:
      响应结果
    • 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_token
      departmentId - 部门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_id
      fetchChild - 是否递归获取子部门
      pageSize - 分页大小 示例值:10 默认值:10
      pageToken - 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 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_token
      userIdType - 用户 ID 类型 open_id/union_id/user_id 默认值:open_id
      departmentIdType - 返回值的部门ID的类型 department_id/open_department_id 默认值:open_department_id
      pageToken - 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 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_token
      userIdType - 用户 ID 类型 open_id/union_id/user_id 默认值:open_id
      departmentIdType - 返回值的部门ID的类型 department_id/open_department_id 默认值:open_department_id
      departmentId - 填写该字段表示获取该部门下用户,必填。根部门的部门ID为0。ID值与查询参数中的department_id_type 对应。不同 ID 的说明与department_id的获取方式参见 部门ID说明
      pageSize - 分页大小 默认值:10 最大值:50
      pageToken - 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 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_token
      userId - 用户ID,类型需要与查询参数中的user_id_type保持一致。 例如user_id_type=open_id,user_id的类型需为open_id 不同ID的说明参见 用户相关的 ID 概念
      userIdType - 用户 ID 类型 open_id/union_id/user_id 默认值:open_id
      departmentIdType - 返回值的部门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_token
      body - 请求体
      返回:
      响应结果
    • postIMV1Messages

      @NonNull public @NonNull Response<DataResult<IMV1Messages>> postIMV1Messages(@NonNull @NonNull String authorization, @NonNull @NonNull String receiveIdType, @NonNull @NonNull PostIMV1MessagesRequestBody body)
      参数:
      authorization - tenant_access_token
      receiveIdType - 消息接收者id类型 open_id/user_id/union_id/email/chat_id
      body - 请求体
      返回:
      响应结果
    • 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_token
      messageId - 待更新的消息的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_token
      messageId - 待回复的消息的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_token
      messageId - 待查询资源对应的消息ID
      fileKey - 待查询资源的key
      type - 资源类型 image/file
      返回:
      响应结果
    • postInteractiveV1CardUpdate

      @NonNull public @NonNull Response<Result> postInteractiveV1CardUpdate(@NonNull @NonNull String authorization, @NonNull @NonNull PostInteractiveV1CardUpdateRequestBody body)
      参数:
      authorization - tenant_access_token
      body - 请求体
      返回:
      响应结果
    • postMessageV4BatchSend

      @NonNull public @NonNull Response<DataResult<PostMessageV4BatchSendData>> postMessageV4BatchSend(@NonNull @NonNull String authorization, @NonNull @NonNull PostMessageV4BatchSendRequestBody body)
      参数:
      authorization - tenant_access_token
      body - 请求体
      返回:
      响应结果
    • getIMV1Chats

      @NonNull public @NonNull Response<DataResult<GetIMV1ChatsData>> getIMV1Chats(@NonNull @NonNull String authorization, String userIdType, String pageToken, Integer pageSize)
      参数:
      authorization - tenant_access_token 或 user_access_token
      userIdType - 用户 ID 类型 open_id/union_id/user_id 默认值:open_id
      pageToken - 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 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_token
      chatId - 群 ID,详情参见 群ID 说明
      memberIdType - 群成员 用户 ID 类型,详情参见 用户相关的 ID 概念
      pageToken - 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
      pageSize - 分页大小 默认值:20 最大值:100
      返回:
      响应结果