Node.jsで、TwitterのAPIを叩こうと思ったら、結構苦労した。 まだ、納得できる解決策にたどり着いていない。 環境 node v0.10.24 2014年1月31日 Twitter API v1.1とは 2013年6月末に、Twitter APIがv1.0からv1.1に変更された。 Node.jsのTwitterモジュールはいくつかあるんだけど、ソースコードを見ると、いくつかのメソッド(あるいは大部分)がv1.1に未対応だったりして、完全にv1.1に対応しているモジュールを探すのに苦労している。 今回実験したのは、ntwitterとnode-twitterの2つのモジュールが中心だが、どちらもv1.1に完全には対応していない様子。他のモジュールも、ソースコードを見る限り、怪しいか対して便利じゃない。 たどり着いた暫定的な方法 まず結論。 Streaming APIを使う分には、