當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。