Hello,
I have been trying the new account activity api , it works fine for my account.
BUT I would like to listen to other users accounts also, as I did before using PHIREHOSE, and I do not understand where I have to add the users ids that I want to listen.
Before I used to give a list of 10 or more users and listen their information on real time , or listen for a specific word, how do i do that now?
Hi there,
You can add accounts to listen to by obtaining user access tokens generated for your app. These are typically obtained using the âSign-in with Twitterâ process, where the user approves access.
See these links for more information:
Managing webhooks and subscriptions
Authenticating users
thanks for your answer @snowman, is there a way of listening a list of users or words without having to ask for the user access tokens, like we did before with the user streams and site streams ?
Hi @remams8 from what Iâm reading here I think there may be some confusion between the different APIs.
How were you doing this streaming before? I get the feeling that you were using the Phirehose PHP library to use the statuses/filter endpoint and provide a list of users? Or, were you using Sitestreams previously - in which case, you would still have had to have users authenticate with your app in some way. Are you looking to consume just Tweets, or do you expect to also get events e.g. likes, Retweets, follows etc?
For the Account Activity API, this provides event messages on a per-user subscription basis. Youâd need to have users authenticate with your app to get their access tokens to add their subscription. Thereâs no way to receive events for user accounts other than your own without going through this process.
Hi @andypiper I was using phirehose to listen users, I used to get status updates and retweets updates, also updates when the users deleted a tweet. I donât know if for that I only need the statuses/filter or if I need the account activity API, I am kind of lost here.
If you were getting those events you must have been using user or site streams, and would have required the user credentials. If you want the same information in the future, you will need the Account Activity API. I apologize if I confused you, I just wanted to be sure we were answering the right question for you 
I just checked my script and in fact when I define my consumer for phirehome I seted it like this
$stream = new Consumer(OAUTH_TOKEN, OAUTH_SECRET, Phirehose::METHOD_FILTER);
and then I set my âfollowâ (users ids)
I am using
https://stream.twitter.com/1.1/statuses/
are you deprecating this stream too?
No, thatâs the standard statuses/filter endpoint which is not being removed in August. A replacement is on the roadmap, but thereâs no immediate need to update code here as thereâs nothing to migrate to at the moment.
thak you very much for all the informations @andypiper
1 Like