【发布时间】:2016-03-25 05:48:09
【问题描述】:
使用 python 和 soundcloud api,我如何返回我的关注者列表;他们的用户名和ID? 我跑了
followers = client.get('/me/followers')
print followers
for user in followers:
print " "
print user.id
print user.username
但这只会返回
soundcloud.resource.Resource object at NUMBER
TypeError: 'Resource' object is not iterable
我尝试做的所有其他事情都很好,我使用用户名+密码登录方法进行身份验证并获取令牌...但是当我尝试查看关注者而不是应该是列表时,我仍然只返回一个资源资源 我可能使用了错误的 get 方法吗?
【问题讨论】:
标签: python api soundcloud