User Tools

Site Tools


getlesson

/igg/getlesson

Retrieve the current data of a lesson

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
relnr the id of the golfer that is currently logged in (mandatory)
relkey the hash key that was provided upon login (mandatory if relnr>0)
lesnr id of booking (mandatory)

example: https://backend.ikgagolfen.nl/igg/getlesson?auth=<your authorisation code>&lesnr=167077&relnr=707025&relkey=a8d2aaaef4131d033d60cdfd0bfe9804

result (if booking not canceled):

{
  "getlesson": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "lesnr": 167077,
      "lesdate": "20121001",
      "lestimefrom": 720,
      "lestimeto": 775,
      "pronr": 7493,
      "proname": "Hit Better",
      "pltnr": 1,
      "pltname": "uur les",
      "canceled": 0,
      "players": [
        {
          "plc": 271411,
          "relnr": 707025,
          "plcname": "Vries, Fred de"
        },
        {
          "plc": 271412,
          "relnr": 0,
          "plcname": "golfer 2"
        }
      ]
    }
  ]
}

result if canceled:

{
  "getlesson": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "lesnr": 167075,
      "lesdate": "20121001",
      "lestimefrom": 720,
      "lestimeto": 775,
      "pronr": 7493,
      "proname": "Hit Better",
      "pltnr": 1,
      "pltname": "uur les",
      "canceled": 1,
      "players": [

      ]
    }
  ]
}

if a wrong authorisation code is provided, the backend will return “no authorisation”

getlesson.txt · Last modified: 2012/12/14 15:55 by richard