Module: Infusionsoft::Request
- Included in:
- Api
- Defined in:
- lib/infusionsoft/request.rb
Overview
Incase Infusionsoft ever creates a restful API :)
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
19 20 21 |
# File 'lib/infusionsoft/request.rb', line 19 def delete(path, params={}, ={}) request(:delete, path, params, ) end |
#get(service_call, *args) ⇒ Object
Perform an GET request
5 6 7 |
# File 'lib/infusionsoft/request.rb', line 5 def get(service_call, *args) request(:get, service_call, *args) end |
#post(path, params = {}, options = {}) ⇒ Object
9 10 11 |
# File 'lib/infusionsoft/request.rb', line 9 def post(path, params={}, ={}) request(:post, path, params, ) end |
#put(path, params = {}, options = {}) ⇒ Object
Perform an HTTP PUT request
14 15 16 |
# File 'lib/infusionsoft/request.rb', line 14 def put(path, params={}, ={}) request(:put, path, params, ) end |