AccountSessionKey and Auto Logon
Posted: Thu Nov 26, 2009 4:42 am
Hi,
I am hoping someone can help me out here. I am looking at purchasing PM shortly, im just playing around with trial and the API too see that I can intergrate it with my site. Im not much of PHP'r but have done some scripting in the past, guess I just need a helping hand.
I am wondering how I can automate a login using AccountSessionKey. From what I gather you need to find your AccountSessionKey first then pass it in to the PM site. I am able to do this by executing the following 2 URL's
http://192.168.0.100:8087/api?command=a ... er=Player1
http://192.168.0.100:8087/?LoginName=Pl ... y=whatever above url returns
I have the API.php include script working correctly (as provided on this forum), I am able to use the "chip leaders" php with no issues.
So I guess my question is, what PHP code do I need to get the session key of the logged on user, then pass that to the 2nd url?
Thanks.
I am hoping someone can help me out here. I am looking at purchasing PM shortly, im just playing around with trial and the API too see that I can intergrate it with my site. Im not much of PHP'r but have done some scripting in the past, guess I just need a helping hand.
I am wondering how I can automate a login using AccountSessionKey. From what I gather you need to find your AccountSessionKey first then pass it in to the PM site. I am able to do this by executing the following 2 URL's
http://192.168.0.100:8087/api?command=a ... er=Player1
http://192.168.0.100:8087/?LoginName=Pl ... y=whatever above url returns
I have the API.php include script working correctly (as provided on this forum), I am able to use the "chip leaders" php with no issues.
So I guess my question is, what PHP code do I need to get the session key of the logged on user, then pass that to the 2nd url?
Thanks.