在Identi.ca中使用tweepy Library与Python
题
我正在使用Tweepy Library为Python的桌面制作小型新闻应用程序。正如我在主网页中看到的那样: http://github.com/joshthecoder/tweepy 它具有对Identi.ca的支持,但我无法正确登录。为了验证我的确:
auth = tweepy.BasicAuthHandler(username, password)
api = tweepy.API(host = 'identi.ca/api')
检查我是否正确登录:
if api.verify_credentials() is False:
print 'Unable to log in, check credentials and server status\n'
return 1
else:
print 'Correctly logged in!\n'
return 0
这总是返回1 :(
请帮助吗?谢谢! :d
PD:当然,用户名和密码是正确的凭据:)
解决方案
使用 identi.ca
作为主机和设置 api_root
到 /api
如该访问识别API的正确方法 tweepy文档.
不隶属于 StackOverflow