Show Balance Chip API ??
Show Balance Chip API ??
hi kent , i want Show Balance Chip API php code tnx
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Show Balance Chip API ??
Just call the AccountsGet function in the API with the player's name passed in a parameter called "Player". You can also confirm their password like I show here:Gamebler wrote:hi kent , i want Show Balance Chip API php code tnx
Code: Select all
<?php
include "API.php"; // API password assigned to $pw in here
$player = "TEST"; // assume these values retrieved from input form
$playerpw = "123456";
$params = "Password=" . $pw . "&Command=AccountsGet&Player=" . $player;
$api = Poker_API($url,$params,true);
$result = $api["Result"];
if ($result == "Error") die("Error: " . $api["Error"]);
if ($api["PW"] != $playerpw) die("Password is incorrect");
echo "Chip balance for " . $player . " is " . $api["Balance"];
?>
Re: Show Balance Chip API ??
tnx ,but i want when player login automatic show chip balance and chip in play
Re: Show Balance Chip API ??
or if any link for open automatic Chip Balance program... tnQ
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Show Balance Chip API ??
You cannot modify the player client GUI with the API. And there is already a show balance button built into it anyway. To do what you want to do, you will need to create your own web-based login system, where you embed the player client in an iframe and display your own info in the surrounding area.Gamebler wrote:tnx ,but i want when player login automatic show chip balance and chip in play
Re: Show Balance Chip API ??
ooo tanx, sorry i have a last question, i want API for Todays Big Winner which show cards tnQ if you answered this ?
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Show Balance Chip API ??
That would require writing a program that parsed through the hand history files and calculated those kind of stats. It's doable but not a trivial task. The API call for retrieving a hand history file is LogsHandHistory, which is documented in the help file. There's also some example code for retrieving a hand history file on the API examples page:Gamebler wrote:ooo tanx, sorry i have a last question, i want API for Todays Big Winner which show cards tnQ if you answered this ?
http://www.briggsoft.com/docs/pmavens/API_Examples.htm
Re: Show Balance Chip API ??
Hi Kent how i can use own web-based login system??!Kent Briggs wrote:You cannot modify the player client GUI with the API. And there is already a show balance button built into it anyway. To do what you want to do, you will need to create your own web-based login system, where you embed the player client in an iframe and display your own info in the surrounding area.Gamebler wrote:tnx ,but i want when player login automatic show chip balance and chip in play
-
- Site Admin
- Posts: 5878
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Show Balance Chip API ??
There are multiple ways, all involve writing code on your web site to prompt for a user name and password, then authenticate that against your own database or via API calls to the Poker Mavens server. A couple of simple examples are posted on the API example page in the Automated Login section:fafafa wrote: Hi Kent how i can use own web-based login system??!
http://www.briggsoft.com/docs/pmavens/API_Examples.htm