dblock / strava-ruby-client

A complete Ruby client for the Strava API v3.
https://code.dblock.org/2018/11/27/writing-a-new-strava-api-ruby-client.html
MIT License
97 stars 22 forks source link

Missing GroupEvents #37

Closed simonneutert closed 3 years ago

simonneutert commented 3 years ago

the endpoint and logic for handling group events is currently missing:

events = client.send :get '/groups/:id/group_events', {}

# events[0]
{"id"=>339353,
  "resource_state"=>2,
  "title"=>"Erste Gruppenfahrt (Ø25kmh)",
  "description"=>"",
  "club_id"=>456773,
  "club"=>
   {"id"=>456773,
    "resource_state"=>1,
    "name"=>"Rennrad Mainz Wiesbaden Rheinhessen"},
  "organizing_athlete"=>
   {"id"=>7,
    "username"=>"XXX",
    "resource_state"=>2,
    "firstname"=>"XXX",
    "lastname"=>"YYY",
    "bio"=>nil,
    "city"=>"ZZZ",
    "state"=>"",
    "country"=>"",
    "sex"=>"",
    "premium"=>true,
    "summit"=>true,
    "created_at"=>"2011-09-05T10:41:23Z",
    "updated_at"=>"2021-06-25T16:04:11Z",
    "badge_type_id"=>1,
    "weight"=>85.0,
    "profile_medium"=>
     "https://dgalywyr863hv.cloudfront.net/pictures/athletes/7/7/5/medium.jpg",
    "profile"=>
     "https://dgalywyr863hv.cloudfront.net/pictures/athletes/7/7/5/large.jpg",
    "friend"=>nil,
    "follower"=>nil,
    "blocked"=>false,
    "can_follow"=>true},
  "activity_type"=>"Ride",
  "created_at"=>"2018-06-13T09:59:58Z",
  "route_id"=>nil,
  "route"=>nil,
  "women_only"=>false,
  "private"=>false,
  "skill_levels"=>1,
  "terrain"=>0,
  "upcoming_occurrences"=>["2018-06-13T15:00:00Z"],
  "zone"=>"Europe/Berlin",
  "address"=>"Bootshaus, Mainz",
  "joined"=>true,
  "start_latlng"=>[49.99241, 8.28793]}

i am working on implementing the model and methods with pagination

simonneutert commented 3 years ago

@dblock thank you for guiding me, glad I could contribute 🤗

dblock commented 3 years ago

@dblock thank you for guiding me, glad I could contribute 🤗

I cut 0.4.1., thanks! Consider picking up any of the open issues while you're on a roll :)