Would be nice to display stats in php...
like pots won, cards seen? just about anything would be sick. thoughts?
Stats for API!
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Stats for API!
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 wrote:Would be nice to display stats in php...
like pots won, cards seen? just about anything would be sick. thoughts?
-
- Posts: 7
- Joined: Sat Jan 31, 2009 9:36 pm
Re: Stats for API!
Would you consider adding them to the API?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Stats for 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 wrote:Would you consider adding them to the API?
-
- Posts: 7
- Joined: Sat Jan 31, 2009 9:36 pm
Re: Stats for API!
Thanks, I think it would be really useful to people.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Stats for API!
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:Kent Briggs wrote:I'd consider having the API just fetch a hand history file.poker4life wrote:Would you consider adding them to the API?
http://www.briggsoft.com/docs/pmavens/API_Examples.htm