Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
knihit opened this issue Oct 2, 2020 · 0 comments
Labels
question Further information is requested

Comments

@knihit
Copy link

knihit commented Oct 2, 2020

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);
@rlueder rlueder added the question Further information is requested label Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants