Module: Twitter::Request

Included in:
Client
Defined in:
lib/twitter/request.rb,
lib/twitter/request/oauth.rb,
lib/twitter/request/gateway.rb,
lib/twitter/request/phoenix.rb,
lib/twitter/request/multipart_with_file.rb

Overview

Defines HTTP request methods

Defined Under Namespace

Classes: Gateway, MultipartWithFile, Phoenix, TwitterOAuth

Instance Method Summary collapse

Instance Method Details

#delete(path, params = {}, options = {}) ⇒ Object

Perform an HTTP DELETE request



5
6
7
# File 'lib/twitter/request.rb', line 5

def delete(path, params={}, options={})
  request(:delete, path, params, options)
end

#get(path, params = {}, options = {}) ⇒ Object

Perform an HTTP GET request



10
11
12
# File 'lib/twitter/request.rb', line 10

def get(path, params={}, options={})
  request(:get, path, params, options)
end

#post(path, params = {}, options = {}) ⇒ Object

Perform an HTTP POST request



15
16
17
# File 'lib/twitter/request.rb', line 15

def post(path, params={}, options={})
  request(:post, path, params, options)
end