当前位置: 首页>>代码示例>>PHP>>正文


PHP client::Get_Clients_Details方法代码示例

本文整理汇总了PHP中client::Get_Clients_Details方法的典型用法代码示例。如果您正苦于以下问题:PHP client::Get_Clients_Details方法的具体用法?PHP client::Get_Clients_Details怎么用?PHP client::Get_Clients_Details使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在client的用法示例。


在下文中一共展示了client::Get_Clients_Details方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: explode

<?php

$request_uri = $_SERVER['REQUEST_URI'];
$route = explode('/', $request_uri);
$countRoute = count($route);
if (!empty($route['4'])) {
    $client = new client();
    $client_id = $route['4'];
    $result = $client->Get_Clients_Details($client_id);
    print_r($result);
} else {
    $result['result'] = 0;
    echo json_encode($result);
}
开发者ID:anggagewor,项目名称:whmcs-api,代码行数:14,代码来源:details.php

示例2: custom

<?php

if ($_POST) {
    $cardid = $_POST['cardid'];
    $invoiceid = $_POST['invoiceid'];
    $nominal = $_POST['nominal'];
    $custom = new custom();
    $cekCardId = $custom->cekCardId($cardid);
    if ($cekCardId != 0) {
        $clientid = $custom->byCardId($cardid);
        $client = new client();
        $details = json_decode($client->Get_Clients_Details($clientid));
        $credit = explode('.', $details->client->credit);
        $credit = $credit['0'];
        if ($credit < $nominal) {
            $result['result'] = 0;
            $result['message'] = "Your Balance is not enought";
            echo json_encode($result);
        } else {
            $payments = new payments();
            $custom->updateInvoiceUserId($clientid, $invoiceid);
            $token['client_id'] = $clientid;
            $token['invoiceid'] = $invoiceid;
            $rtoken = $custom->rToken($token);
            if ($rtoken != 0) {
                $result['result'] = 1;
                $result['invoiceid'] = $invoiceid;
                $result['amount'] = $nominal;
                echo json_encode($result);
            } else {
                $result['result'] = 0;
开发者ID:anggagewor,项目名称:whmcs-api,代码行数:31,代码来源:bayar_pesanan.php


注:本文中的client::Get_Clients_Details方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。