string account_currency(string session)
Retrieve the currency name used with this prepaid account.
The XML-RPC response will contain the ISO 4217 currency name (string) used for this account. Possible faults are described in section Error Codes Format
print "prepaid account currency: %s" % proxy.account_currency(session)
$msg = new xmlrpcmsg("account_currency", array($session)); $reply = $proxy->send($msg); $val = $reply->value(); $val = $val->scalarval(); print "prepaid account currency: " . $val . "\n";
my $reply = $proxy->call("account_currency", $session); my $currency = $reply->result(); print "prepaid account currency: " . $currency . "\n";
double account_balance(string session)
Retrieve the prepaid account balance.
The XML-RPC response will contain the balance of the account (double). Possible faults are described in section Error Codes Format.
print "prepaid account balance: %d" % proxy.account_balance(session)
$msg = new xmlrpcmsg("account_balance", array($session)); $reply = $proxy->send($msg); $val = $reply->value(); $val = $val->scalarval(); print "prepaid account currency: " . $val . "\n";
my $reply = $proxy->call("account_balance", $session); my $balance = $reply->result(); print "prepaid account balance: " . $balance . "\n";
Aucune question sur cette page et ses sous-pages.
Flux RSS des questions correspondant à ce filtre (Aide)Dernière modification: le 03/03/2008 à 15:35 par Nicolas L. (Gandi)