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
more than one setting in the api call
Moderator: Tech Team
Forum rules
Please read the Community Guidelines before posting.
Please read the Community Guidelines before posting.
Re: more than one setting in the api call
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
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).
-
blakebowling
- Posts: 5093
- Joined: Wed Jan 23, 2008 12:09 pm
- Gender: Male
- Location: 127.0.0.1
Re: more than one setting in the api call
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
