How to get step count from Google Fit REST API like Google Fit app?

前端 未结 4 988
遇见更好的自我
遇见更好的自我 2020-11-28 13:04

I\'m developing a PHP application which work with Google Fit APIs to collect daily user\'s step count.

I want to get my step count from \"Jan 15 2015 00:00:00 GMT+07

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 13:44

    I had the most luck with derived:com.google.step_count.delta:com.google.android.gms:estimated_steps

    The result was higher initially than what my phone was reading, so then I filtered on my two main step devices select{|q| q["originDataSourceId"] =~ /360|Nexus/} and that gave me the closest result.

    If I try a different day range later and it is completely off the wall I'll come back and note that here.

提交回复
热议问题