Below are the details of the session but I want the complete details of the specific session.

Rest End Point: https://www.googleapis.com/fitness/v1/users/me/sessions?startTime=2018-04-01T00:00:00.000Z&endTime=2019-04-30T23:59:59.999Z

OutPut of the end point:

          {
        "session": [
            {
                "id": "0fea588d2041f817.GUIDED_BREATHING.1546405946334",
                "name": "Morning guided breathing",
                "description": "",
                "startTimeMillis": "1546405946334",
                "endTimeMillis": "1546406047030",
                "modifiedTimeMillis": "1547311268478",
                "application": {
                    "packageName": "com.google.android.apps.fitness"
                },
                "activityType": 122
            },
            {
                "id": "1554967020000",
                "name": "",
                "description": "",
                "startTimeMillis": "1554967020000",
                "endTimeMillis": "1554970620000",
                "modifiedTimeMillis": "1554972195760",
                "application": {
                    "packageName": "com.google.android.apps.fitness"
                },
                "activityType": 10
            },
            {
                "id": "1555042860000",
                "name": "test workout",
                "description": "",
                "startTimeMillis": "1555042860000",
                "endTimeMillis": "1555046460000",
                "modifiedTimeMillis": "1555047362805",
                "application": {
                    "packageName": "com.google.android.apps.fitness"
                },
                "activityType": 10
            },
            {
                "id": "7302d5792525a648.STRENGTH_TRAINING.0000016a5905cdbe.watch-autofit",
                "name": "Afternoon strength training",
                "description": "Strength training session at Apr 26, 2019 3:11:53 PM",
                "startTimeMillis": "1556271713726",
                "endTimeMillis": "1556271782900",
                "modifiedTimeMillis": "1556294939022",
                "application": {
                    "packageName": "com.google.android.apps.fitness"
                },
                "activityType": 80
            },
            {
                "id": "7302d5792525a648.walking.1556105164440-watch-activemode",
                "name": "Afternoon walk",
                "description": "1556105164440",
                "startTimeMillis": "1556105164440",
                "endTimeMillis": "1556105217923",
                "modifiedTimeMillis": "1556294939015",
                "application": {
                    "packageName": "com.google.android.apps.fitness"
                },
                "activityType": 7
            }
        ],
        "deletedSession": []
    }

0 Answers