Page 1 of 1

Stats for API!

Posted: Sat Mar 07, 2009 10:16 pm
by poker4life
Would be nice to display stats in php...

like pots won, cards seen? just about anything would be sick. thoughts?

Re: Stats for API!

Posted: Sat Mar 07, 2009 10:48 pm
by Kent Briggs
poker4life wrote:Would be nice to display stats in php...

like pots won, cards seen? just about anything would be sick. thoughts?
Some basic stats like that are displayed live in the client for each particular table. A more comprehensive system would require parsing through the hand history files which is how programs like Poker Tracker and Poker Office work. I don't currently have any API calls related to hand history files but you could open them with another program (including PHP) was running on same machine as the game server.

Re: Stats for API!

Posted: Sat Mar 07, 2009 11:12 pm
by poker4life
Would you consider adding them to the API?

Re: Stats for API!

Posted: Sat Mar 07, 2009 11:31 pm
by Kent Briggs
poker4life wrote:Would you consider adding them to the API?
I'd consider having the API just fetch a hand history file. Then you could do what you wanted with it on your end. I probably wouldn't want to bog the game server down parsing through files and crunching numbers, though. Although I might consider creating an external application that could.

Re: Stats for API!

Posted: Sat Mar 07, 2009 11:47 pm
by poker4life
Thanks, I think it would be really useful to people.

Re: Stats for API!

Posted: Sun Mar 08, 2009 8:27 pm
by Kent Briggs
Kent Briggs wrote:
poker4life wrote:Would you consider adding them to the API?
I'd consider having the API just fetch a hand history file.
The ability to remotely fetch a hand history file is now in 2.35. A PHP example of how to use it has been posted to the official API examples page:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm