As of 2016-02-22 I was getting failures of the script running successfully. I revoked authorization and forced re-authorization with a change in scope to include:
.setScope('activity nutrition sleep weight profile settings')
Some of the above may be unnecessary, but I was casting a broad net. After the re-authorization I was able to run the script again.
See:
https://dev.fitbit.com/docs/oauth2/#scope
As of 2016-02-22 I was getting failures of the script running successfully. I revoked authorization and forced re-authorization with a change in scope to include:
.setScope('activity nutrition sleep weight profile settings')
Some of the above may be unnecessary, but I was casting a broad net. After the re-authorization I was able to run the script again.
See:
https://dev.fitbit.com/docs/oauth2/#scope