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, token, query: {}) ⇒ Object

Perform an HTTP DELETE request



30
31
32
# File 'lib/infusionsoft/request.rb', line 30

def delete(path, token, query: {})
  request(:delete, path, token, query)
end

#get(path, token, query: {}) ⇒ Object

Perform an GET request



11
12
13
# File 'lib/infusionsoft/request.rb', line 11

def get(path, token, query: {})
  request(:get, path, token, query: query )
end

#patch(path, token, query: {}, payload: {}) ⇒ Object

Perform an HTTP PATCH request



25
26
27
# File 'lib/infusionsoft/request.rb', line 25

def patch(path, token, query: {}, payload: {})
  request(:patch, path, token, query, payload)
end

#post(path, token, query: {}, payload: {}) ⇒ Object



15
16
17
# File 'lib/infusionsoft/request.rb', line 15

def post(path, token, query: {}, payload: {})
  request(:post, path, token, query, payload)
end

#put(path, token, query: {}, payload: {}) ⇒ Object

Perform an HTTP PUT request



20
21
22
# File 'lib/infusionsoft/request.rb', line 20

def put(path, token, query: {}, payload: {})
  request(:put, path, token, query, payload)
end

#xmlrpc(service_call, *args) ⇒ Object



6
7
8
# File 'lib/infusionsoft/request.rb', line 6

def xmlrpc(service_call, *args)
  connection(service_call, *args)
end