MCPcopy
hub / github.com/wechatpy/wechatpy / create

Method create

wechatpy/client/api/tag.py:10–23  ·  view source on GitHub ↗

创建标签 :param name: 标签名(30个字符以内) :return: 返回的 JSON 数据包

(self, name)

Source from the content-addressed store, hash-verified

8class WeChatTag(BaseWeChatAPI):
9
10 def create(self, name):
11 """
12 创建标签
13
14 :param name: 标签名(30个字符以内)
15 :return: 返回的 JSON 数据包
16
17 """
18 name = to_text(name)
19 return self._post(
20 'tags/create',
21 data={'tag': {'name': name}},
22 result_processor=lambda x: x['tag']
23 )
24
25 def get(self):
26 """

Callers 6

test_tag_createMethod · 0.45
test_chat_createMethod · 0.45
test_create_groupMethod · 0.45
test_create_menuMethod · 0.45
test_create_qrcodeMethod · 0.45

Calls 2

to_textFunction · 0.90
_postMethod · 0.45

Tested by 6

test_tag_createMethod · 0.36
test_chat_createMethod · 0.36
test_create_groupMethod · 0.36
test_create_menuMethod · 0.36
test_create_qrcodeMethod · 0.36