Retrive the count of sessions
GET {{baseUrl}}/stats/sessions/count?from_date=2021-11-01&to_date=2021-11-25&limit=100&team_id=43
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from_date | string | ||
to_date | string | ||
by_category | boolean | nullable | |
by_reps | boolean | nullable | |
by_team | boolean | nullable | |
by_players | boolean | nullable | |
by_week_day | boolean | nullable | |
by_exercises | boolean | nullable | |
by_exercise_tye | boolean | nullable | |
by_category | boolean | nullable | |
by_day | boolean | nullable | |
limit | number | ||
user_id | number | nullable | |
team_id | number | nullable |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Count sessions","sessions_count":[{"sessions_count":62,"user_id":1,"profile_first_name":"Francisco","profile_avatar":"https://files.teamsportz.app/avatars/1_1636029808.jpeg"},{"sessions_count":57,"user_id":459,"profile_first_name":"Goncalo","profile_avatar":"https://files.teamsportz.app/avatars/459_1638176129.jpg"},{"sessions_count":37,"user_id":1057,"profile_first_name":"goncalo","profile_avatar":null},{"sessions_count":9,"user_id":2,"profile_first_name":"TeamSportz","profile_avatar":"https://files.teamsportz.app/avatars/2_1632131893.png"},{"sessions_count":8,"user_id":1188,"profile_first_name":"jay","profile_avatar":null},{"sessions_count":5,"user_id":28,"profile_first_name":"Ellie","profile_avatar":"https://files.teamsportz.app/avatars/28_1636029700.jpeg"},{"sessions_count":3,"user_id":894,"profile_first_name":"Sarah","profile_avatar":"https://files.teamsportz.app/avatars/894_1641490816.jpeg"},{"sessions_count":2,"user_id":1216,"profile_first_name":"amanda","profile_avatar":null},{"sessions_count":2,"user_id":996,"profile_first_name":"Edna","profile_avatar":"https://files.teamsportz.app/avatars/996_1638923432.jpeg"},{"sessions_count":2,"user_id":1217,"profile_first_name":"子天","profile_avatar":"https://lh3.googleusercontent.com/a/AATXAJxR7ihKowkzVxambrAq4xY8qyDVX8F6NyDhBXHt=s96-c"},{"sessions_count":2,"user_id":1058,"profile_first_name":"Alexandra","profile_avatar":null},{"sessions_count":2,"user_id":1045,"profile_first_name":"Patrycja","profile_avatar":null},{"sessions_count":1,"user_id":1097,"profile_first_name":"Francisco","profile_avatar":"https://files.teamsportz.app/avatars/1097_1634050959.jpeg"},{"sessions_count":1,"user_id":670,"profile_first_name":"Goncalo","profile_avatar":"https://lh3.googleusercontent.com/a-/AOh14GhyHptsQjsfz_euKCKwzNaE6sejCoXdxEZDars6=s96-c"},{"sessions_count":1,"user_id":1196,"profile_first_name":"Aman","profile_avatar":"https://lh3.googleusercontent.com/a/AATXAJx7PQ2yy-Nq2xOr-tlSt0gFUEXZUTirVYZKyUpU=s96-c"},{"sessions_count":1,"user_id":1200,"profile_first_name":"Katherine","profile_avatar":"https://files.teamsportz.app/avatars/1200_1635874166.jpeg"},{"sessions_count":1,"user_id":1201,"profile_first_name":"Pavlo","profile_avatar":"https://lh3.googleusercontent.com/a/AATXAJzsBnP3zu6jmG5tZdK0ECl-q40zVoZKc2Pyrg1_=s96-c"},{"sessions_count":1,"user_id":1210,"profile_first_name":"Daniel","profile_avatar":null},{"sessions_count":1,"user_id":1228,"profile_first_name":"Muhammad Talha ","profile_avatar":null},{"sessions_count":1,"user_id":446,"profile_first_name":"NzingaVibez","profile_avatar":"https://lh3.googleusercontent.com/a-/AOh14GgdBDwZsAW6RXQcNztE2rJlI8VeHBnxk5VRRlSTMyo=s96-c"},{"sessions_count":1,"user_id":841,"profile_first_name":"Lawrence","profile_avatar":"https://lh3.googleusercontent.com/a-/AOh14Ghh4XTvOptarIrLcelY_9I8gL2hXLA8Z1mS5I0-X24=s96-c"},{"sessions_count":1,"user_id":961,"profile_first_name":"Chris","profile_avatar":null},{"sessions_count":1,"user_id":1264,"profile_first_name":"Siddharth","profile_avatar":"https://lh3.googleusercontent.com/a-/AOh14GiErV6CxDUxo0DBrH43pt8tseFTI1R8ld8iH_g8SQ=s96-c"}]}