Module: Instagram::Request

Defined in:
lib/instagram/request.rb

Overview

Defines HTTP request methods

Instance Method Summary collapse

Instance Method Details

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

Perform an HTTP DELETE request


23
24
25
# File 'lib/instagram/request.rb', line 23

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

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

Perform an HTTP GET request


8
9
10
# File 'lib/instagram/request.rb', line 8

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

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

Perform an HTTP POST request


13
14
15
# File 'lib/instagram/request.rb', line 13

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

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

Perform an HTTP PUT request


18
19
20
# File 'lib/instagram/request.rb', line 18

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