search for: auth_code

Displaying 1 result from an estimated 1 matches for "auth_code".

Did you mean: auth_close
2012 May 25
1
Connect reset by peer error
...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''=>''my_secret_key''}, '';'') res = Net::HTTP.new(url.host, url.port).start { |http| http.request(req) } case res when Net::HTTPSucc...