I have just upgraded to v4 of node-strava-v3, from v2. I changed my stream query params from types to keys, which is types as an array of strings.
However I was only getting distance returned no matter what I did.
Looking at this line here, in how queries are stringified, it looks like querystring would be converting them to something like key=X&key=Y, instead of what the API expects, which is a comma separated string list of keys.
When I changed to a comma separated string list, it worked as expected.
So I think either the typings need to be changed, or the query handler should account for this.
Thanks!
I have just upgraded to v4 of
node-strava-v3, from v2. I changed my stream query params fromtypestokeys, which is types as an array of strings.However I was only getting distance returned no matter what I did.
Looking at this line here, in how queries are stringified, it looks like
querystringwould be converting them to something likekey=X&key=Y, instead of what the API expects, which is a comma separated string list of keys.When I changed to a comma separated string list, it worked as expected.
So I think either the typings need to be changed, or the query handler should account for this.
Thanks!