draftbit / twitter-lite

A tiny, full-featured, flexible client / server library for the Twitter API
https://npm.im/twitter-lite
MIT License
794 stars 95 forks source link

API v2 documentation #164

Open JasonTheIncredible opened 3 years ago

JasonTheIncredible commented 3 years ago

The documentation is clear on how to add parameters with Twitter's API v1.1

const parameters = { track: "#bitcoin,#litecoin,#monero", follow: "422297024,873788249839370240", // @OrchardAI, @tylerbuchea locations: "-122.75,36.8,-121.75,37.8", // Bounding box - San Francisco };

However, there's no section on how to use the changes made for v2, such as the follow operators (@, from, to, etc) found here:

https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/migrate/standard-to-twitter-api-v2

Could a section be added on the changes made for Twitter's API v2?

More specifically, how would I add the follow operators described above?