fitbit-node
fitbit-node copied to clipboard
Listing the default endpoint version = 1.2 is misleading.
By stating in the instructions the default API version = 1.2, people will make the assumption version 1.2 applies to all endpoints. As of today, Sleep is the only set of endpoints that support version 1.2. Most of the other endpoints support version 1. Using the incorrect version could generate unwanted errors. Please correct the code and instructions, or add a note to verify the version in the documentation.
This exact issue turned out to be why some of my calls failed. I was getting validation errors that seemed nonsensical based on the documentation and API examples on the fitbit docs, and switching from API version 1.2 to 1 got everything working.