Module: Infusionsoft::Request
- Included in:
- Api
- Defined in:
- lib/infusion-api/request.rb
Instance Method Summary collapse
-
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(service_call, *args) ⇒ Object
Perform an GET request.
- #post(path, params = {}, options = {}) ⇒ Object
-
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request.
Instance Method Details
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request
18 19 20 |
# File 'lib/infusion-api/request.rb', line 18 def delete(path, params={}, ={}) request(:delete, path, params, ) end |
#get(service_call, *args) ⇒ Object
Perform an GET request
4 5 6 |
# File 'lib/infusion-api/request.rb', line 4 def get(service_call, *args) request(:get, service_call, *args) end |
#post(path, params = {}, options = {}) ⇒ Object
8 9 10 |
# File 'lib/infusion-api/request.rb', line 8 def post(path, params={}, ={}) request(:post, path, params, ) end |
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request
13 14 15 |
# File 'lib/infusion-api/request.rb', line 13 def put(path, params={}, ={}) request(:put, path, params, ) end |