Open pjlamb12 opened 3 years ago
The options are url encoded using node url library, hence you shouldn't use from%3Athe_churchnews
and use from:the_churchnews
instead. Hope that helps.
However, if you need to use from:abc to:xyz
it results in an error as the space character is encoded as +
instead of %20
. Does anyone know the fix for that?
Prerequisites
Description
I'm trying to search the recent tweets for a specific user. Here's the URL if I use Insomnia:
and GET on that URL returns data. This does not work:
In addition, the commented out parts of the above object cause an error, which is why they are commented out. I've looked at the source code to try and build that object correctly, but haven't been able to get it to work properly.
In addition, in the URL string I have the
tweet.fields
query param. I tried adding it to the options object in both of the following ways, with no success. The first way causes an error, the second way there is no error but I'm not sure if it's working since I don't get any data back.Any docs or pointers here would be greatly appreciated.
Steps to Reproduce
Expected behavior:
Tweets should print to the console
Actual behavior:
undefined
is printed to the console.Reproduces how often: Every time
Versions
v1.1.0
Additional Information