添加管理员

请求URL

1
https://dingtalk.yijingcloud.com/cool/addAdmin?conversationId=cidBUESuG8PMNm3ZaVug55Zmg==&dingUserIds=3130162403784614,2842200349792907

请求体

名称 类型 必填 描述
conversationId String 群组ID
dingUserIds List 用户的钉钉id集合

响应体示例

  • Success
1
2
3
4
5
6
7
{
"errCode":0,
"errMsg":"ok",
"data":{

}
}

删除管理员

请求URL

1
https://dingtalk.yijingcloud.com/cool/delAdmin?conversationId=cidBUESuG8PMNm3ZaVug55Zmg==&dingUserIds=3130162403784614,2842200349792907

请求体

名称 类型 必填 描述
conversationId String 群组ID
dingUserIds List 用户的钉钉id集合

响应体示例

  • Success
1
2
3
4
5
6
7
{
"errCode":0,
"errMsg":"ok",
"data":{

}
}

查询管理员或者普通用户列表

请求URL

1
https://dingtalk.yijingcloud.com/cool/queryUserList?conversationId=cidBUESuG8PMNm3ZaVug55Zmg==&isAdmin=true

请求体

名称 类型 必填 描述
conversationId String 群组ID
isAdmin boolean 用户类型(true表示管理员列表 false表示普通用户列表) 默认为false

响应体示例

  • Success
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"errCode":0,
"errMsg":"ok",
"data":{
"userList":[
{
"conversationId":"12345", // 群组ID
"userId":"zhangsan1", // 用户ID
"userName":"张三", //用户名
"avatar":"https://wallpaper.zxrmrf.com/94401.jpg" //头像,可能为空,可能需要默认找个头像顶一下 - -

},
{
"conversationId":"12345",
"userId":"zhangsan2",
"userName":"张老三",
"avatar":"https://wallpaper.zxrmrf.com/94405.jpg"
}
]
}
}

判断是否管理员

请求URL

1
https://dingtalk.yijingcloud.com/cool/isAdmin?conversationId=cidBUESuG8PMNm3ZaVug55Zmg==&dingUserId=3130162403784614

请求体

名称 类型 必填 描述
conversationId String 群组ID
dingUserId String 当前用户的钉钉id

响应体示例

  • Success
1
2
3
4
5
6
7
{
"errCode":0,
"errMsg":"ok",
"data":{
"isAdmin":false //true管理员,false非管理员
}
}



根据AWS中UID获取钉钉USERID

请求CMD

1
com.actionsoft.apps.dingding.yijing_query_ding_userid

请求参数

名称 类型 必填 描述
cmd String
uids String AWS中用户ID集合用”,”分隔

请求URL示例

1
http://192.168.0.191:8088/portal/r/jd?sid=8ea24d7a-1008-42be-bc97-6b5d64c5cb63&cmd=com.actionsoft.apps.dingding.yijing_query_ding_userid&uids=111,222

响应体示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"msg":"",
"result":"ok",
"data":{
"dingUserIds":[
"1767676",
"2767676",
"3767676"
],
"suiteKey":"suite4m8iz4sdfzhwdvgk",
"coolAppCode":"COOLAPP-1-101E2824F22F213DF8A40000",
"corpId":"7890111111111"
},
"id":":RO;"
}

请求URL

1
192.168.0.191:8077/cool/isAdmin?conversationId=1234&dingUserId=12345678

请求体

名称 类型 必填 描述
conversationId String 群组ID
dingUserId String 当前用户的钉钉id

响应体示例

  • Success
1
2
3
4
5
6
7
{
"errCode":0,
"errMsg":"ok",
"data":{
"isAdmin":false //true管理员,false非管理员
}
}