User Tools

Site Tools


courses

Differences

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

Link to this comparison view

courses [2012/12/14 14:45]
richard created
courses [2012/12/14 14:48] (current)
richard
Line 1: Line 1:
-/​igg/​courses+==== /​igg/​courses ​====
 To retreive a list of golfcourses. To retreive a list of golfcourses.
 +
 parameters: parameters:
-auth the authorisation code you received from Intogolf BV (mandatory) +|auth |the authorisation code you received from Intogolf BV (mandatory)| 
-crsnr list only this course exclusively +|crsnr |list only this course exclusively| 
-type 0 courses in alphabetical order, 1 courses ordered on distance +|type |0 courses in alphabetical order, 1 courses ordered on distance| 
-relnr client id. the backend will find the preferred course for this client and use it as centercrsnr +|relnr |client id. the backend will find the preferred course for this client and use it as centercrsnr| 
-centercrsnr pass the id of a course to get a list of this course + nearby courses  +|centercrsnr |pass the id of a course to get a list of this course + nearby courses ​| 
-rows number of desired rows +|rows |number of desired rows| 
-teetimesyn 1 if you want to show courses that allow teetime bookings +|teetimesyn |1 if you want to show courses that allow teetime bookings| 
-lessonsyn 1 if you want to show courses that allow lesson bookings +|lessonsyn |1 if you want to show courses that allow lesson bookings| 
-competitionsyn 1 if you want to show courses that allow competition subscriptions +|competitionsyn |1 if you want to show courses that allow competition subscriptions| 
-handicapsyn 1 if you want to show courses that allow the registration of Q-cards+|handicapsyn |1 if you want to show courses that allow the registration of Q-cards|
  
 all parameters are free to be used or to be omitted except for auth all parameters are free to be used or to be omitted except for auth
 +
 if none of the parameters teetimesyn, lessonsyn, competitionsyn,​ handicapsyn is set to 1 an empty list will be returned if none of the parameters teetimesyn, lessonsyn, competitionsyn,​ handicapsyn is set to 1 an empty list will be returned
 +
 if type=1 and no relnr or centercrsnr is provided a random course will be used as the center (i.e. first in the list) if type=1 and no relnr or centercrsnr is provided a random course will be used as the center (i.e. first in the list)
  
courses.1355496322.txt.gz · Last modified: 2012/12/14 14:45 by richard