Page 1 of 1

more than one setting in the api call

PostPosted: Thu Feb 14, 2013 12:06 pm
by Qyu
currently, we can just ask for one setting at one time. If we want games with 6 players and 7 players, we need to make two api calls
http://www.conquerclub.com/api.php?mode=gamelist&np=6
http://www.conquerclub.com/api.php?mode=gamelist&np=7

It would great to be able to make this in one :
http://www.conquerclub.com/api.php?mode=gamelist&np[]=6&np[]=7

and less calls is less server's work !

thanks a lot

Re: more than one setting in the api call

PostPosted: Thu Feb 14, 2013 1:17 pm
by sherkaner
Try to seperate them through comma's, http://www.conquerclub.com/api.php?mode=gamelist&np=6,7 will give you the desired response.

Re: more than one setting in the api call

PostPosted: Thu Feb 14, 2013 1:34 pm
by Qyu
roooooh, i didn't try that and it works
thanks mate

Re: more than one setting in the api call

PostPosted: Thu Feb 14, 2013 9:28 pm
by agentcom
You can also just use gamefinder to get you to that page by selecting 6 and 7. It will take you to the same page, but the true web address is obscured until you click one of the little navigation arrows at the top and bottom of the results (clickable even if grayed out).

Re: more than one setting in the api call

PostPosted: Thu Jun 13, 2013 4:46 am
by blakebowling
agentcom wrote:You can also just use gamefinder to get you to that page by selecting 6 and 7. It will take you to the same page, but the true web address is obscured until you click one of the little navigation arrows at the top and bottom of the results (clickable even if grayed out).

The difference is, he is using the API (meant for scripts) and not the game finder ;).