Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

weight is not displayed in Google Spreadsheet

 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.

 

apps script weight.png

Best Answer
0 Votes
1 REPLY 1

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.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes