Conquer Club

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.

more than one setting in the api call

Postby Qyu on Thu Feb 14, 2013 12:06 pm

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

Re: more than one setting in the api call

Postby sherkaner on Thu Feb 14, 2013 1:17 pm

Try to seperate them through comma's, http://www.conquerclub.com/api.php?mode=gamelist&np=6,7 will give you the desired response.
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

Re: more than one setting in the api call

Postby Qyu on Thu Feb 14, 2013 1:34 pm

roooooh, i didn't try that and it works
thanks mate
Image
User avatar
Colonel Qyu
 
Posts: 96
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet

Re: more than one setting in the api call

Postby agentcom on Thu Feb 14, 2013 9:28 pm

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).
User avatar
Colonel agentcom
 
Posts: 3988
Joined: Tue Nov 09, 2010 8:50 pm

Re: more than one setting in the api call

Postby blakebowling on Thu Jun 13, 2013 4:46 am

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 ;).
Private blakebowling
 
Posts: 5093
Joined: Wed Jan 23, 2008 12:09 pm
Location: 127.0.0.1


Return to Tools Development

Who is online

Users browsing this forum: No registered users