Metadata-Version: 1.1
Name: shanbay
Version: 0.3.6
Summary: Python wrapper for shanbay.com
Home-page: https://github.com/mozillazg/python-shanbay
Author: mozillazg
Author-email: mozillazg101@gmail.com
License: MIT
Description: python-shanbay
        ==============
        
        提供一系列操纵扇贝网 (www.shanbay.com) 的 API
        
        |Build| |PyPI version|
        
        
        
        * Documentation: http://python-shanbay.rtfd.org
        * GitHub: https://github.com/mozillazg/python-shanbay
        * Free software: MIT license
        * PyPI: https://pypi.python.org/pypi/shanbay
        * Python version: 2.6, 2.7, pypy, 3.3, 3.4, 3.5
        
        
        Features
        --------
        
        * send/reply message
        * manage team
        * support shanbay api v1
        
        
        Installation
        ------------
        
        To install python-shanbay, simply:
        
        .. code-block:: bash
        
            $ pip install shanbay
        
        
        Basic Usage
        -----------
        
        OAuth2 认证 API（可以通过 `这个脚本`__ 获取 token)
        
        __ https://gist.github.com/mozillazg/4af649ff88612b2de7c7
        
        .. code-block:: python
        
            >>> from shanbay import API
            >>> token = {
            "access_token": "7ANNoQFY02rJkqqm8Zi67aQ9N6ES8G",
            "expires_in": "1592000", "expires_at": 1328664099.868803,
            "token_type": "Bearer", "state": "H3rTN84NG2TdunSt9bG02acEkSNWiW",
            "scope": [ "read", "write" ]
            }
            >>>
            >>> api = API('client_id_xxyyyx', token)
            >>> api.user()
            {u'avatar': u'http://qstatic.shanbay.com/avatar/media_store/3034aee41d32d464aac362cf608cb735.png?imageView/1/w/80/h/80/',
         u'id': 1279912,
            u'nickname': u'\u266b mozillazg',
            u'username': u'mozillazg'}
            >>>
        
        用户名密码认证 API（不支持 REST API）
        
        .. code-block:: python
        
            >>> from shanbay import Shanbay, Message
            >>> shanbay = Shanbay('username', 'password')
            >>> shanbay.login()
            True
            >>> message = Message(shanbay)
            >>> message.send_message(['mozillazg'], 'hello', 'hello')
            True
        
        
        .. |Build| image:: https://api.travis-ci.org/mozillazg/python-shanbay.png?branch=master
           :target: https://travis-ci.org/mozillazg/python-shanbay
        .. |PyPI version| image:: https://img.shields.io/pypi/v/shanbay.svg
           :target: https://pypi.python.org/pypi/shanbay
        
        
        Changelog
        =========
        
        0.3.6 (2017-02-09)
        ------------------
        
        - ``requests`` 的最低依赖版本改为 ``2.9.0``
        
        0.3.5 (2017-01-20)
        ------------------
        - 修复用户名,密码登录功能失效的问题
        
        0.3.4 (2015-08-25)
        ------------------
        - 修复无法发送短信的问题
        
        0.3.3 (2015-01-13)
        ------------------
        - 修复扇贝改版导致"无法获取组员用户名导致发送短信失败"的问题
        - 修复扇贝改版导致"无法成功踢人"的问题
        
        0.3.2 (2014-08-22)
        ------------------
        - 小组管理页面改版
        
        0.3.1 (2014-08-05)
        -------------------
        - 修复"小组成员页面改版导致无法获取组员信息"
        
        
        0.3.0 (2014-07-19)
        -------------------
        - 封装 `新版扇贝官方 API`__
        - 修复"扇贝更改小组成员页面的 URL 导致无法获取组员信息"
        
        __ http://www.shanbay.com/developer/wiki/api_v1/
        
        
        0.2.1 (2014-06-24)
        -------------------
        
        - 修复 team.info 无法处理打卡率是 0% 的情况
        - 登录成功时，shanbay.login() 的返回值改为 True
        
        
        0.2.0 (2014-06-09)
        -------------------
        
        - 删除 ``shanbay.API``, 因为扇贝网不再支持 API v0.8, 并且新的 API 尚未释出
        - 各 api 接口移除 @property 装饰器
        
        
        0.1.1 (2014-05-15)
        ------------------
        
        - 新增站内消息 api
        - 新增小组管理 api
        - 调整 api 接口
        
        具体用法可以参考 tests/ 以及 python-shanbay-team-assistant_
        
        .. _python-shanbay-team-assistant:  https://github.com/mozillazg/python-shanbay-team-assistant/blob/develop/assistant.py
        
        
        0.1.0 (2014-03-31)
        ------------------
        
        - 封装 `扇贝网 API v0.8 <http://www.shanbay.com/help/developer/api>`__.
        
Keywords: shanbay,扇贝网
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Utilities
