twit
twit copied to clipboard
User stream stopped working.
Hello, user stream was working fine for a long time but it suddenly stopped working for me. I am using like this.
var stream = T.stream( 'user' );
stream.on( 'tweet', function(){} ):
It gives below error
{ Error: Bad Twitter streaming request: 404 at Object.exports.makeTwitError (/Volumes/mac2/programs/nodejs/nodejs_production/node_modules/twit/lib/helpers.js:74:13) at Request.
(/Volumes/mac2/programs/nodejs/nodejs_production/node_modules/twit/lib/streaming-api- connection.js:96:29)
User stream and Site stream are discontinued in favor of activity stream. It is not possible to use those to APIs anymore as Twitter removed them. If you do a bit of search here and in out there you see they have warned users about a year ago, and finally stopped it a few months back.
hi, and have we got a solution to bypass this issue from twitter ?
Nothing to bypass or fix here. They removed the whole APIs. Nothing anyone can do.
@maziyarpanahi do you have any examples of how to reply to mentions?
@maziyarpanahi could you please mention any working example latest user streams.
There is no such thing as user streams any more. You would need to implement code that supports the Account Activity API using webhooks. One such example app written in node is the Account Activity API dashboard from Twitter, you could take a look at how that works internally.