public interface WxCpTpTagService
企业微信第三方开发-标签相关接口
| 限定符和类型 | 方法和说明 |
|---|---|
WxCpTpTagAddOrRemoveUsersResult |
addUsers2Tag(String tagId,
List<String> userIds,
List<String> partyIds)
增加标签成员.
|
String |
create(String name,
Integer id)
创建标签.
|
void |
delete(String tagId)
删除标签.
|
WxCpTpTagGetResult |
get(String tagId)
获取标签成员
|
List<WxCpTpTag> |
listAll()
获得标签列表.
|
WxCpTpTagAddOrRemoveUsersResult |
removeUsersFromTag(String tagId,
List<String> userIds,
List<String> partyIds)
移除标签成员.
|
void |
update(String tagId,
String tagName)
更新标签.
|
String create(String name, Integer id) throws WxErrorException
请求地址:https://qyapi.weixin.qq.com/cgi-bin/tag/create?access_token=ACCESS_TOKEN 文档地址:https://work.weixin.qq.com/api/doc/90001/90143/90346
name - 标签名称,长度限制为32个字以内(汉字或英文字母),标签名不可与其他标签重名。id - 标签id,非负整型,指定此参数时新增的标签会生成对应的标签id,不指定时则以目前最大的id自增。WxErrorExceptionvoid update(String tagId, String tagName) throws WxErrorException
tagId - 标签idtagName - 标签名WxErrorException - .void delete(String tagId) throws WxErrorException
tagId - 标签idWxErrorException - .WxCpTpTagGetResult get(String tagId) throws WxErrorException
tagId - WxErrorExceptionWxCpTpTagAddOrRemoveUsersResult addUsers2Tag(String tagId, List<String> userIds, List<String> partyIds) throws WxErrorException
tagId - 标签iduserIds - 用户ID 列表partyIds - 企业部门ID列表WxErrorException - .WxCpTpTagAddOrRemoveUsersResult removeUsersFromTag(String tagId, List<String> userIds, List<String> partyIds) throws WxErrorException
tagId - 标签iduserIds - 用户id列表partyIds - 企业部门ID列表WxErrorException - .List<WxCpTpTag> listAll() throws WxErrorException
WxErrorException - .Copyright © 2022. All rights reserved.