With this function you get a list with all available time for a relation on one date. If you want the time for 9 holes the you give parameter holes the value 0. If you want 18 holes you give the value 1.
Function: getfreetimesforplayer
parameters: relationid, playingdate, holes, numberofplayers
Example: https://backend.prowaregolf.nl/api/getfreetimesforplayer/key/<your authrisation code here>/relationid/<relationid>/playingdate/<playingdate>/holes/<0 for 9 holes or 1 for 18 holes>/numberofplayers/<1, 2, 3 or 4>
result:
{
"getfreetimesforplayer":[
{
"starttime":"09:00:00",
"combinationid":"2",
"objectid1":"4",
"objectid2":"3",
"duration":"02:00:00",
"numberofplayer":"0",
"maxplayer":"2"
},
{
"starttime":"09:10:00",
"combinationid":"2",
"objectid1":"4",
"objectid2":"3",
"duration":"02:00:00",
"numberofplayer":"0",
"maxplayer":"2"
},
{
"starttime":"09:20:00",
"combinationid":"2",
"objectid1":"4",
"objectid2":"3",
"duration":"02:00:00",
"numberofplayer":"0",
"maxplayer":"2"
}
]
}