Displaying 1 result from an estimated 1 matches for "oauth_help".
Did you mean:
oauth_helper
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
...; consumer, :token => access_token}
EventMachine.run do
# now, let''s subscribe to twitter site stream
# check informaiton on twitter site
http =
EventMachine::HttpRequest.new(''http://stream.twitter.com/1/statuses/sample.json'').get
oauth_helper = OAuth::Client::Helper.new(http, oauth_params)
http.options[:head] = (http.options[:head] ||
{}).merge!({"Authorization" => oauth_helper.header})
http.callback {
p http.response
EventMachine.stop
}
The rake gets aborted with the following error:
undefin...