dreampowder / strava_flutter

Flutter package to use Strava v3 API
Other
37 stars 52 forks source link

Support getLapsByActivityId endpoint #74

Closed harkairt closed 3 years ago

harkairt commented 3 years ago

I'd like to request support for the getLapsByActivityId endpoint.

Thank you! :)

dreampowder commented 3 years ago

sure i'll try to add this endpoint asap

dreampowder commented 3 years ago

I checked the code and i see that there already is a function for this in repository:

stravaClient.activities.listActivityLaps(activityId)

but still i am updating the method name to match with strava documentation. from now on it will be:

stravaClient.activities.getLapsByActivityId(activityId)

harkairt commented 3 years ago

I wasn't expecting such a fast response. Thank you very much! :)

Now I realized laps are also part of the simple stravaClient.activities.getActivity(:id) call. So there are even more ways of accessing it.