Greetings Kent,
Would you please show me how to use the Callback feature at the end of a daily tournament to send a generic congratulatory e-mail to the winner. I know it's sort of redundant because the player knows they won, but I want the player to feel they were recognized for thier accomplishment.
As always, thank you for your assistance,
Callback E-mail
-
- Posts: 97
- Joined: Fri Feb 06, 2009 3:13 pm
- Location: California
- Contact:
Callback E-mail
cuervo5150
http://www.iPokerBOT.com
http://www.iPokerBOT.com
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Callback E-mail
That would require a few hours of coding. I'll give you the outline of it:cuervo5150 wrote: Would you please show me how to use the Callback feature at the end of a daily tournament to send a generic congratulatory e-mail to the winner.
The Tournament Finish Event will call your PHP file and include a tournament "Name" and "Number" parameter. Use the Name and the current date to retrieve the tournament results file for that tournament using the TournamentsResult command in the API. Parse through that output looking for the tournament Number. Parse some more looking for the Place1 line. Pull the player's name out of that line. Parse some more looking for the Stop line to make sure it doesn't show "(Abort)" on the end. With the player's name, call the AccountsGet command in the API and fetch the player's email address. Use the PHP mail() command to send the email.
Re: Callback E-mail
Could you give me an example of how the Number parameter is used?Kent Briggs wrote:cuervo5150 wrote: a tournament "Name" and "Number" parameter.
What is it for?
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Callback E-mail
It's just a sequential number that gets incremented every time a new tournament starts on your site. It gives each one a unique number that you can use for your own purposes.social wrote: Could you give me an example of how the Number parameter is used?
What is it for?