Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get event for multiple users. #11

Closed
Hirani-Pradeep opened this issue Aug 26, 2017 · 2 comments
Closed

Get event for multiple users. #11

Hirani-Pradeep opened this issue Aug 26, 2017 · 2 comments

Comments

@Hirani-Pradeep
Copy link

Hirani-Pradeep commented Aug 26, 2017

I want to get all event of multiple users.
Using User stream API will get the event for the single user but want to get the event for multiple users.

This code is working fine for the single user.

TwitterStreamingApi::userStream()
->onEventUsers(function(array $event) {
if ($event['event'] === 'favorite') {
echo "Our tweet {$event['target_object']['text']} got favourited by {$event['source']['screen_name']}";
}
})
->startListening();

@freekmurze
Copy link
Member

Listening for multiple users is not supported. You’ll find that even if you start multiple streams for single users, Twitter will shut down connections.

@Hirani-Pradeep
Copy link
Author

Hello,

  • We want to number of comments, likes, and retweets for multiple users.
  • And we want to live update data for multiple users.
    How to achieve above requirements.
    Please help us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants