User Tools

Site Tools


getteetime

This is an old revision of the document!


/igg/getteetime

Retrieve the current data of a teetime reservation

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)
fltnr id of booking (mandatory)

example: https://backend.ikgagolfen.nl/igg/getteetime?auth=<your authorisation code>&crsnr=1&relnr=701160&fltnr=3058247

result (if booking not canceled):

{
  "getteetime": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "fltnr": 3058247,
      "fltdate": 1,
      "flttime": 600,
      "crlnr1": 6,
      "crlname1": "rood",
      "crlnr2": 22,
      "crlname2": "blauw",
      "canceled": 0,
      "players": [
        {
          "flpnr": 9951290,
          "relnr": 701160,
          "flpname": "knol, r.j.w."
        },
        {
          "flpnr": 9951291,
          "relnr": 659764,
          "flpname": "knol-pas, s.a.w."
        },
        {
          "flpnr": 9951371,
          "relnr": 0,
          "flpname": "test"
        }
      ]
    }
  ]
}

result if canceled:

{
  "getteetime": [
    {
      "crsnr": 1,
      "crsshortname": "Intogolf",
      "crsname": "Intogolf BV",
      "fltnr": 3058247,
      "fltdate": 1,
      "flttime": 600,
      "crlnr1": 6,
      "crlname1": "rood",
      "crlnr2": 22,
      "crlname2": "blauw",
      "canceled": 1,
      "players": [

      ]
    }
  ]
}

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

getteetime.1355499853.txt.gz · Last modified: 2012/12/14 15:44 (external edit)