vangorra / python_withings_api

Library for the Withings Health API
MIT License
101 stars 34 forks source link

Question: Distinguish weight by user #69

Closed jamesgeddes closed 3 years ago

jamesgeddes commented 3 years ago

My partner and I are both set up on the same Body+ scales. How do I distinguish her measurements from mine?

I have looked at the docs and I cannot see how withings advises who logged the measurement. What am I missing here?

vangorra commented 3 years ago

Withings distinguishes between people though a separate profile or account. At any rate, it means you must keep a second set of authentication tokens and credentials.

-------- Original Message -------- On May 27, 2021, 12:52 AM, James Geddes wrote:

My partner and I are both set up on the same Body+ scales. How do I distinguish her measurements from mine?

I have looked at the docs and I cannot see how withings advises who logged the measurement. What am I missing here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jamesgeddes commented 3 years ago

Using IFTTT, all her measurements are ending up in my Google spreadsheet, so I was wondering if there was a way to Python something.

If I access the API with my keys, will it ignore her measurements and only show me mine?

vangorra commented 3 years ago

If you access the api with your keys, only your data will be returned. You have to use a separate set of keys for another person. IFFT likely uses an unpublished api which gives them access to all data with one set of credentials. It's not uncommon for companies to provide access in this way.

jamesgeddes commented 3 years ago

Thanks!