Я пытаюсь получить баллы Heart, используя приведенный ниже Фитнес API. Вот API, который я использовал для извлечения Heart Point из OAuth Playground. 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"
}
]
}
Заранее спасибо.