Module: TPEX::Request

Included in:
API
Defined in:
lib/tpex/request.rb

Instance Method Summary collapse

Instance Method Details

#get(path, options = {}, raw = false, unformatted = false, no_response_wrapper = false) ⇒ Object

Perform an HTTP GET request



4
5
6
# File 'lib/tpex/request.rb', line 4

def get(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
  request(:get, path, options, raw, unformatted, no_response_wrapper)
end

#post(path, options = {}, raw = false, unformatted = false, no_response_wrapper = false) ⇒ Object

Perform an HTTP POST request



9
10
11
# File 'lib/tpex/request.rb', line 9

def post(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
  request(:post, path, options, raw, unformatted, no_response_wrapper)
end