jmathai / twitter-async

Twitter-async is a high performance wrapper for Twitter's OAuth API which provides parallel/asynchronous calls. Follow @apiclient for commit updates.
http://wiki.github.com/jmathai/twitter-async
Other
532 stars 125 forks source link

Twitter Streaming API with twitter-async #160

Open nzurita opened 11 years ago

nzurita commented 11 years ago

Hello, has anybody tried to call Stream API v1.1 with this library? The goal is to keep a connection alive and loop listening this connection, something like this but adding OAuth.

I've dived through twitter-async code and I guess the thing is in EpiOAuth::httpPost($url, $params = null, $isMultipart) where a new $stream parameter might be added.

Maybe try a home made version of it but just ask in case someone has already tried or in case @jmathai has some tips for me...

Cheers

jmathai commented 11 years ago

Never tried to access the stream API. I presume it would require opening a socket connection instead of using curl like the library is currently doing.