Stats for API!

Add your suggestions for improving Poker Mavens
Post Reply
poker4life
Posts: 7
Joined: Sat Jan 31, 2009 9:36 pm

Stats for API!

Post by poker4life »

Would be nice to display stats in php...

like pots won, cards seen? just about anything would be sick. thoughts?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Stats for API!

Post 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.
poker4life
Posts: 7
Joined: Sat Jan 31, 2009 9:36 pm

Re: Stats for API!

Post by poker4life »

Would you consider adding them to the API?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Stats for API!

Post 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.
poker4life
Posts: 7
Joined: Sat Jan 31, 2009 9:36 pm

Re: Stats for API!

Post by poker4life »

Thanks, I think it would be really useful to people.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Stats for API!

Post 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
Post Reply