I’ve installed and authenticated twurl on a Windows 10 Home, 64-bit operating system. I’m using PowerShell to run commands. When I use twurl to access the search API it doesn’t seem that I’m able to have more than one parameter in the query. Anything after the ampersand isn’t read properly and I get errors.
For example:
twurl "/1.1/search/tweets.json?q=nasa&result_type=popular"
This returns 15 tweets in JSON format but at the end of the JSON response it has:
'result_type' is not recognized as an internal or external command, operable program or batch file.
When I look at the JSON response, the recent_type of the tweet objects returned is not “popular” but instead “recent”. The same thing happens if I replace result_type with count:
twurl "/1.1/search/tweets.json?q=nasa&count=1"
Whatever I have after the “&” isn’t read properly. Any ideas how I can fix this?