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

Can't get site streams to work #2

Closed
deremer opened this issue May 1, 2012 · 2 comments
Closed

Can't get site streams to work #2

deremer opened this issue May 1, 2012 · 2 comments

Comments

@deremer
Copy link

deremer commented May 1, 2012

Hi,

This likely isn't a bug, but just in case I thought I'd ask.

I can get 'user' and public timeline streams to work no problem. But I can't seem to get site streams to work. Have you tested this and gotten it to operate correctly? If so is there something I am doing wrong that is preventing me from getting any events?

Here's what I'm doing...

-Creating an instance of Twit
-Using the app owner's token/secret as well as the app's consumer key/secret
-I starting a 'site' stream as below following users that have authenticated with my app

T.stream('site', {'follow': userIds.join(',')}, function (stream) {
stream.on('tweet', function (tweet) {
console.log(tweet);
}
})

But I get nothing when I tweet from one of my test user accounts. If however, I change 'site' to 'user' or 'statuses/filter', I get the update right away.

What am I doing wrong? Thanks in advance for your help and thanks for making this awesome module.

@deremer
Copy link
Author

deremer commented May 2, 2012

I apologize. I'm an idiot. It's still in beta, so still need to sign up for access. https://dev.twitter.com/docs/streaming-api/site-streams#Apply_for_Access_

@deremer deremer closed this as completed May 2, 2012
@ttezel
Copy link
Owner

ttezel commented May 2, 2012

Cool, great to hear.

netik pushed a commit to twothinkinc/twit that referenced this issue Jun 3, 2020
Added an Direct message example for Twit API readme docs
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