User Tools

Site Tools


savescorecard

/igg/savescorecard

Add a new scorecard (qualifying or non-qualifying). If the scorecard already exists, it will be updated.

parameters:

auth the authorisation code you received from Intogolf BV (mandatory)
relnr the id of the golfer (mandatory)
showpractise if 1 the result will also include non-qualifying rounds

example: https://backend.ikgagolfen.nl/igg/gethandicaphistory?auth=<your authorisation code>&645347&showpractise=0

result:

{
  "gethandicaphistory": [
    {
      "ihhnr": 0,
      "chhnr": 0,
      "epenr": 188417,
      "playdate": "20121205",
      "hctnr": 3,
      "stableford": 3,
      "handicapold": 16.6,
      "handicapnew": 0.0,
      "holes": 18,
      "hcpactive": 0,
      "cba": 0,
      "course": "mixed ochtend NQ",
      "remark": ""
    },
    {
      "ihhnr": 0,
      "chhnr": 61674,
      "epenr": 0,
      "playdate": "20121128",
      "hctnr": 2,
      "stableford": 2,
      "handicapold": 16.9,
      "handicapnew": 16.6,
      "holes": 18,
      "hcpactive": 1,
      "cba": 0,
      "course": "De Turfvaert - De Turfvaert 18 holes",
      "remark": "strokeplay winst, fred blans 1e wedstrijd"
    },
    {
      "ihhnr": 0,
      "chhnr": 0,
      "epenr": 186203,
      "playdate": "20121114",
      "hctnr": 3,
      "stableford": 3,
      "handicapold": 17.8,
      "handicapnew": 16.9,
      "holes": 18,
      "hcpactive": 0,
      "cba": 0,
      "course": "mixed ochtend NQ",
      "remark": ""
    },
  ]
}
ihhnr internal id of the record in the handicap history of practise rounds
chhnr internal id of the record in the handicap history
epenr internal id of the record that represents the golfer in the competition (if applicable)
playdate date the round was played (format yyyymmdd)
hctnr type of the handicaphistory record. possible values are: 1-set initial handicap, 2-qualifying card, 3-competition result, 4-no return, 5-revoke handicap, 6-manual handicap adjustment, 7-annual handicap evaluation, 8-non qualifying card, 9-no show, 10-disqualified
stableford stableford points
handicapold handicap before this card is computed
handicapnew handicap after this card is applied
holes nr of holes played
hcpactive 1 if the handicap is active, 0 if not active
cba value that was used for cba in case of a competition
course name of the course played or name of the competition played
rmark remark entered by the user

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

savescorecard.txt · Last modified: 2013/11/26 12:30 (external edit)