Skip to content

Instantly share code, notes, and snippets.

@brandur
Last active December 21, 2015 05:39
Show Gist options
  • Save brandur/6258226 to your computer and use it in GitHub Desktop.
Save brandur/6258226 to your computer and use it in GitHub Desktop.
Acquire Readability OAuth token
gem install oauth
irb
consumer = ::OAuth::Consumer.new(
  "OAUTH_KEY", 
  "OAUTH_SECRET", 
  :site=>"https://www.readability.com/",
  :access_token_path => "/api/rest/v1/oauth/access_token/"
)
consumer.get_access_token(nil, {}, {
  :x_auth_mode =>'client_auth', 
  :x_auth_username => "USERNAME",
  :x_auth_password => "PASSWORD"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment