Fitbit-for-Google-App-Script
Fitbit-for-Google-App-Script copied to clipboard
After Authorize I get the following error
Hi,
I have followed the read me and tried this three times now.
It all goes smoothly until I try and run the script for the first time. It authorizes and the side bar appears and I click the link and then it says "You can now close this window" and then I try the "refresh fitbit time data" and it fails with the following error:
Request failed for https://api.fitbit.com/1/user/-/profile.json returned code 403. Truncated server response: {"errors":[{"errorType":"insufficient_scope","message":"This application does not have permission to access profile data. Visit https://dev.fitbit.... (use muteHttpExceptions option to examine full response)
I cant make any headway on this.
Any help would be appreciated.
I found the solution here (I also added "sleep"): https://github.com/simonbromberg/googlefitbit/issues/4
After you make the fix, go into your personal fitbit account and revoke access to your account, then create a brand new sheet and follow the instructions again.
Thanks, That fixed the error for me.
Now I just have to get fixed some filling issue that is getting the data wrong by 1 row for each data type...
Code here has expanded scopes since it looks like this repo isn't getting updated: https://github.com/meredithkfwilliams/GoogleSheetsFitBitData