shanbay.com的python包装器
shanba的Python项目详细描述
Python湾
(www.shanbay.com)的API
- 文档:http://python-shanbay.rtfd.org
- Github:https://github.com/mozillazg/python-shanbay
- 自由软件:麻省理工学院许可证
- 圆周率:https://pypi.python.org/pypi/shanbay
- python版本:2.6、2.7、pypy、3.3、3.4、3.5
功能
- 发送/回复消息
- 管理团队
- 支持Shanbay API v1
安装
要安装python shanbay,只需:
$ pip install shanbay
基本用法
非统组织标志
>>>fromshanbayimportAPI>>>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)
>>>fromshanbayimportShanbay,Message>>>shanbay=Shanbay('username','password')>>>shanbay.login()True>>>message=Message(shanbay)>>>message.send_message(['mozillazg'],'hello','hello')True
更改日志
0.3.6(2017-02-09)
- ^{TT1}$
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
- “报到员”
0.2.1(2014-06-24)
- 团队信息
- shanbay.login()是真的
0.2.0(2014-06-09)
- 新南威尔士州
- 各API口稫除@属性已完成
0.1.1(2014-05-15)
- 美国石油学会
- 美国石油学会
- 调整API口
检验