Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Garmin Connect Weight

Cookie

Get Weight

https://connect.garmin.com/modern/proxy/userprofile-service/userprofile/personal-information/weightWithOutbound/filterByDay?from=1477526400000&until=1509148800000&_=1511026934431

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)
});

Delete Weight

ttps://connect.garmin.com/modern/proxy/biometric-service/biometric/2017-11-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.