User Tools

Site Tools


newscorecard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
newscorecard [2013/12/11 12:28]
richard
newscorecard [2014/04/15 09:26] (current)
Line 9: Line 9:
 |date   ​|mandatory unless epenr is provided. format yyyymmdd| |date   ​|mandatory unless epenr is provided. format yyyymmdd|
 |time   ​|starttime is mandatory unless epenr is provided. formatted as minutes since midnight (10:00 = 600, 12:40 = 760)| |time   ​|starttime is mandatory unless epenr is provided. formatted as minutes since midnight (10:00 = 600, 12:40 = 760)|
-|ratnr ​ |id of the measured course. mandatory unless epenr is provided|+|ratnr ​ |id of the measured course. mandatory unless epenr is provided. ratnr is a unique identifier for the combination of golfclub, which 9 or 18 holes loops and tee color| 
 +|handicap|EGA or clubhandicap of the golfer (mandatory)|
  
-example: https://​backend.ikgagolfen.nl/​igg/​newscorecard?​auth=<​your authorisation code>&​645347&​relnr=123456&​epenr=12345+example: https://​backend.ikgagolfen.nl/​hcp/​newscorecard?​auth=<​your authorisation code>&​645347&​relnr=123456&​epenr=12345&​handicap=23.4
  
-example: https://​backend.ikgagolfen.nl/​igg/​newscorecard?​auth=<​your authorisation code>&​645347&​relnr=123456&​chhnr=12345&​date=20131126&​time=630&​ratnr=1234+example: https://​backend.ikgagolfen.nl/​hcp/​newscorecard?​auth=<​your authorisation code>&​645347&​relnr=123456&​chhnr=12345&​date=20131126&​time=630&​ratnr=1234&​handicap=23.4
  
  
-result: +result: ​see [[getscorecard|/hcp/​getscorecard]]
-<​code>​{ +
-  "​newscorecard": ​[ +
-    { +
-      "​rscnr":​ 1234 +
-    }, +
-  ] +
-}</code>+
  
  
-|rscnr |internal id of the scorecard|+You need to retrieve the rscnr form the resultset for later use. It is needed to edit the scorecard and can be used to easily retrieve ​the scorecard ​data. 
  
 Possible errors: Possible errors:
  
-401Unauthorized +|401Unauthorized| 
- +|406Invalid relnr| 
-406Invalid relnr - golfer id not valid +|406Date not valid| 
- +|406Time not valid| 
-406Date not valid  +|406Invalid ​course| 
- +|500| Unexpected result 00021|
-406Time not valid +
- +
-406Invalid ​teenr+
  
-500, Unexpected result 00021 
  
  
  
  
newscorecard.1386764913.txt.gz · Last modified: 2013/12/11 12:28 (external edit)