Retrieve List of Tables in Order

For general discussion of the Poker Mavens software

Retrieve List of Tables in Order

Postby Dornica » Wed Nov 14, 2018 1:23 am

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?
Dornica
 
Posts: 7
Joined: Tue Oct 02, 2018 4:23 am

Re: Retrieve List of Tables in Order

Postby Kent Briggs » Wed Nov 14, 2018 10:42 am

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm

Re: Retrieve List of Tables in Order

Postby Kent Briggs » Wed Nov 14, 2018 10:45 am

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?


You could certainly do it that way also, especially if you need the real-time updates.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests

cron