Page 1 of 1
Api problem
Posted: Mon Feb 27, 2012 10:04 pm
by richard015ar
I run the following code:
Code: Select all
include("API.php");
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo $api["Logins"];
And I get an error:
Error: Command parameter missing
HELP!
Re: Api problem
Posted: Mon Feb 27, 2012 10:37 pm
by Kent Briggs
I copy and pasted your code and put it inside a php block like this:
Code: Select all
<?php
include("API.php");
$params = "Password=" . $pw . "&Command=SystemStats";
$api = Poker_API($url,$params,true);
if ($api["Result"] == "Error") die("Error: " . $api["Error"]);
echo $api["Logins"];
?>
And it returned a "0", which was correct for the number of Logins on my system. Have you modified the API.php file in some way other than putting in your IP address and password?
Re: Api problem
Posted: Tue Feb 28, 2012 7:18 am
by richard015ar
In the api.php file I have the variables $ pw and $ url correctly ... this error is when the parameters are not correct?
Re: Api problem
Posted: Tue Feb 28, 2012 7:22 am
by richard015ar
I found the problem was some of the IIS. Thanks and sorry!