Search code examples
twitterlistenersajax-polling

how to trigger an event whenever a tweet is updated


I wanted to know how to trigger an event (say. storing a tweet from a particular user in a text file or mailing it etc.) when a particular user updates his tweets. Do we need to poll for the updates every few seconds or is there any other way out.


Solution

  • You can poll every few seconds (more like every minute, otherwise you'll run into the API rate limit), or you could look at using the Streaming API