How about allowing a way to save tournament results to a mysql database?
Like winners and stuff?
Idea
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Idea
You can retrieve tournament results via the API and store them in your own database.poker4life wrote:How about allowing a way to save tournament results to a mysql database?
Like winners and stuff?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Idea
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
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