Class: OAuth2::Client
- Inherits:
-
Object
- Object
- OAuth2::Client
- Defined in:
- lib/oauth2_monkey_patches.rb
Instance Method Summary collapse
Instance Method Details
#request(verb, url, params = {}, headers = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/oauth2_monkey_patches.rb', line 12 def request(verb, url, params = {}, headers = {}) if verb == :get connection.run_request(verb, url, nil, headers) do |req| req.params.update(params) end else connection.run_request(verb, url, params, headers) end end |