Idea

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

Idea

Post by poker4life »

How about allowing a way to save tournament results to a mysql database?

Like winners and stuff?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Idea

Post by Kent Briggs »

poker4life wrote:How about allowing a way to save tournament results to a mysql database?

Like winners and stuff?
You can retrieve tournament results via the API and store them in your own database.
poker4life
Posts: 7
Joined: Sat Jan 31, 2009 9:36 pm

Re: Idea

Post by poker4life »

how?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Idea

Post by Kent Briggs »

Use the TournamentResults command in the API. Here's that section from the help file:

TournamentResults - retrieves a tournament results file. Use a Date parameter to specify the day the tournament finished in the form of yyyy-mm-dd. Use a Name parameter to specify the name of the tournament. If found, the entire contents of the results file (as saved in the TourneyResults folder) will be returned immediately after the "Result=Ok" line, similar to this example:

Results=Ok
Tournament=Tournament #1
Number=39
BuyIn=1500
Entrants=2
Start=2008-07-12 13:41:21
Place2=BoneCrusher (0)
Place1=Aces123 (3000)
Stop=2008-07-12 13:42:04

Tournament=Tournament #1
Number=40
BuyIn=1500
Entrants=3
Start=2008-07-12 17:11:26
Place3=DeathBot (0)
Place2=Aces123 (0)
Place1=BoneCrusher (4500)
Stop=2008-07-12 17:12:08

Online docs for API:
http://www.briggsoft.com/docs/pmavens/T ... erface.htm

Some API examples using PHP:
http://www.briggsoft.com/docs/pmavens/API_Examples.htm
Post Reply