Player training stats Copy
GET {{baseUrl}}/{{version}}/stats/training/players/{{user_id}}?start_date=2022-06-29&end_date=2022-07-06&by=reps&type=count
This endpoint returns the training stats for a given player User UID
By setting the by
parameter it allows you to control what kind of data you want back. For example:
- number of sets
- number of reps
- number of sessions
This endpoint also groups the data by month or by day depending on wheater there a more than 31 days gap between the start_date
and end_date
.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start_date | string | required | |
end_date | string | required | |
by | string | required | |
type | string | nullable |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Training sessions for a player","response":[{"sets_count":2,"year":2022,"month":7,"day":5},{"sets_count":3,"year":2022,"month":7,"day":6}]}