TwitterのAPIで「会話」を得ることはできるのか?
REST API Resourcesを使って一回のリクエストで「会話」を得る方法が分かりません。ドキュメントを読んだ感じ、出来ないというのが今の自分の見解。
任意のツイートに対する返信については、statuses/mentionsの結果をin_reply_to_status_idで絞り込めばとれます。
返信の返信の…という枝葉もとっていこうとすると、どうしたら良いのか分かりません。
Twitterの古いITSに"Conversation API"というタイトルで投稿されているのが見つかりましたが、特に進展はない様子。新しいITSに登録されない限りは進展もないんでしょう。
いったんREST APIの方をあきらめ、Echofonでどうやっているか見てみましたが、これもよく分かりません。Google Analyticsへのリクエスト、普通のREST APIへのリクエスト、userstream.twitter.comへのリクエストは確認できました。
Streaming APIについてはノータッチ出来ていたので、ここに可能性があるのかと思いドキュメントを読んでみました。
By default @replies are only sent from mutual followings. All @replies by followings can be enabled with the replies=all parameter. For example, if Alice follows Bob, but Alice doesn’t follow Carol, by default if Bob @replies Carol, Alice does not see the tweet. The default behavior mimics www.twitter.com and api.twitter.com behavior. If an application wishes to display all @replies, or a filtered subset of @replies, use replies=all.
https://dev.twitter.com/docs/streaming-api/user-streams
返信含めてごっそりとれるという理解で良いんでしょうか?