Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Hi @ydk12
It's difficult to say exactly what is wrong with the code without looking at more of it. But, I suspect the problem is with the [date] reference. You should either hard code the data or change it to a variable in your code. For example,
"https://api.fitbit.com/1/user/-/body/log/weight/date/" +dateString+ ".json"
We reference a Google Sheets sample in our documentation which shows how to query weight data.
Best Answer