Skip to content

Instantly share code, notes, and snippets.

@keang
Created May 16, 2014 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keang/6dfd9cd04591678e736d to your computer and use it in GitHub Desktop.
Save keang/6dfd9cd04591678e736d to your computer and use it in GitHub Desktop.
require 'oauth'
site = 'https://api.gimmieworld.com'
consumer = OAuth::Consumer.new('key', 'secret', :site => site)
token = OAuth::AccessToken.new(consumer, 'userid', 'secret')
response = token.get('/1/profile.json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment