我一直在尝试使用OmniAuth身份验证时获取推文列表。 在使用Omni auth授权用户后,我将oauth_token和secret传递给OAuth :: AccessToken实例。
当我尝试使用以下代码获取推文时
response = access_token.request(:get, "http://api.twitter.com/1/statuses/user_timeline.json?count=10&page=2")
当我以文本格式打印回复时,我只得到200OK。
我在做错了什么?请建议。感谢
答案 0 :(得分:0)
请求返回Faraday :: Response。如果您想要此请求的内容,请调用#body方法
p response.body