'How to retrieve daily list of activity from Google Fit API like Journal page of google fit app
I would like to recreate the list of activities like in the google fit app in the section "Journal" by calling the google fit rest api.
I tried using "https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate" with this payload:
"aggregateBy": [
{
"dataSourceId": "derived:com.google.activity.segment:com.google.android.gms:merge_activity_segments"
},
{
"dataTypeName": "com.google.calories.expended",
"dataSourceId": "derived:com.google.calories.expended:com.google.android.gms:merge_calories_expended"
}
],
"endTimeMillis": 1651355999417,
"startTimeMillis": 1651269600417,
"bucketByActivityType": {}
but the response result is not grouped like in the app page. someone managed to replicate how the data is shown on the page
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
