Perfect Gym api

Clubs

Club is a summary representation of single club in your company.

Club properties

Class is described by the following properties

Name Type Description
id long Unique identifier of class.
timestamp long Timestamp. Indicates when resource was last modified.
name string Club name.
shortName long Club short name.
symbol long Club symbol.
email string Club e-mail address.
phoneNumber string Club phone number.
longitude decimal Club latitude.
longitude decimal Club longitude.
timeZone string Club time zone in windows format (for example: Central European Standard Time).
openDate datetime Indicates when club was opened
address Address Club address.
type long Club type.
isDeleted bool Indicates if resource is deleted.
isHidden bool Indicates if resource is hidden.

List clubs with timestamp alt text alt text

GET Clubs/Clubs

Returns paginated list of clubs available in your company.

Parameters

Name Type Description
timestamp long Timestamp. Request returns clubs with timestamp grater then timestamp, defaults to 0

Example request

In this example we fetch list of all clubs with timestamp greater then 254000

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Clubs/Clubs?timestamp=254000

Example response

Status: 200 OK
{
  "elements": [
    {
      "id": 2,
      "timestamp": 271990,
      "name": "Fibo Cyberbotics",
      "shortName": "Cyberbotics",
      "symbol": "FCBR",
      "type": "Normal",
      "openDate": "2015-01-01",
      "latitude": 52.51038,
      "longitude": 13.39763,
      "email": "club@cyberbotics.com",
      "phoneNumber": "+49 12 123 456 789",
      "timezone": "Central European Standard Time",
      "address": {
        "line1": "Leipziger Str. 46/47",
        "line2": "",
        "city": "Berlin",
        "postalCode": "10-117",
        "country": "Germany"
      },
      "isDeleted": false,
      "isHidden": false
    },
    {
      "id": 9,
      "timestamp": 255968,
      "name": "Club Monaco",
      "shortName": "Monaco",
      "symbol": "MON",
      "type": "Platinum",
      "openDate": "2015-01-01",
      "latitude": 52.51038,
      "longitude": 13.39763,
      "email": "club@clubmonaco.com",
      "phoneNumber": "+49 12 123 456 789",
      "timezone": "Central European Standard Time",
      "address": {
        "line1": "Rue Grimaldi 47",
        "line2": "",
        "city": "Monaco",
        "postalCode": "10-117",
        "country": "Monaco"
      },
      "isDeleted": false,
      "isHidden": false
    },
    {
      "id": 3,
      "timestamp": 255980,
      "name": "Club Cracow",
      "shortName": "Cracow",
      "symbol": "CRA",
      "type": "Normal",
      "openDate": "2015-01-01",
      "latitude": 52.51038,
      "longitude": 13.39763,
      "email": "club@clubkrakow.com",
      "phoneNumber": "+49 12 123 456 789",
      "timezone": "Central European Standard Time",
      "address": {
        "line1": "Al. Słowackiego 46/47",
        "line2": "",
        "city": "Kraków",
        "postalCode": "10-117",
        "country": "Poland"
      },
      "isDeleted": false,
      "isHidden": false
    },
    {
      "id": 14,
      "timestamp": 256064,
      "name": "Club Moscow",
      "shortName": "Moscow",
      "symbol": "",
      "type": "Normal",
      "openDate": "2015-01-01",
      "latitude": 52.51038,
      "longitude": 13.39763,
      "email": "club@clubmoscow.com",
      "phoneNumber": "+49 12 123 456 789",
      "timezone": "Central European Standard Time",
      "address": {
        "line1": "Leipziger Str. 46/47",
        "line2": "",
        "city": "Moscow",
        "postalCode": "10-117",
        "country": "Russia"
      },
      "isDeleted": true,
      "isHidden": false
    }
  ]
}
Perfect Gym api