Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

How to use as command line with PIN? #27

Closed
simonszu opened this Issue · 2 comments

3 participants

@simonszu

It seems that i can't understand the Readme correctly, but i think the Readme only handles web based access.

I want to use twitter_oauth in a command line app. I can authorize with twitter, but when i have the PIN, i don't know how to use it.
Can you include these steps in your Readme as well, please? Thank you.

@PatParslow

Where the readme says:
access_token = client.authorize(
request_token.token,
request_token.secret,
:oauth_verifier => params[:oauth_verifier]
)

put your PIN in place of params[:oauth_verifier] e.g.
:oauth_verifier => "PIN pasted from site"

(obviously for an actual app, you will have the PIN in a variable, but this works for testing)

@moomerman
Owner

Added documentation for the PIN-based flow.

@moomerman moomerman closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.