MCPcopy
hub / github.com/wechatpy/wechatpy / update

Method update

wechatpy/client/api/tag.py:40–58  ·  view source on GitHub ↗

编辑标签 :param tag_id: 标签id,由微信分配 :param name: 标签名字(30个字符以内) :return: 返回的 JSON 数据包

(self, tag_id, name)

Source from the content-addressed store, hash-verified

38 return res
39
40 def update(self, tag_id, name):
41 """
42 编辑标签
43
44 :param tag_id: 标签id,由微信分配
45 :param name: 标签名字(30个字符以内)
46 :return: 返回的 JSON 数据包
47
48 """
49 name = to_text(name)
50 return self._post(
51 'tags/update',
52 data={
53 'tag': {
54 'id': int(tag_id),
55 'name': name
56 }
57 }
58 )
59
60 def delete(self, tag_id):
61 """

Callers 10

_handle_resultMethod · 0.45
_send_mass_messageMethod · 0.45
encryptMethod · 0.45
decryptMethod · 0.45
createMethod · 0.45
test_tag_updateMethod · 0.45
test_chat_updateMethod · 0.45
test_group_updateMethod · 0.45
test_update_menuMethod · 0.45

Calls 2

to_textFunction · 0.90
_postMethod · 0.45

Tested by 5

test_tag_updateMethod · 0.36
test_chat_updateMethod · 0.36
test_group_updateMethod · 0.36
test_update_menuMethod · 0.36