Page 1 of 1

Tournament register from site

Posted: Fri Dec 17, 2010 7:21 pm
by narayan
Is it posible to create an API wich lists the Tournaments and alow you to register from a website ?

Re: Tournament register from site

Posted: Fri Dec 17, 2010 7:33 pm
by Kent Briggs
narayan wrote:Is it posible to create an API wich lists the Tournaments and alow you to register from a website ?
Yes, that already exists. TournamentsList and TournamentsRegister are the applicable API commands. See the Technical Information | API topic in the help file for the details.

Re: Tournament register from site

Posted: Sat Dec 18, 2010 5:16 am
by narayan
can you help with a simple php example ?
I`m novice in php and never worked with API.
The idea is for the use who logs via website to register on a tournament without loging to poker client.

Thank you !

Re: Tournament register from site

Posted: Sat Dec 18, 2010 10:32 am
by Kent Briggs
narayan wrote:can you help with a simple php example ?
I`m novice in php and never worked with API.
The idea is for the use who logs via website to register on a tournament without loging to poker client.
Thank you !
See the API examples page here, particularly the one for Tournament Results:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm

Letting people register would be more complicated, however. Presumably you would want to authenticate the people doing it, otherwise anyone could register (or register) a different player, which causes chips to be removed from their account, etc. And so that would require building a player login system into your web interface, also.