Module: Infusionsoft::Request

Included in:
Api
Defined in:
lib/infusionsoft/request.rb

Overview

Incase Infusionsoft ever creates a restful API :)

Instance Method Summary collapse

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={}, options={})
  request(:delete, path, params, options)
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={}, options={})
  request(:post, path, params, options)
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={}, options={})
  request(:put, path, params, options)
end