FeedHive / twitter-api-client

A user-friendly Node.js / JavaScript client library for interacting with the Twitter API.
MIT License
948 stars 84 forks source link

Added support for Twitter API V2 Tweets Search #96

Closed marvelefe closed 2 years ago

marvelefe commented 2 years ago

What does this pull request introduce? Please describe
This PR adds support for the more robust Twitter API V2 Tweets Search endpoint

How did you verify that your changes work as expected? Please describe
I built the project locally and installed to a brand new project using

npm install ../twitter-api-client

and can confirm it works perfectly.

Example
Please describe how we can try out your changes

  1. Clone this branch
  2. Install packages, run the generate command and then the build command
  3. Install the package locally into another project and try out the new searchRecentTweets & searchAllTweets on the V2 of the client

Screenshots
If applicable, add screenshots to demonstrate your changes.

Version
Which version is your changes included in? version: 1.5.2

PR Checklist Please verify that you: