more than one setting in the api call

Discuss developing tools and get details on Conquer Club's API.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Post Reply
User avatar
Qyu
Posts: 96
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Contact:

more than one setting in the api call

Post 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
Image
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: more than one setting in the api call

Post 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.
User avatar
Qyu
Posts: 96
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Contact:

Re: more than one setting in the api call

Post by Qyu »

roooooh, i didn't try that and it works
thanks mate
Image
User avatar
agentcom
Posts: 3994
Joined: Tue Nov 09, 2010 8:50 pm

Re: more than one setting in the api call

Post 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).
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

Post 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 ;).
Post Reply

Return to “Tools Development”