View difference between Paste ID: 0chxjzuk and 8kKfYp5h
SHOW: | | - or go back to the newest paste.
1
require 'oauth'
2
3
@consumer = OAuth::Consumer.new("KEY", "TOKEN", {
4
  :site               => "http://api.cubesensors.com",
5
  :request_token_path => "/auth/request_token",
6
  :access_token_path  => "/auth/access_token",
7
  :authorize_path     => "/auth/authorize"
8
 })
9
10-
puts @consumer.get_request_token
10+
puts @consumer.get_request_token :oauth_callback => "oob"