我在使用Foursquare API时遇到一些问题。我的最终目标是从foursquareAPI获取用户的信息(profile stats、twitter id、facebook id等等)。我想通过Twitter的ID或者名字来搜索用户。我的第一次尝试是使用foursquare推荐的python包装器foursquare。以下是文档:https://github.com/mLewisLogic/foursquare
下面是我相当简单的代码:
import foursquare
client_id = xxx
client_secret = yyy
client = foursquare.Foursquare(client_id, client_secret)
print client.users.search(params={'twitter': 'nike'})
我的错误是:
^{pr2}$任何帮助都会很好。另外,如果有更好的API或者使用urllib2或其他东西的更简单的方法,那么任何建议都将不胜感激。还有人知道mLewisLogic是否是foursquare API v2的最新版本吗?还有更完整的文件吗?提前谢谢!在
添加访问令牌
相关问题 更多 >
编程相关推荐