diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 41c6d9ad..00000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[bumpversion] -current_version = 1.8.0 -commit = True -tag = True - -[bumpversion:file:werobot/__init__.py] - diff --git a/docs/changelog.rst b/docs/changelog.rst index 9a58ba2e..363a0d8c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,5 +1,11 @@ Changelog ============= + +Version 1.10.0 +---------------- ++ 在 Client 中增加对 :ref:`上传图文消息素材` 的支持 ( `#493 `_ ) ++ 在 Client 中增加对 :ref:`群发接口` 的支持 ( `#493 `_ ) + Version 1.9.0 ---------------- + 在 Client 中增加对 :ref:`用户标签管理` 的支持 ( `#426 `_ ) diff --git a/docs/client.rst b/docs/client.rst index e091c832..1a8e96e3 100644 --- a/docs/client.rst +++ b/docs/client.rst @@ -80,6 +80,16 @@ .. automethod:: Client.send_news_message .. automethod:: Client.send_miniprogrampage_message +群发接口 +`````````````````````````````` + +.. automethod:: Client.send_mass_msg +.. automethod:: Client.delete_mass_msg +.. automethod:: Client.send_mass_preview_to_user +.. automethod:: Client.get_mass_msg_status +.. automethod:: Client.get_mass_msg_speed +.. automethod:: Client.delete_mass_msg + 用户管理 ------------ @@ -161,6 +171,11 @@ .. automethod:: Client.delete_permanent_media +上传图文消息素材 +`````````````````````````````` + +.. automethod:: Client.upload_news + 修改永久图文素材 `````````````````````````````` 详细请参考 http://mp.weixin.qq.com/wiki/10/c7bad9a463db20ff8ccefeedeef51f9e.html diff --git a/werobot/__init__.py b/werobot/__init__.py index e6b84d26..d142f754 100644 --- a/werobot/__init__.py +++ b/werobot/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.9.0' +__version__ = '1.10.0' __author__ = 'whtsky' __license__ = 'MIT' diff --git a/werobot/client.py b/werobot/client.py index 0e438fe4..bfab4b53 100644 --- a/werobot/client.py +++ b/werobot/client.py @@ -1148,19 +1148,23 @@ def untag_users(self, tag_id, open_id_list): def upload_news(self, articles): """ - 上传图文消息素材。 - 具体请参考:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html#1 - articles = [{ - "thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p", - "author":"xxx", - "title":"Happy Day", - "content_source_url":"www.qq.com", - "content":"content", - "digest":"digest", - "show_cover_pic":1, - "need_open_comment":1, - "only_fans_can_comment":1 - }] + 上传图文消息素材 :: + + articles = [{ + "thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p", + "author":"xxx", + "title":"Happy Day", + "content_source_url":"www.qq.com", + "content":"content", + "digest":"digest", + "show_cover_pic":1, + "need_open_comment":1, + "only_fans_can_comment":1 + }] + + 具体请参考: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html#1 + + :param articles: 上传的图文消息数据。 :return: 返回的 JSON 数据包。 """