05-17-2017 03:29
05-17-2017 03:29
Hi all,
first forgive me if my statement here are wrong as I do believe as a developer that if there is a problem first of all it is my fault 🙂
I am concerned about the level of accuracy of the Fitbit API documentation;for example...
I am trying to get the list of activities from
https://api.fitbit.com/1/user/-/activities/list.json
I found few discrepancies:
it is me doing something wrong or not properly interpreting the documentation or it need an update?
Thanks.
05-17-2017 10:34
05-17-2017 10:34
@brillox I'll try to address these as best as I can.
05-18-2017 01:16 - edited 05-18-2017 01:19
05-18-2017 01:16 - edited 05-18-2017 01:19
Hi @AndrewFitbit ,
many thanks for your reply.
apologies for the length of the reply; I tried to be as precise as I could.
05-18-2017 10:29
05-18-2017 10:29
1. Example of a resource URL:
https://api.fitbit.com/1/user/-/activities/list.json
so user-id is "passed in the url" as you say, because URL parameters would be anything after ".json".
3. We don't really debug code, but if there's something in regard to Fitbit's Web API then we can certainly help you out. I don't think the json response is malformed so I'm not sure why duplicate classes would be generated.
05-18-2017 13:33
05-18-2017 13:33
OK @AndrewFitbit no problem; the duplicate classes are easy to spot and to delete; then if anyone delete by mistake the class that does not have teh minSpeedMPH as double it is not a big issue because in the remaining class it is easy to change an int to a double. If you say that the json response is not malformed I do not have any reason for not believing you.
Thank you for answering me.
Massimo