Open PeterTheOne opened 5 years ago
I checked out the twitter API a bit, first I wanted to try to use https://github.com/ttezel/twit to subscribe to direct_message but twitter deprecated some user streaming endpoint, so twitter account webhooks seem to be the way to go and https://github.com/super-ienien/twitter-webhooks looks good.
See also https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/getting-started-with-webhooks and https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/account-activity-data-objects#direct_message_events
I like the idea of using webhooks (especially since streaming could end at any time). I plan to start a PR to get Express up and running to handle the webhook calls.
I checked out the twitter API a bit, first I wanted to try to use https://github.com/ttezel/twit to subscribe to direct_message but twitter deprecated some user streaming endpoint, so twitter account webhooks seem to be the way to go and https://github.com/super-ienien/twitter-webhooks looks good.
See also https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/getting-started-with-webhooks and https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/guides/account-activity-data-objects#direct_message_events