Module: Instagram::Request
- Defined in:
- lib/instagram/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#delete(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper) ⇒ Object
Perform an HTTP GET request.
-
#post(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper) ⇒ Object
Perform an HTTP POST request.
-
#put(path, options = {}, signature = false, raw = false, unformatted = false, no_response_wrapper = no_response_wrapper) ⇒ Object
Perform an HTTP PUT request.
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, ={}, signature=false, raw=false, unformatted=false, no_response_wrapper=no_response_wrapper) request(:delete, path, , 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, ={}, signature=false, raw=false, unformatted=false, no_response_wrapper=no_response_wrapper) request(:get, path, , 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, ={}, signature=false, raw=false, unformatted=false, no_response_wrapper=no_response_wrapper) request(:post, path, , 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, ={}, signature=false, raw=false, unformatted=false, no_response_wrapper=no_response_wrapper) request(:put, path, , signature, raw, unformatted, no_response_wrapper) end |