Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'oauth'
- @consumer = OAuth::Consumer.new("KEY", "TOKEN", {
- :site => "http://api.cubesensors.com",
- :request_token_path => "/auth/request_token",
- :access_token_path => "/auth/access_token",
- :authorize_path => "/auth/authorize"
- })
- puts @consumer.get_request_token :oauth_callback => "oob"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement