fitbit-node icon indicating copy to clipboard operation
fitbit-node copied to clipboard

Listing the default endpoint version = 1.2 is misleading.

Open gordoncrenshaw opened this issue 3 years ago • 1 comments

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.

gordoncrenshaw avatar Sep 20 '22 01:09 gordoncrenshaw

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.

michaelsalomone avatar Aug 08 '23 22:08 michaelsalomone