10-13-2024 23:40 - edited 10-13-2024 23:52
10-13-2024 23:40 - edited 10-13-2024 23:52
I wrote this in Apps Script, but the weight is not displayed in Google Spreadsheet. What's wrong?
If there are various ways, please let me know.
10-14-2024 11:16
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.
10-14-2024 11:16
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