Skip to content

Instantly share code, notes, and snippets.

@PDegenPortnoy
Created June 3, 2013 16:21
Show Gist options
  • Save PDegenPortnoy/5699313 to your computer and use it in GitHub Desktop.
Save PDegenPortnoy/5699313 to your computer and use it in GitHub Desktop.
Code example for Ohloh blog on getting an OAuth request tocken
gem 'oauth'
require 'oauth/consumer'
@consumer = OAuth::Consumer.new("your api key", "your oauth consumer secret", :site => "http://www.ohloh.net")
@request_token = @consumer.get_request_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment