最小开关接口

Klout的Python项目详细描述


klout api

https://secure.travis-ci.org/erfaan/klout.png?branch=master

一个极简的klout api接口。使用此API 需要kloutdeveloper key。你可以注册 在

<http://klout.com/s/developers/v2>

完整的文档位于:

<https://klout.readthedocs.org/en/latest/>

设计哲学

Design Philosophy

快速启动

安装pypi包:

pip install Klout

这个简短的示例演示如何首先获取kloutid并使用该kloutid获取用户的分数:

from klout import *

# Make the Klout object
k = Klout('YOUR_KEY_HERE')

# Get kloutId of the user by inputting a twitter screenName
kloutId = k.identity.klout(screenName="erfaan").get('id')

# Get klout score of the user
score = k.user.score(kloutId=kloutId).get('score')

print "User's klout score is: %s" % (score)

# By default all communication is not secure (HTTP). An optional secure parameter
# can be sepcified for secure (HTTPS) communication
k = Klout('YOUR_KEY_HERE', secure=True)

# Optionally a timeout parameter (seconds) can also be sent with all calls
score = k.user.score(kloutId=kloutId, timeout=5).get('score')

许可证

麻省理工学院执照。参见license.txt 版权所有(c)2012 Irfan Ahmad

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何创建单例枚举映射?   java如何在Android视频视图中添加Cookie(标题)以支持旧版本的Android,至少到jellybean为止   Java Swing从单击中获取X,Y   java不兼容类型:int不能转换为数组中的字符串   用于写入文件的java相对文件路径   在Java中使用COLT求解线性系统的性能   java谁生成了在服务存在的进程中运行的主线程和循环器?   JAVARuntimeException:java。ClassCastException:java。lang.Long不能转换为java。串   java检查数据库连接处于活动状态   java Spring多对多未保存在表单提交上   java向Maven添加系统依赖项   爪哇和C++中迭代器的区别是什么?   java Getting“类型不匹配:在实例化映射列表时,无法将ArrayList<HashMap<String,String>>转换为List<Map<String,String>>”   javavaadin表容器并发修改   java错误膨胀类安卓。支持v7。小装置。FitWindowsFrameLayout   java如何在没有打开GL ES的情况下设置对象动画?