Two days ago, I was successfully calling the Twitter API through Google Cloud Shell, and today, all twurl commands return “-bash: twurl: command not found”.
I’m not understanding the meaning of “-bash:” and haven’t been able to find anything helpful on it.
Expected behavior
I was expecting to have the Twitter API return a list of tweets based around my command “twurl h ‘/1.1/search/tweets.json?q=%23voicefirst&result_type=popular’ | jq .”
I checked to make sure twurl and oauth were installed:
d@cloudshell:~ (hashtag-voicefirst)$ gem install twurl Fetching: oauth-0.5.4.gem (100%) Successfully installed oauth-0.5.4 Fetching: twurl-0.9.3.gem (100%) Successfully installed twurl-0.9.3 Parsing documentation for oauth-0.5.4 Installing ri documentation for oauth-0.5.4 Parsing documentation for twurl-0.9.3 Installing ri documentation for twurl-0.9.3 Done installing documentation for oauth, twurl after 0 seconds 2 gems installed
Actual behavior
d@cloudshell:~ (hashtag-voicefirst)$ twurl accounts -bash: twurl: command not found
Steps to reproduce the behavior
Issuing any of the following commands in Google Cloud Shell
d@cloudshell:~ (hashtag-voicefirst)$ twurl accounts d@cloudshell:~ (hashtag-voicefirst)$ twurl /1.1/statuses/home_timeline.json
//===========
Can’t figure out how twurl can say it’s installed, but that it doesn’t recognize even basic commands.
Any help on this greatly appreciated.
doug