我正在尝试使用https://developers.google.com/oauthplayground/
来计算步数我有令牌的Exchange授权代码和API请求 GET
在我的移动googleFit APP中显示它已连接到我的项目。
我得到的Json回应:
Content-type: application/json; charset=UTF-8
{
"dataType": {
"field": [
{
"name": "steps",
"format": "integer"
}
],
"name": "com.google.step_count.delta"
},
"application": {
"packageName": "com.google.android.gms"
},
"dataStreamId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps",
"type": "derived",
"dataStreamName": "estimated_steps"
}
但我没有得到步数计数值。
答案 0 :(得分:1)
以下是您可以检查将Google适合应用到您的应用的链接
1)How to get step count from Google Fit REST API like Google Fit app?