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.
api Login and Open Table automatically
-
- Posts: 107
- Joined: Wed May 06, 2009 12:59 pm
- Contact:
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: api Login and Open Table automatically
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 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.
-
- Posts: 107
- Joined: Wed May 06, 2009 12:59 pm
- Contact:
Re: api Login and Open Table automatically
nope, tried that.
and tried using a table name with no spaces or reserved characters.
and tried using a table name with no spaces or reserved characters.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: api Login and Open Table automatically
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:CanadaWest wrote:nope, tried that.
and tried using a table name with no spaces or reserved characters.
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.