Retrieve tweets in real time and send emails with tweet text

like most support systems like zendesk do, I need a way to send an email for every new tweet with a tweet in it.

In Zendesk, we can connect a twitter account, so every tweet in that account will be transferred as a support ticket, so you can get them in real time or on twitter to send any HTTP request to a specific URL on each tweet ?

+5
source share
1 answer

I'm not sure exactly what you are trying to achieve?

If you need to allow users to attach a twitter account to your system, and every mention of this user about a new support ticket, this is really possible. You will need to look at the Twitter API documents.

https://dev.twitter.com/overview/documentation

In particular, look at mentions_timeline. From here, for each tweet you are looking at, for a specific user you can create a new ticket. You could further improve the logic by making sure that you did not register tickets for answers, etc., to make sure that you are not repeating registration incidents.

0
source

Source: https://habr.com/ru/post/1238987/


All Articles