search for: my_client_id

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

2012 May 25
1
Connect reset by peer error
...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::HTTPSuccess, Net::HTTPRedirection # OK else # res.error! end ren...