-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
CP_标签管理
Daniel Qian edited this page Oct 22, 2014
·
1 revision
要注意的是,通过API新建的标签默认处于解锁状态,要到管理员界面里把标签锁定,然后再刷新管理员界面,才能够在管理员界面删除标签
tagId = wxService.tagCreate("测试标签4");
wxService.tagUpdate(tagId, "测试标签-改名");
List<WxCpTag> tags = wxService.tagGet();
List<String> userIds = new ArrayList<String>();
userIds.add(userId);
wxService.tagAddUsers(tagId, userIds);
List<WxCpUser> users = wxService.tagGetUsers(tagId);
List<String> userIds = new ArrayList<String>();
userIds.add(userId);
wxService.tagRemoveUsers(tagId, userIds);
wxService.tagDelete(tagId);