我正在尝试使用下面的Fitness API获取心脏积分。这是我用来从OAuth Playground获取Heart point的API。 https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes/datasets/1570029722000000000-1569079322000000000
我从API获取了数据,但是如何获取该日期的Heart积分。 我在做错什么吗?
这是我从OAuth游乐场收到的回复。
{
"minStartTimeNs": "1569079322000000000",
"maxEndTimeNs": "1570029722000000000",
"dataSourceId": "derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes",
"point": [
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569127860000000000",
"endTimeNanos": "1569127920000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569127920000000000",
"endTimeNanos": "1569127980000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569127980000000000",
"endTimeNanos": "1569128040000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569128040000000000",
"endTimeNanos": "1569128100000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569128100000000000",
"endTimeNanos": "1569128160000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569128160000000000",
"endTimeNanos": "1569128220000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569128220000000000",
"endTimeNanos": "1569128280000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569221285168",
"startTimeNanos": "1569128280000000000",
"endTimeNanos": "1569128340000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1569485655569",
"startTimeNanos": "1569480720000000000",
"endTimeNanos": "1569480780000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
},
{
"modifiedTimeMillis": "1570007681623",
"startTimeNanos": "1570004340000000000",
"endTimeNanos": "1570004400000000000",
"value": [
{
"mapVal": [],
"fpVal": 1.0
}
],
"dataTypeName": "com.google.heart_minutes",
"originDataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
}
]
}
谢谢。