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
I haven't found a way doing that over the API directly, but I was able to create a fit file containing a weight_scale_message (https://bitbucket.org/stagescycling/python_fit_tool/src/main/fit_tool/profile/messages/weight_scale_message.py) - afterward uploading it using the garmin lib: https://github.com/cyberjunky/python-garminconnect. works for me :)