Module: Strava::Web::Request Private
- Included in:
- Client
- Defined in:
- lib/strava/web/request.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
HTTP request methods for Strava web clients.
This module provides GET, POST, PUT, and DELETE HTTP methods for making requests to Strava APIs. All methods return a wrapped response object that provides easy access to response data and metadata.
Instance Method Summary collapse
-
#delete(path, options = {}) ⇒ Strava::Web::Response
private
Perform an HTTP DELETE request.
-
#get(path, options = {}) ⇒ Strava::Web::Response
private
Perform an HTTP GET request.
-
#post(path, options = {}) ⇒ Strava::Web::Response
private
Perform an HTTP POST request.
-
#put(path, options = {}) ⇒ Strava::Web::Response
private
Perform an HTTP PUT request.
Instance Method Details
#delete(path, options = {}) ⇒ Strava::Web::Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform an HTTP DELETE request.
59 60 61 |
# File 'lib/strava/web/request.rb', line 59 def delete(path, = {}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Strava::Web::Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform an HTTP GET request.
23 24 25 |
# File 'lib/strava/web/request.rb', line 23 def get(path, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Strava::Web::Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform an HTTP POST request.
35 36 37 |
# File 'lib/strava/web/request.rb', line 35 def post(path, = {}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Strava::Web::Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform an HTTP PUT request.
47 48 49 |
# File 'lib/strava/web/request.rb', line 47 def put(path, = {}) request(:put, path, ) end |