Cookie
Get Weight
fetch('https://connect.garmin.com/modern/proxy/userprofile-service/userprofile/personal-information/weightWithOutbound/filterByDay?from=1477526400000&until=1509148800000&_=1511026934431').then((result) => {console.log(result)})
Post Weight
https://connect.garmin.com/modern/proxy/weight-service/user-weight
{"value":74,"unitKey":"kg","date":"2017-11-18"}
fetch("https://connect.garmin.com/modern/proxy/weight-service/user-weight", {
method: "post",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'credentials': 'same-origin'
},
//make sure to serialize your JSON body
body: JSON.stringify({
value: "88",
unitKey: "kg",
date: "2017-11-18"
})
})
.then( (response) => {
console.log(response)
});
ttps://connect.garmin.com/modern/proxy/biometric-service/biometric/2017-11-18
Is there a way to add your bodyfat percentage & other measurements you get from a smart scale?