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

通讯录管理-标签管理

Link to this section Summary

Types

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

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

Link to this section Types

@type tag_id() :: integer()

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

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

@type tag_id_list() :: [tag_id()]
@type tag_name() :: String.t()

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

Link to this section Functions

Link to this function

add_user(client, tag_id, userid_list, party_id_list)

View Source

增加标签成员 - 官方文档

Link to this function

create(client, tag_name, tag_id \\ nil)

View Source
@spec create(WeChat.Work.client(), tag_name(), tag_id()) :: WeChat.response()

创建标签 - 官方文档

@spec delete(WeChat.Work.client(), tag_id()) :: WeChat.response()

删除标签 - 官方文档

Link to this function

delete_user(client, tag_id, userid_list, party_id_list)

View Source

删除标签成员 - 官方文档

@spec list(WeChat.Work.client()) :: WeChat.response()

获取标签列表 - 官方文档

Link to this function

list_user(client, tag_id)

View Source
@spec list_user(WeChat.Work.client(), tag_id()) :: WeChat.response()

获取标签成员 - 官方文档

Link to this function

update(client, tag_id, tag_name)

View Source
@spec update(WeChat.Work.client(), tag_id(), tag_name()) :: WeChat.response()

更新标签名字 - 官方文档