twitter-lite icon indicating copy to clipboard operation
twitter-lite copied to clipboard

The API is returning search that includes operators like OR + as supported by the twitter search API, instead of being merely search operators

Open knihit opened this issue 5 years ago • 0 comments

When using this API, how do we send the search operators. It seems it is searching for the operator as well in the search string. https://developer.twitter.com/en/docs/twitter-api/v1/rules-and-filtering/overview/standard-operators. Lets say I want to search for either phraseA or phraseB in my search. I am using the get call with (search/tweets api end point) as below

        const searchQuery = 'phraseA OR phraseB';
        const twitParams = {
            q: searchQuery,
            count: 100,
            since_id: 0,
            include_entities: true,
            result_type: 'mixed',
            lang: en
        };

        const response = await twit.get("search/tweets", twitParams);

knihit avatar Oct 02 '20 22:10 knihit