Hello, so I am fairly new to twitter’s API and even newer to using in a Node.JS setting for my twitter bot. I want to search all the tweets that are currently being posted in order to produce a sort of chart that measures what is twitter talking about now (politics, sports, etc.).
Now, my understanding, in order to search a tweet you have to give it some sort of parameter as follows:
var params = {
q: '#aprilfools, #aprilfoolsday', // REQUIRED
result_type: 'recent', //recent tweets only.
lang: 'en'
}
But I am not sure how I can include a time period in it, I tried looking it up, but it did not help or the answer wasn’t actually working. May have used the old API most likely. SO I guess just to wrap it, how can I fetch all tweets currently posted between a specific time period without having to specify a query parameter?