| 程序包 | 说明 |
|---|---|
| com.jeecg.dingtalk.api.core.response | |
| com.jeecg.dingtalk.api.core.util | |
| com.jeecg.dingtalk.api.department | |
| com.jeecg.dingtalk.api.message | |
| com.jeecg.dingtalk.api.user |
| 限定符和类型 | 方法和说明 |
|---|---|
Response<T> |
Response.setErrcode(Integer errcode) |
Response<T> |
Response.setErrmsg(String errmsg) |
Response<T> |
Response.setRequest_id(String request_id) |
Response<T> |
Response.setResult(T result) |
| 构造器和说明 |
|---|
Response(Response origin) |
Response(Response origin,
T result) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Response<T> |
HttpUtil.post(String url,
String output,
Type... types)
http post请求
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response<Integer> |
JdtDepartmentAPI.create(Department department,
String accessToken)
创建部门
https://developers.dingtalk.com/document/app/create-a-department-v2 |
static Response<com.alibaba.fastjson.JSONObject> |
JdtDepartmentAPI.delete(int dept_id,
String accessToken)
根据部门ID删除指定部门
https://developers.dingtalk.com/document/app/delete-a-department-v2 |
static Response<Department> |
JdtDepartmentAPI.getDepartmentById(int dept_id,
String accessToken)
根据dept_id获取部门详情
https://developers.dingtalk.com/document/app/query-department-details0-v2 |
static Response<List<Integer>> |
JdtDepartmentAPI.getListParentByDept(String dept_id,
String accessToken)
获取指定部门的所有父部门列表
https://developers.dingtalk.com/document/app/query-the-list-of-all-parent-departments-of-a-department |
static Response<List<DeptParentResponse>> |
JdtDepartmentAPI.getListParentByUser(String userid,
String accessToken)
获取指定用户的所有父部门列表
https://developers.dingtalk.com/document/app/queries-the-list-of-all-parent-departments-of-a-user |
static Response<List<Integer>> |
JdtDepartmentAPI.getListSubId(int dept_id,
String accessToken)
获取子部门ID列表
https://developers.dingtalk.com/document/app/obtain-a-sub-department-id-list-v2 |
static Response<List<Department>> |
JdtDepartmentAPI.listByParentId(int dept_id,
String accessToken)
根据父ID获取子部门列表(不包含子部门的子部门)
https://developers.dingtalk.com/document/app/obtain-the-department-list-v2 |
static Response<List<Department>> |
JdtDepartmentAPI.listByRoot(String accessToken)
获取根部门下的子部门列表(不包含子部门的子部门)
https://developers.dingtalk.com/document/app/obtain-the-department-list-v2 |
static Response<com.alibaba.fastjson.JSONObject> |
JdtDepartmentAPI.update(Department department,
String accessToken)
更新部门信息
https://developers.dingtalk.com/document/app/update-a-department-v2 |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Response<com.alibaba.fastjson.JSONObject>> |
JdtDepartmentAPI.batchDeletePseudo(Collection<Integer> deptIds,
String accessToken)
伪批量删除部门(for循环调接口)
|
static List<Response<Department>> |
JdtDepartmentAPI.listAllResponse(String accessToken)
非官方API接口:获取钉钉的所有部门,平铺返回,返回失败结果
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response<com.alibaba.fastjson.JSONObject> |
JdtMessageAPI.recallMessage(int agent_id,
String msg_task_id,
String accessToken)
撤回消息。
|
static Response<String> |
JdtMessageAPI.sendActionCardMessage(Message<ActionCardMessage> message,
String accessToken)
发送卡片消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendFileMessage(Message<FileMessage> message,
String accessToken)
发送文件消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendImageMessage(Message<ImageMessage> message,
String accessToken)
发送图片消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendLinkMessage(Message<LinkMessage> message,
String accessToken)
发送链接消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendMarkdownMessage(Message<MarkdownMessage> message,
String accessToken)
发送Markdown消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendTextMessage(Message<TextMessage> message,
String accessToken)
发送文本消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
static Response<String> |
JdtMessageAPI.sendVoiceMessage(Message<VoiceMessage> message,
String accessToken)
发送语音消息
https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages |
| 限定符和类型 | 方法和说明 |
|---|---|
static Response<String> |
JdtUserAPI.create(User user,
String accessToken)
创建用户
https://developers.dingtalk.com/document/app/user-information-creation |
static Response<com.alibaba.fastjson.JSONObject> |
JdtUserAPI.delete(String userid,
String accessToken)
删除用户
https://developers.dingtalk.com/document/app/delete-a-user |
static Response<User> |
JdtUserAPI.getUserById(String userid,
String accessToken)
根据userid获取用户详情
https://developers.dingtalk.com/document/app/query-user-details |
static Response<Integer> |
JdtUserAPI.getUserCount(boolean onlyActive,
String accessToken)
获取员工人数
调用本接口获取员工人数。 |
static Response<Integer> |
JdtUserAPI.getUserCount(String accessToken)
获取员工人数,包含未激活钉钉的人员数量
|
static Response<String> |
JdtUserAPI.getUseridByMobile(String mobile,
String accessToken)
根据手机号获取userid
https://developers.dingtalk.com/document/app/query-users-by-phone-number |
static Response<String> |
JdtUserAPI.getUseridByUnionid(String unionid,
String accessToken)
根据unionid获取用户userid
https://developers.dingtalk.com/document/app/query-a-user-by-the-union-id |
static Response<PageResult<User>> |
JdtUserAPI.getUserListByDeptId(GetUserListBody body,
String accessToken)
获取部门用户详情。
|
static Response<List<String>> |
JdtUserAPI.getUserListIdByDeptId(int deptId,
String accessToken)
获取部门用户userid列表。
|
static Response<PageResult<User>> |
JdtUserAPI.getUserListSimpleByDeptId(GetUserListBody body,
String accessToken)
获取部门用户基础信息。
|
static Response<com.alibaba.fastjson.JSONObject> |
JdtUserAPI.update(User user,
String accessToken)
更新用户信息
https://developers.dingtalk.com/document/app/user-information-update |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Response<com.alibaba.fastjson.JSONObject>> |
JdtUserAPI.batchDeletePseudo(Collection<String> userIds,
String accessToken)
伪批量删除用户(for循环调接口)
|
Copyright © 2022. All rights reserved.