adam-conway / stravaelo

1 stars 1 forks source link

It would be nice to add strava users via strava id and strava url #22

Open BBischof opened 6 years ago

BBischof commented 6 years ago

For example: https://www.strava.com/athletes/docdonut and https://www.strava.com/athletes/26065 are both links to me. Is it possible to add users based on this?

BBischof commented 6 years ago

Also it'd be nice for autocomplete from our user DB for those already signed up

adam-conway commented 6 years ago

I like both of these ideas although here are my thoughts:

  1. I don't think the first idea is possible or at least not in that simple form. We can add people using an athlete id or username, but almost every piece of data is locked down behind an athlete being authenticated so we still need some way to invite people to be authenticated which is why I went with email. You can get stats on an athlete based on their id but this is all the information it provides:
{
  "recent_run_totals" : "",
  "all_run_totals" : "",
  "recent_swim_totals" : "",
  "biggest_ride_distance" : 0.8008281904610115,
  "ytd_swim_totals" : "",
  "all_swim_totals" : "",
  "recent_ride_totals" : {
    "distance" : 5.962134,
    "achievement_count" : 9,
    "count" : 1,
    "elapsed_time" : 2,
    "elevation_gain" : 7.0614014,
    "moving_time" : 5
  },
  "biggest_climb_elevation_gain" : 6.027456183070403,
  "ytd_ride_totals" : "",
  "all_ride_totals" : "",
  "ytd_run_totals" : ""
}
adam-conway commented 6 years ago
  1. The second idea seems a lot more doable 👌