MCPcopy
hub / github.com/wechatpy/wechatpy / untag_user

Method untag_user

wechatpy/client/api/tag.py:94–109  ·  view source on GitHub ↗

批量为用户取消标签 :param tag_id: 标签 ID :param user_id: 用户 ID, 可以是单个或者列表 :return: 返回的 JSON 数据包

(self, tag_id, user_id)

Source from the content-addressed store, hash-verified

92 return self._post('tags/members/batchtagging', data=data)
93
94 def untag_user(self, tag_id, user_id):
95 """
96 批量为用户取消标签
97
98 :param tag_id: 标签 ID
99 :param user_id: 用户 ID, 可以是单个或者列表
100
101 :return: 返回的 JSON 数据包
102
103 """
104 data = {'tagid': tag_id}
105 if isinstance(user_id, (tuple, list)):
106 data['openid_list'] = user_id
107 else:
108 data['openid_list'] = [user_id, ]
109 return self._post('tags/members/batchuntagging', data=data)
110
111 def get_user_tag(self, user_id):
112 """

Callers

nothing calls this directly

Calls 1

_postMethod · 0.45

Tested by

no test coverage detected