Page 1 of 1

Idea

Posted: Wed Mar 04, 2009 7:56 pm
by poker4life
How about allowing a way to save tournament results to a mysql database?

Like winners and stuff?

Re: Idea

Posted: Wed Mar 04, 2009 9:12 pm
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.

Re: Idea

Posted: Thu Mar 05, 2009 4:58 pm
by poker4life
how?

Re: Idea

Posted: Thu Mar 05, 2009 5:04 pm
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