Module: RubyInstagram::Request

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

Overview

Defines HTTP request methods

Instance Method Summary collapse

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, options = {}, raw = false)
  request(:get, path, options, 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, options = {}, raw = false)
  request(:post, path, options, raw)
end