api Login and Open Table automatically

For discussion of the Poker Mavens server module and other administration topics
Post Reply
CanadaWest
Posts: 107
Joined: Wed May 06, 2009 12:59 pm
Contact:

api Login and Open Table automatically

Post by CanadaWest »

Experimenting with opening tables automatically on login.

I can't get api to both Login AND Open and table.

eg. http/..url..?LoginName=Aces123&SessionKey=123456asdfg&TableName=Big Weekly Tourney - Table 3&TableType=T&TablePassword=xyz123

Doesn't work.
George
(CanadaWest)
www.playersclub.ca
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: api Login and Open Table automatically

Post by Kent Briggs »

CanadaWest wrote:Experimenting with opening tables automatically on login.
I can't get api to both Login AND Open and table.
eg. http/..url..?LoginName=Aces123&SessionKey=123456asdfg&TableName=Big Weekly Tourney - Table 3&TableType=T&TablePassword=xyz123
Doesn't work.
You probably just need to URL Encode your parameters so that the spaces are turned in %20 and other reserved characters are encoded also. Remember to encode them individually. If you do the entire line then the required ampersands in between will get encoded also. You likely only need to encode the TableName parameter.
CanadaWest
Posts: 107
Joined: Wed May 06, 2009 12:59 pm
Contact:

Re: api Login and Open Table automatically

Post by CanadaWest »

nope, tried that.

and tried using a table name with no spaces or reserved characters.
George
(CanadaWest)
www.playersclub.ca
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: api Login and Open Table automatically

Post by Kent Briggs »

CanadaWest wrote:nope, tried that.
and tried using a table name with no spaces or reserved characters.
Are you calling AccountsSessionKey first to get a valid session key? Are you doing this by hand via your browser or all via code? I have no problem doing it by hand. First I typed this into my browser address bar:

http://192.168.1.100:8087/api?command=a ... player=pm1

and got this result:

Result=Ok
Player=pm1
SessionKey=BE03FAD4B67FC9ED30AF

Then I did this:

http://192.168.1.100:8087/?LoginName=pm ... Password=x

And it logged me in and opened table 3 of a tournament name Tournament 3 with a password of x.
Post Reply