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
-
#delete(path, params = {}, options = {}) ⇒ Object
Perform an HTTP DELETE request.
-
#get(path, params = {}, options = {}) ⇒ Object
Perform an HTTP GET request.
-
#post(path, params = {}, options = {}) ⇒ Object
Perform an HTTP POST request.
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={}, ={}) request(:delete, path, params, ) 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={}, ={}) request(:get, path, params, ) 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={}, ={}) request(:post, path, params, ) end |