Conquer Club
CC Time:

more than one setting in the api call

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

Moderators: Global Moderators, 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
Major Qyu
 
Posts: 108
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Medals: 61
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (4) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (2) Teammate Achievement (3) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (3) Tournament Achievement (4) Clan Achievement (9) General Contribution (1)

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.
Major sherkaner
 
Posts: 1582
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

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
Major Qyu
 
Posts: 108
Joined: Wed May 30, 2007 6:51 am
Location: Under my helmet
Medals: 61
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (4) Quadruples Achievement (4) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (2) Teammate Achievement (3) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (3) Tournament Achievement (4) Clan Achievement (9) General Contribution (1)

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).
Image
Colonel agentcom
Global Moderator
Global Moderator
 
Posts: 2546
Joined: Tue Nov 09, 2010 8:50 pm
Medals: 62
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (12) General Achievement (6) Clan Achievement (6) General Contribution (2)

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 ;).
[12:39:59 AM] rdsrds2120: sorry, I had a lot of lasagna tonight
[12:40:06 AM] rdsrds2120: I'm pretty out of it. CRAAZZYYY NIGHT
12:31:04 * Metsfanmax quit (kicked from Social by Metsfanmax - reason: haha gotcha now)
Cadet blakebowling
Developer
Developer
 
Posts: 4053
Joined: Wed Jan 23, 2008 12:09 pm
Location: 127.0.0.1
Medals: 40
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (1) Ratings Achievement (3) Tournament Achievement (1) General Achievement (3)
Tournament Contribution (3) General Contribution (9)


Return to Tools Development

Who is online

Users browsing this forum: No registered users and 0 guests

 

Login

 

 

 

Bookmark and Share

 

Give Premium

Gift Certificates