Rishikant181 / Rettiwt-API

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

Search API no longer retrieves any tweets if only words are provided #454

Closed Jeto143 closed 4 months ago

Jeto143 commented 4 months ago

The following code:

rettiwt.tweet.search({
  words: ['hello'],
})

retrieves a list of tweets in 2.4.2 but no longer retrieves anything in 2.5.0 (no errors, just an empty list).

It seems like fromUsers now needs to be provided for tweets to be retrieved.

Is this intended behavior? I'm sorry if it was mentioned somewhere already.

Rishikant181 commented 4 months ago

The words search parameter has been renamed from words to includeWords in order to accommodate other word search parameters such as excludeWords and optionalWords, without any ambiguity #426.

Jeto143 commented 4 months ago

Oh woops my bad. Wanted to check the docs here, but for some reason it defaults to displaying no fields for me (had to manually check "External" at the top right, now I see them).

Closing this, sorry!