van

Fanfou SDK in Python


Keywords
fanfou
License
MIT
Install
pip install van==0.0.6

Documentation

Van - Fanfou SDK

https://travis-ci.org/j178/van.svg?branch=master Documentation Status

详细文档请前往 ➔ Readthedocs

Example

from van import Fan

fan = Fan(consumer_key, consumer_secret)
fan.xauth(username,password)
# or use oauth
# url = fan.authorization_url()
# visit the authorization url and copy the redirect url
# fan.oauth(redirect url)
fan.update_status('你好啊,李银河!')

Installation

van 只支持 Python3, 请前往官网下载安装 Python 3.5 以上版本。

如果你是开发者,你也可以帮助我兼容 Python2

之后可以使用 pip 安装:

pip3 install van

或者下载源码安装:

git clone https://github.com/j178/van
cd van
pip3 install . --user

申请应用

要使用 van 你还需要在饭否中申请一个应用:

  1. http://fanfou.com/apps 中创建新应用
  2. 应用名称、主页、描述等信息可以随意填写
  3. 记录下 Consumer Key 和 Consumer Secret