basvandorst / StravaPHP

Strava API REST client with OAuth authentication
MIT License
184 stars 67 forks source link

getAthleteActivities is buggy when using parameters #63

Closed pjoulot closed 4 years ago

pjoulot commented 4 years ago

Hello,

I don't really know what is happening but there is a problem when passing parameters.

If passing parameters, the method starts filtering results that it shouldn't.

I checked my parameters and tried the request manually into my browser with those parameters and it works fine so the problem is not from the Starva side, the filter works nice.

But when using the function: getAthleteActivities($startTime, $endTime)

There are no results, so it is not matching the behavior from Strava. I checked the parameters into the Client class and they seem fine, I don't know if the HTTP headers are messing up the call or if the parameters are altered in a bad way before the HTTP call. Does someone else experience that?

If I don't pass the parameters before and after, the function returns the activities that are not filtered.

I was on 1.4 and I tried to revert to 1.2 to see if one of the latest update broke something, but it is still happening even with 1.2.