Hi Kent,
I was wondering if it's possible to get the list of rings sorted by the number of seated players (or any other parameter) from the API.
If not, how do you recommend doing so?
Shall I make my own table in the database of my website and whenever a player sits or gets up I send a callback and update the # of seated players in my DB and get the list of rings from there for showing purposes?
Retrieve List of Tables in Order
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Retrieve List of Tables in Order
Just call RingGamesList in the API and include Status in the Fields parameter, which will give you the player count. Sort the list yourself by the order you want. If you need additional details on players, loop through the table list returned by RingGamesList and call RingGamesPlaying for each one.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Retrieve List of Tables in Order
You could certainly do it that way also, especially if you need the real-time updates.Dornica wrote:Shall I make my own table in the database of my website and whenever a player sits or gets up I send a callback and update the # of seated players in my DB and get the list of rings from there for showing purposes?