Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
303 stars 31 forks source link

docs: fix wrong example of pagination, add count parameter #535

Closed ramiroaisen closed 1 month ago

ramiroaisen commented 1 month ago

Fixes a wrong example in the README docs, adding the count parameter to pagination example that was missing.

Rishikant181 commented 1 month ago

Since no count is specified, in this case, a default of 20 such Tweets are fetched initially.

The given example is a case when now count is specified, there the code does not mention anything about the count parameter.

ramiroaisen commented 1 month ago

Since no count is specified, in this case, a default of 20 such Tweets are fetched initially.

The given example is a case when now count is specified, there the code does not mention anything about the count parameter.

If that's the case, the typescript types are wrong. It do not let you add the options parameter without the count parameter

Rishikant181 commented 1 month ago

Ohh wait. I didn't notice that :P. Merging it now.