cjbarrie / academictwitteR

Repo for academictwitteR package to query the Twitter Academic Research Product Track v2 API endpoint.
Other
272 stars 59 forks source link

[FR] Make `start_tweet` and `end_tweet` optional #338

Closed chainsawriot closed 2 years ago

chainsawriot commented 2 years ago

Describe the solution you'd like

https://github.com/cjbarrie/academictwitteR/blob/2d3744a00d3455a338374127bfb8bc0d46d8a9c4/R/get_all_tweets.R#L71-L76

Currently, both are required. But the official API documentation says the corresponding parameters (start_time and end_time) are optional and they will be filled with some sensible default values: start_time = 30 days ago; end_time = now -30 seceond

It makes a lot of sense if I want to search something from so long ago up to now, I can simply search ignore the end_tweet parameter.

Anything else?

No response