Class: Strava::Api::Client
- Inherits:
-
Web::Client
- Object
- Web::Client
- Strava::Api::Client
- Includes:
- Endpoints::Activities, Endpoints::Athletes, Endpoints::Clubs, Endpoints::Gears, Endpoints::OAuth, Endpoints::Routes, Endpoints::RunningRaces, Endpoints::SegmentEfforts, Endpoints::Segments, Endpoints::Streams, Endpoints::Uploads
- Defined in:
- lib/strava/api/client.rb
Class Method Summary collapse
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints::OAuth
Methods included from Endpoints::Uploads
Methods included from Endpoints::Streams
#activity_streams, #segment_effort_streams, #segment_streams
Methods included from Endpoints::Segments
#explore_segments, #segment, #segment_leaderboard, #star_segment, #starred_segments
Methods included from Endpoints::SegmentEfforts
#segment_effort, #segment_efforts
Methods included from Endpoints::RunningRaces
Methods included from Endpoints::Routes
#athlete_routes, #export_route_gpx, #export_route_tcx, #route
Methods included from Endpoints::Gears
Methods included from Endpoints::Clubs
#athlete_clubs, #club, #club_activities, #club_admins, #club_members
Methods included from Endpoints::Athletes
#athlete, #athlete_stats, #athlete_zones, #update_athlete
Methods included from Endpoints::Activities
#activity, #activity_comments, #activity_kudos, #activity_laps, #activity_photos, #activity_zones, #athlete_activities, #create_activity, #update_activity
Methods inherited from Web::Client
Methods included from Web::Request
Constructor Details
Class Method Details
.config ⇒ Object
34 35 36 |
# File 'lib/strava/api/client.rb', line 34 def config Config end |
Instance Method Details
#headers ⇒ Object
25 26 27 |
# File 'lib/strava/api/client.rb', line 25 def headers { 'Authorization' => "Bearer #{access_token}" } end |