stravalib icon indicating copy to clipboard operation
stravalib copied to clipboard

Photos Endpoint Does Not Exist

Open samryan18 opened this issue 3 years ago • 3 comments

As far as I can tell, this method should not exist or should at least raise something like a NotImplementedError: https://github.com/hozn/stravalib/blob/b8d1181e32248c6570f0adfa995cb6c7adfccf62/stravalib/client.py#L809

This endpoint does not appear to exist in the Strava API: https://github.com/hozn/stravalib/blob/b8d1181e32248c6570f0adfa995cb6c7adfccf62/stravalib/client.py#L837

It appears that these are the only two photos models Strava supports (suggesting that it is only possible to retrieve urls for primary photos):

samryan18 avatar Dec 22 '21 19:12 samryan18

If I am wrong (I hope I am!), please do let me know / correct me. Wish Strava supported this..

samryan18 avatar Dec 22 '21 19:12 samryan18

Looks like this is a duplicate/subset of #230

Will leave it open in case someone has suggestions for this particular issue.

samryan18 avatar Dec 22 '21 19:12 samryan18

@samryan18 i think it's great for us to identify broken API endpoints and deprecate them in the code. maybe having a milestone related to broken endpoints that we can chip away at would be helpful here as there are a bunch of them! Are you comfortable submitting a PR to remove these end points or target the endpoints that work? no worries if you are not! i know right now the test suite is a bit tricky to run.

lwasser avatar Apr 18 '22 21:04 lwasser

hey @samryan18 i'm going through and cleaning up old issues. we (@jsamoocha ) :) redid the stravalib API and are created our models from the actual strava swagger.json api.

you are correct in that this endpoint is not officially documented. We do have some support for it however, as you pointed out, it could fail at any time because Strava doesn't officially support it!

i am going to close this issue now, however, please do feel free to reopen it (or create a new issue!) if there are things we can help with associated with our new refactored api!

lwasser avatar Jan 17 '24 03:01 lwasser