Skip to content

Commit

Permalink
Add WeChatScan documentation in client section
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 10, 2016
1 parent f57a4a0 commit 9d94ee0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@ JS-SDK 接口

.. autoclass:: WeChatWiFi
:members:

微信扫一扫接口
----------------------------------

.. autoclass:: WeChatScan
:members:
4 changes: 2 additions & 2 deletions wechatpy/client/api/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ def publish_product(self, standard, key):
"""
提交审核商品 shortcut 接口
等同于调用 ``modify_product_status(standard, key, 'on')
等同于调用 ``modify_product_status(standard, key, 'on')``
"""
return self.modify_product_status(standard, key, 'on')

def unpublish_product(self, standard, key):
"""
取消发布商品 shortcut 接口
等同于调用 ``modify_product_status(standard, key, 'off')
等同于调用 ``modify_product_status(standard, key, 'off')``
"""
return self.modify_product_status(standard, key, 'off')

Expand Down

0 comments on commit 9d94ee0

Please sign in to comment.