Skip to content

Commit

Permalink
Merge pull request #501 from offu/release_1.10.0
Browse files Browse the repository at this point in the history
chore(release): version 1.10.0
  • Loading branch information
helloqiu authored Oct 20, 2019
2 parents 2203821 + 483c793 commit 9e35861
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 21 deletions.
7 changes: 0 additions & 7 deletions .bumpversion.cfg

This file was deleted.

6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Changelog
=============

Version 1.10.0
----------------
+ 在 Client 中增加对 :ref:`上传图文消息素材` 的支持 ( `#493 <https://github.com/offu/WeRoBot/pull/493>`_ )
+ 在 Client 中增加对 :ref:`群发接口` 的支持 ( `#493 <https://github.com/offu/WeRoBot/pull/493>`_ )

Version 1.9.0
----------------
+ 在 Client 中增加对 :ref:`用户标签管理` 的支持 ( `#426 <https://github.com/offu/WeRoBot/pull/426>`_ )
Expand Down
15 changes: 15 additions & 0 deletions docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

用户管理
------------

Expand Down Expand Up @@ -161,6 +171,11 @@

.. automethod:: Client.delete_permanent_media

上传图文消息素材
``````````````````````````````

.. automethod:: Client.upload_news

修改永久图文素材
``````````````````````````````
详细请参考 http://mp.weixin.qq.com/wiki/10/c7bad9a463db20ff8ccefeedeef51f9e.html
Expand Down
2 changes: 1 addition & 1 deletion werobot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.9.0'
__version__ = '1.10.0'
__author__ = 'whtsky'
__license__ = 'MIT'

Expand Down
30 changes: 17 additions & 13 deletions werobot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 数据包。
"""
Expand Down

0 comments on commit 9e35861

Please sign in to comment.