2012-09-01 3 views
0

트위터 API로 재생하려고합니다. oauth 프로세스를 수행했지만 user_timeline을 얻으려고하면 빈 배열이 생깁니다 (인증 오류가없는 경우 http 응답은 200입니다). 이것이 일어날 수있는 이유가 있습니까? 트위터가있는 빈 배열 get user_timeline

내가 얻을 HTTP 응답이다 (나는 ... 모든 OAuth는 데이터를 제거)

{'status': '200', 'x-ratelimit-remaining': '337', 'content-location': u'http://api.twitter.com/1/statuses/user_timeline.json?oauth_body_hash=....', 'x-transaction': '346e76fdbb36e2d8', 'set-cookie': 'guest_id="v1:134652550000237401"; Expires=Mon, 1-Sep-2014 18:51:40 GMT; Path=/; Domain=.twitter.com, lang=en', 'expires': 'Tue, 31 Mar 1981 05:00:00 GMT', 'x-access-level': 'read-write', 'content-length': '2', 'server': 'tfe', 'last-modified': 'Sat, 01 Sep 2012 18:51:40 GMT', 'x-ratelimit-limit': '350', 'pragma': 'no-cache', 'cache-control': 'no-cache, no-store, must-revalidate, pre-check=0, post-check=0', 'date': 'Sat, 01 Sep 2012 18:51:40 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json;charset=utf-8', '-content-encoding': 'gzip', 'x-ratelimit-class': 'api_identified', 'x-ratelimit-reset': '1346526376'} 

하지만 내용 (JSON 형식으로) 그냥 빈 배열

덕분이다.

답변

0

이것은 멍청한 문제였습니다. 문제는 사용자가 트윗이 없기 때문에 비어있는 것입니다. 아무도 이것에 시간을 보내지 않기를 바랍니다.