stravalib icon indicating copy to clipboard operation
stravalib copied to clipboard

support to get/set segment_leaderboard_opt_out on activities

Open arkarkark opened this issue 7 years ago • 3 comments

Similar to https://github.com/strava/go.strava/issues/16 If/when the API supports it I don't mind making a PR for this library.

It doesn't look like the api supports getting/setting the new segment_leaderboard_opt_out attribute on activities. Do you know if/when support for that will be added?

I found the name by looking at what the front end does, when it PUTs to https://www.strava.com/athlete/training_activities/xxxxxxxx

arkarkark avatar Mar 20 '17 18:03 arkarkark

Good question! - Yeah, typically the API supports it when they decide they want to implement it in their mobile apps. I don't know if they really have a roadmap for improvements to their API. I know the changes often catch us by surprise, though maybe I'm just not subscribed to the right mailing list to get notified of those :)

hozn avatar Mar 22 '17 16:03 hozn

Thanks, the mobile app seems to support it (at least iOS does) I haven't gone as far as trying to sniff the network traffic to work out what's going on...

arkarkark avatar Mar 22 '17 19:03 arkarkark

I think this is supported by strava now. Woke up this morning to a bunch of sentry logs that look like:

No such attribute leaderboard_opt_out on entity <Activity id=xxxxxx name='xxxxx' resource_state=None>

timthelion avatar May 01 '18 07:05 timthelion