05-27-2020 13:37
05-27-2020 13:37
Hello! I am trying to make a Discord bot that will get the step count of a user and post it to a Discord channel. I got it working for me, but I don't know how to make it work for a few other people, as they can't be signed in on the machine I am hosting the bot from.
Is this even possible? If so, how would I go about doing it?
Answered! Go to the Best Answer.
05-27-2020 16:08
05-27-2020 16:08
Hi @me15739
Yes, this can be done using the OAuth functionality. Follow these generic steps to start collecting data from other Fitbit users
Make certain your application is configure with your terms of service and privacy policy describing how you will be collecting their data and using it. Also, make certain the architecture of your product conforms to the guidelines defined in the Fitbit Platform Terms of Service, https://dev.fitbit.com/legal/platform-terms-of-service/.
Let us know if you need more information.
05-27-2020 16:08
05-27-2020 16:08
Hi @me15739
Yes, this can be done using the OAuth functionality. Follow these generic steps to start collecting data from other Fitbit users
Make certain your application is configure with your terms of service and privacy policy describing how you will be collecting their data and using it. Also, make certain the architecture of your product conforms to the guidelines defined in the Fitbit Platform Terms of Service, https://dev.fitbit.com/legal/platform-terms-of-service/.
Let us know if you need more information.
05-27-2020 16:43
05-27-2020 16:43
Yes I have it setup like this, but in testing it seems like they need to be signed in on my host of the python script that gets their step count
05-28-2020 14:35
05-28-2020 14:35
For the user to consent, they shouldn't need to be signed onto your host machine where the python script resides. Would you be able to record a video of the behavior your seeing and send it to me via a private message?
05-29-2020 17:49
05-29-2020 17:49
I figured it out, my setup isn't going to work 😕
Thanks for the help!
06-02-2020 09:52
06-02-2020 09:52
Hi @me15739,
If you don't mind, would you share your solution here so that other Discord users who encounter the same issue can use your solution as a reference? I'm sure we have several users that are familiar with discord.
Thanks!
07-02-2020 08:56
07-02-2020 08:56
I was using the implicit grant flow instead of the authorization one, future users here, make sure you are using the authorization flow