Show Balance Chip API ??

For general discussion of the Poker Mavens software
Post Reply
Gamebler
Posts: 9
Joined: Mon Dec 12, 2011 1:36 pm

Show Balance Chip API ??

Post by Gamebler »

hi kent , i want Show Balance Chip API php code tnx
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show Balance Chip API ??

Post by Kent Briggs »

Gamebler wrote:hi kent , i want Show Balance Chip API php code tnx
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:

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"];
?>
Gamebler
Posts: 9
Joined: Mon Dec 12, 2011 1:36 pm

Re: Show Balance Chip API ??

Post by Gamebler »

tnx ,but i want when player login automatic show chip balance and chip in play
Gamebler
Posts: 9
Joined: Mon Dec 12, 2011 1:36 pm

Re: Show Balance Chip API ??

Post by Gamebler »

or if any link for open automatic Chip Balance program... tnQ
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show Balance Chip API ??

Post by Kent Briggs »

Gamebler wrote:tnx ,but i want when player login automatic show chip balance and chip in play
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
Posts: 9
Joined: Mon Dec 12, 2011 1:36 pm

Re: Show Balance Chip API ??

Post by Gamebler »

ooo tanx, sorry i have a last question, i want API for Todays Big Winner which show cards tnQ if you answered this ?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show Balance Chip API ??

Post by Kent Briggs »

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 ?
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:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm
fafafa
Posts: 41
Joined: Thu Feb 23, 2012 10:01 am

Re: Show Balance Chip API ??

Post by fafafa »

Kent Briggs wrote:
Gamebler wrote:tnx ,but i want when player login automatic show chip balance and chip in play
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.
Hi Kent how i can use own web-based login system??!
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show Balance Chip API ??

Post by Kent Briggs »

fafafa wrote: Hi Kent how i can use own web-based login system??!
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:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm
Post Reply