View Source WeChat.Work.Contacts.Tag (wechat v0.18.0)

通讯录管理-标签管理

Summary

Types

每个标签都有唯一的标签id - 官方文档

标签名称,长度限制为32个字以内(汉字或英文字母),标签名不可与其他标签重名

Types

tag_id()

@type tag_id() :: integer()

每个标签都有唯一的标签id - 官方文档

在管理后台->“通讯录”->“标签”,选中某个标签,在右上角会有“标签详情”按钮,点击即可看到

tag_id_list()

@type tag_id_list() :: [tag_id()]

tag_name()

@type tag_name() :: String.t()

标签名称,长度限制为32个字以内(汉字或英文字母),标签名不可与其他标签重名

Functions

add_user(client, agent, tag_id, userid_list, party_id_list)

增加标签成员 - 官方文档

create(client, agent, tag_name, tag_id \\ nil)

创建标签 - 官方文档

delete(client, agent, tag_id)

删除标签 - 官方文档

delete_user(client, agent, tag_id, userid_list, party_id_list)

删除标签成员 - 官方文档

list(client, agent)

获取标签列表 - 官方文档

list_user(client, agent, tag_id)

获取标签成员 - 官方文档

update(client, agent, tag_id, tag_name)

更新标签名字 - 官方文档