Perfect Gym api

Who is in

This API gives access to information about users signed up for classes.

List users signed up for given classes alt text

GET Classes/WhoIsIn

Returns list of users signed up for a given class. Only users that agreed to be listed are included. For details see Update existing user, showActivityInClub property.

Parameters

Name Type Description
classId long Required. Class identifier. Request returns list of users signed up for class identified with classId.

Response

Collection of Users.

Example request

In this example we fetch list of users signed up for class identified with id = 1677

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Classes/WhoIsIn/
        ?classId=1677       

Example response

Status: 200 OK
{
  "elements": [
    {
      "id": 1,
      "firstName": "Jan",
      "lastName": "Nowak",
      "photoUrl": "",
      "sex": "Male",
      "isPresent": true,
      "isDeleted": false,
      "timestamp": 447183
    }
  ]
}
Perfect Gym api