Squachen / micloud

Library for connecting to xiaomi cloud.
MIT License
156 stars 20 forks source link

Can this be used for health (Mi Fitness) API? #14

Open ghost opened 1 year ago

ghost commented 1 year ago

I'm trying to use the API at hlth.io.mi.com. I can successfully log in and view my device list, but trying to make requests to the health API (for example https://hlth.io.mi.com/app/v1/data/get_fitness_data_by_watermark) return 401 {"code":2,"message":"auth err"}.

Here's what I've been able to figure out so far:

I'm way out of my depth here. Are you by any chance able to help figure out why this is happening? I'm happy to share (in private) network logs from the app on my phone, including login flow.

Thanks!