twitter/twurl

Where do I enter username and password in Twurl authorization?

MemeRunner opened this issue · 2 comments

I'm getting an error message when trying to authorize Twurl using the Google Cloud Shell.

Expected behavior

I'm expecting to get an Authorization success message.

Actual behavior

The error message is: Authorization failed. Check that your consumer key and secret are correct, as well as username and password.

I'm confident I've entered the consumer key and secret correctly, so it must be the username and password. Since I don't know how to enter the username and password, I'm assuming that's the problem.

Steps to reproduce the behavior

Here's what I'm entering into Google Cloud Shell.

d@cloudshell:~ (hashtag-voicefirst)$ sudo 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 d@cloudshell:~ (hashtag-voicefirst)$ twurl authorize --consumer-key mYconsumErkEy --consumer-secret mysEcrEt Authorization failed. Check that your consumer key and secret are correct, as well as username and password. d@cloudshell:~ (hashtag-voicefirst)$ KKSJRKSr3zePRJZE

Also, I'm assuming the username and password it's asking for is the one for my Twitter account where the key and secret are from?

I'm following instructions on this video, but it doesn't make any reference to adding a username or password in the authorization process.
https://www.youtube.com/watch?v=SF22GlA_nZU

No idea why, but just tried this again to get the error message, and it worked. Can't tell what I did differently.

Hi Meme,

After entering Consumer Key and Consumer secret you need to enter the PIN , Did you enter the pin ?

Thanks
Venk