AccuroFit
  1. Open APIs
AccuroFit
  • Open APIs
    • Get Clients
      GET
    • Get Client Location List
      GET
    • Get Client Member List
      GET
    • Get AccuroPT Session History
      GET
    • Get Classes
      GET
  • Schemas
    • Sample Schemas
      • Location
      • Clients
      • Locations
      • Member
      • Members
      • Session
      • Sessions
      • Client
      • Category
  1. Open APIs

Get Classes

GET
/open/clients/{clientId}/classes
Only if the class scheduler feature is enabled.

Request

Authorization
Add parameter in header
X-AUTHORIZATION
Example:
X-AUTHORIZATION: ********************
Path Params

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://staging.accuropt.com/open/clients//classes?startDate&endDate&locationId' \
--header 'X-AUTHORIZATION: <api-key>'

Responses

🟢200OK
application/json
Body

Example
{
    "meta": {
        "error": false,
        "code": 1,
        "message": "cillum aliquip"
    },
    "data": {
        "pageSize": 10,
        "totalRecords": 2,
        "list": [
            {
                "instructor": "",
                "leaderboard": null,
                "location": {
                    "locationId": 3,
                    "locationName": "Nanjing"
                },
                "sessionId": 167,
                "startTime": 1723073280,
                "timezoneOffset": 8,
                "timeRemaining": 0,
                "classTime": 480,
                "className": "tset 5",
                "totalCalories": "",
                "avgCalories": "",
                "avgHeartRate": "",
                "classMembers": [
                    {
                        "email": "svend.jin@gmail.com",
                        "calories": 7.99,
                        "zone": [
                            181,
                            0,
                            0,
                            0,
                            0
                        ],
                        "sessionDetailId": 273,
                        "sessionId": 167,
                        "firstName": "shouwang",
                        "lastName": "jin",
                        "nickName": 1,
                        "avgHr": 75,
                        "highHr": 80,
                        "maxHr": 188,
                        "iqPoints": 3.03,
                        "hrSeries": [
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            76,
                            75,
                            76,
                            76,
                            75,
                            76,
                            76,
                            76,
                            76,
                            76,
                            76,
                            76,
                            76,
                            76,
                            75,
                            75,
                            75,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            75,
                            76,
                            76,
                            77,
                            77,
                            77,
                            77,
                            77,
                            76,
                            76,
                            75,
                            75,
                            75,
                            76,
                            76,
                            76,
                            76,
                            76,
                            75,
                            74,
                            74,
                            73,
                            72,
                            71,
                            70,
                            70,
                            70,
                            70,
                            70,
                            70,
                            70,
                            70,
                            71,
                            72,
                            72,
                            72,
                            73,
                            74,
                            74,
                            74,
                            74,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            75,
                            76,
                            77,
                            79,
                            79,
                            79,
                            80,
                            80,
                            80,
                            79,
                            78,
                            78,
                            78,
                            77,
                            77,
                            77,
                            77,
                            76,
                            76,
                            75,
                            75,
                            74,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            73,
                            72,
                            71,
                            71,
                            71,
                            71,
                            71,
                            72,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            75,
                            76,
                            78,
                            79,
                            79,
                            79,
                            79,
                            79,
                            78,
                            78,
                            77,
                            76,
                            76,
                            76,
                            75,
                            75,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            74,
                            75,
                            75,
                            75,
                            75,
                            74,
                            75,
                            75,
                            75,
                            74,
                            74,
                            74,
                            75,
                            75,
                            74,
                            74,
                            73,
                            72
                        ],
                        "workoutStartTime": 1723120080,
                        "classDuration": 181,
                        "zonePointsSettings": [],
                        "zonePercentSettings": [],
                        "timezoneOffset": 8,
                        "antId": null
                    }
                ]
            },
            {
                "instructor": "",
                "leaderboard": null,
                "location": {
                    "locationId": 3,
                    "locationName": "Nanjing"
                },
                "sessionId": 166,
                "startTime": 1723058280,
                "timezoneOffset": 8,
                "timeRemaining": 0,
                "classTime": 420,
                "className": "Test 1",
                "totalCalories": "",
                "avgCalories": "",
                "avgHeartRate": "",
                "classMembers": []
            },
            {
                "instructor": null,
                "leaderboard": [
                    {
                        "email": "15950000512@qq.com",
                        "iqPoints": 6.566666666666652,
                        "nickName": "Toby"
                    }
                ],
                "location": {
                    "locationId": 3,
                    "locationName": "Nanjing"
                },
                "sessionId": 165,
                "startTime": 1709528651,
                "timezoneOffset": 8,
                "timeRemaining": 10644,
                "classTime": 10800,
                "className": null,
                "totalCalories": 58.839122270554,
                "avgCalories": 58.839122270554,
                "avgHeartRate": 122,
                "classMembers": [
                    {
                        "email": "15950000512@qq.com",
                        "calories": 59.07,
                        "zone": [
                            51,
                            35,
                            19,
                            38,
                            13
                        ],
                        "sessionDetailId": 272,
                        "sessionId": 165,
                        "firstName": "toby",
                        "lastName": "buuuu",
                        "nickName": "toby",
                        "avgHr": 122,
                        "highHr": 173,
                        "maxHr": 182,
                        "iqPoints": 6.58,
                        "hrSeries": [
                            169,
                            168,
                            164,
                            164,
                            170,
                            170,
                            173,
                            165,
                            160,
                            158,
                            156,
                            152,
                            156,
                            156,
                            161,
                            161,
                            157,
                            154,
                            159,
                            159,
                            167,
                            162,
                            160,
                            158,
                            158,
                            154,
                            153,
                            147,
                            145,
                            145,
                            143,
                            138,
                            132,
                            125,
                            120,
                            119,
                            114,
                            116,
                            123,
                            121,
                            116,
                            119,
                            119,
                            125,
                            125,
                            133,
                            134,
                            134,
                            136,
                            133,
                            129,
                            127,
                            121,
                            115,
                            112,
                            113,
                            121,
                            118,
                            115,
                            109,
                            108,
                            100,
                            99,
                            102,
                            109,
                            111,
                            115,
                            116,
                            116,
                            108,
                            102,
                            108,
                            111,
                            119,
                            123,
                            123,
                            131,
                            138,
                            143,
                            150,
                            156,
                            150,
                            150,
                            143,
                            145,
                            146,
                            147,
                            148,
                            153,
                            155,
                            156,
                            158,
                            158,
                            162,
                            164,
                            170,
                            167,
                            163,
                            158,
                            156,
                            149,
                            142,
                            139,
                            139,
                            131,
                            127,
                            122,
                            116,
                            116,
                            122,
                            117,
                            110,
                            106,
                            98,
                            97,
                            92,
                            94,
                            91,
                            90,
                            87,
                            81,
                            74,
                            67,
                            62,
                            58,
                            54,
                            60,
                            62,
                            66,
                            67,
                            70,
                            70,
                            70,
                            69,
                            75,
                            74,
                            67,
                            72,
                            78,
                            84,
                            88,
                            85,
                            81,
                            75,
                            82,
                            89,
                            95,
                            96,
                            101,
                            105,
                            107,
                            100,
                            100,
                            97,
                            97,
                            95
                        ],
                        "workoutStartTime": 1709528650,
                        "classDuration": 156,
                        "zonePointsSettings": [
                            1,
                            2,
                            3,
                            4,
                            5
                        ],
                        "zonePercentSettings": [
                            0,
                            60,
                            70,
                            80,
                            90
                        ],
                        "timezoneOffset": 8,
                        "antId": 6
                    }
                ]
            }
        ]
    }
}
🟠404Record not found
🟠400Invalid input
Previous
Get AccuroPT Session History
Next
Location
Built with