Module: RubyInstagram::Request
- Included in:
- API
- Defined in:
- lib/ruby_instagram/request.rb
Overview
Defines HTTP request methods
Instance Method Summary collapse
-
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request.
-
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request.
Instance Method Details
#get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request
10 11 12 |
# File 'lib/ruby_instagram/request.rb', line 10 def get(path, = {}, raw = false) request(:get, path, , raw) end |
#post(path, options = {}, raw = false) ⇒ Object
Perform an HTTP POST request
15 16 17 |
# File 'lib/ruby_instagram/request.rb', line 15 def post(path, = {}, raw = false) request(:post, path, , raw) end |