This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gethandicaphistory [2013/02/12 14:32] richard created |
gethandicaphistory [2013/12/16 12:34] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | gethandicaphistory | + | ====/hcp/gethandicaphistory==== |
+ | Retrieve a list of all qualifying and non-qualifying golfrounds played by a golfer. | ||
+ | |||
+ | 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/hcp/gethandicaphistory?auth=<your authorisation code>&relnr=645347&showpractise=0 | ||
+ | |||
+ | result: | ||
+ | <code>{ | ||
+ | "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": "" | ||
+ | }, | ||
+ | ] | ||
+ | }</code> | ||
+ | |||
+ | |||
+ | |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 | ||
+ |