在identi.ca中使用tweepy库和Python

在identi.ca中使用tweepy库和Python,python,tweepy,Python,Tweepy,我正在使用tweepy库用Python为我的桌面制作一个小型新闻应用程序。正如我在主网页中看到的:它支持identi.ca,但我无法正确登录。要验证身份,我需要: auth = tweepy.BasicAuthHandler(username, password) api = tweepy.API(host = 'identi.ca/api') 要检查我是否正确登录,请执行以下操作: if api.verify_credentials() is False: print 'Unable to

我正在使用tweepy库用Python为我的桌面制作一个小型新闻应用程序。正如我在主网页中看到的:它支持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:(

请帮点忙?谢谢


注意:当然,用户名和密码是正确的凭据:)

仅使用
identi.ca
作为主机,并将
api_root
设置为
/api
将是访问identi.ca api的正确方法,正如