Fitbit-for-Google-App-Script
Fitbit-for-Google-App-Script copied to clipboard
TypeError: Cannot find function setProjectKey in object [object Object].
any ideas? i followed the setup manual. thanks
I'm getting this error as well.
I'm getting this error also.
I'm getting this error, please help? thanks
me 5
And me as well!
I had this problem, too. I solved it by reverting the OAuth library to v19. So, when you're in the Script Editor, go to Resources > Libraries, then toggle the version to whatever the current one is to 19.
There's stuff added to the newer OAuth libraries that seems to break the flow. For example, in version 20, they OAuth uses script key instead of project ID, which is a different value. (Not sure if that's what's actually breaking it in this case, since I didn't troubleshoot it closely enough, but it would cause problems nonetheless!)
Annnnnnnd.... once you clear that error, you're going to run into scope problems. To head that off, find the line that says:
.setScope('activity')
and change it to
.setScope('activity nutrition sleep weight profile settings')
The scope issue is referenced in https://github.com/loghound/Fitbit-for-Google-App-Script/issues/22 and https://github.com/loghound/Fitbit-for-Google-App-Script/issues/20 and never actually got fixed in the latter one despite being said it would be.
Check out: https://github.com/meredithkfwilliams/GoogleSheetsFitBitData