Remove superfluous series_type parameter

Strava API docs indicate this parameter is only relevant when also sending the resolution parameter

In any case, parameter need to be sent as POST data, not in the URL

This was mangling the temp series name. With this commit, Strava requests will also include the temp series
This commit is contained in:
Stefan Schake
2017-10-06 02:20:23 +02:00
parent a313378cba
commit 955b42689b

View File

@@ -437,15 +437,7 @@ Strava::addSamples(RideFile* ret, QString remoteid)
QString urlstr = QString("https://www.strava.com/api/v3/activities/%1/streams/%2")
.arg(remoteid).arg(streamsList);
#if QT_VERSION > 0x050000
QUrlQuery params;
#else
QUrl params;
#endif
params.addQueryItem("series_type", "time");
QUrl url = QUrl( urlstr + params.toString() );
QUrl url = QUrl( urlstr );
printd("url:%s\n", url.url().toStdString().c_str());
// request using the bearer token