dpurgin / qtstrava

A C++/Qt wrapper for Strava API
MIT License
1 stars 0 forks source link

Integration on qdomyos-zwift #3

Open cagnulein opened 3 years ago

cagnulein commented 3 years ago

Hi @dpurgin , i found your code on github and it seems amazing! I'm gonna try to add into my project https://github.com/cagnulein/qdomyos-zwift

Do you see any issue? What do you use this for?

dpurgin commented 3 years ago

Hi,

it shouldn't be a technical problem to use the library per se as long as you have a C++17 compiler (though it could be backported to C++14 as well, with some effort). The only issue is that the library does not have a lot of functionality for now. There are only two queries implemented so far: listing the current athlete's profile and retrieving the list of activities. It can be easily enhanced to support others though. Your project would probably need the activity uploads, right?

I use this library in a private project of mine where I keep track of my bike components' wear and their service intervals. The Strava data to store the distance and service hours of each component: chain, tires, breaking pads, etc.

If you have used a CMake-project, the library would have worked out-of-the-box. In your qmake project you have to integrate it manually, along with QtPromise, nlohmann-json, and nlohmann-json-validator, which are external dependencies (the latter two should be probably replace with QtJsonSchema some time later though)

Cheers

cagnulein commented 3 years ago

Yes the main feature that i need is the upload function :) Ok i will have a look into it, thanks for answering me!

dpurgin commented 3 years ago

Hold on, I'll add some basic upload for you to test and enhance further if needed

cagnulein commented 3 years ago

thank you, i'm not in an hurry :)

dpurgin commented 3 years ago

@cagnulein Could you take a look at the attached pull request, I've added a couple of methods to QtStrava::Client that should cover the upload. You can test them with qtstrava-cli or refer to it as usage example. You'll need an application ID and a client secret from Strava for qtstrava-cli to work.

cagnulein commented 3 years ago

Thank you! Yes i will check it during the holidays! Thanks again and happy christmas!

Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud

Il giorno gio 24 dic 2020 alle ore 15:46 Dmitriy Purgin < notifications@github.com> ha scritto:

@cagnulein https://github.com/cagnulein Could you take a look at the attached pull request, I've added a couple of methods to QtStrava::Client that should cover the upload. You can test them with qtstrava-cli or refer to it as usage example. You'll need an application ID and a client secret from Strava for qtstrava-cli to work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dpurgin/qtstrava/issues/3#issuecomment-750901884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWEGVURABXBFTN7WSN3SWNH6BANCNFSM4VCI2RAA .

dpurgin commented 3 years ago

Merry Christmas to you too!