简体   繁体   中英

Webhook for twitter

I'm developing a tweet fetcher for a ruby on rails application and I want to user the official ruby gem for that. I experimented quite a bit and it all works nice. But I'm wondering how can I get a notification when a certain event happens (Anyone retweets, mentions me, uses a hashtag, ...). Are there any webhooks that twitter provides? If not what is best practise to workaround that (User based fetching, automatic request every x minutes, ...)?

Thanks for any directions.

Best regards

You need to create a Twitter app for your purpose. Refer dev.twitter.com to get more details.

Through this Twitter app, you can get your required tweet details.

It is bit vague. But the Twitter developer website will give you more details.

This URL will help you on accessing Twitter data using Ruby On Rails.

Twitter doesn't have webhooks. You can use the Twitter Streaming API which will be closest to real-time or you can poll the REST API.

Polling can be a pain because of their rate limits, so streaming is your best bet.

I'm also looking for a solution. I see Zapier talking about posting to a webhook on some twitter events.

But it kind of looks like there will be significant latency, on the order of 5 or 15 minutes depending on how much you pay them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM