search for: accesstoken

Displaying 2 results from an estimated 2 matches for "accesstoken".

Did you mean: access_token
2012 May 25
1
Connect reset by peer error
Hi all I''m getting a ''Connection reset by peer'' while getting an access token during oAuth from a third party API. Here''s the code snippet: def accesstoken @code = params[:code] url = URI.parse(''access token request url'') req = Net::HTTP::Post.new(url.path) req.set_form_data({''auth_code'' => @code, ''client_id''=>''my_client_id'', ''client_secret''...
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task contains the following code: consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site => ''http://twitter.com'') access_token = OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET) oauth_params = {:consumer => consumer, :token => access_token} EventMachine.run do # now, let''s subscribe to twitter site stream # check informaiton on twitter site http = EventMachine::HttpRequest.new('&...