本文整理匯總了PHP中MP::get_movements方法的典型用法代碼示例。如果您正苦於以下問題:PHP MP::get_movements方法的具體用法?PHP MP::get_movements怎麽用?PHP MP::get_movements使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MP
的用法示例。
在下文中一共展示了MP::get_movements方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: MP
<?php
if (isset($_POST["_eventId_confirmation"])) {
$mp = new MP($clientid, $clientsecret);
$date1 = implode("-", array_reverse(explode("/", $_POST['date1'])));
$date2 = implode("-", array_reverse(explode("/", $_POST['date2'])));
$filters = array("range" => "date_created", "begin_date" => $date1 . "T00:00:00.00Z", "end_date" => $date2 . "T23:59:00.00Z", "sort" => "date_created", "criteria" => "desc");
// Search payment data according to filters
$searchResult = $mp->get_movements($filters, 0, 50);
// print_r($searchResult);
// exit();
$interacao = $searchResult;
$rowslimit = (int) $searchResult["response"]["paging"]["total"];
echo "<h5> Total - rows: " . $rowslimit . " </h5><br><br>";
/*
echo "<pre>";
print_r($searchResult);
echo "</pre>";
*/
// Show payment information
?>
<a href="#" class="export">Export Table</a>
<table class="ch-datagrid-controls" id="table_collections" >
<tr style="background-color: lightgrey;" >
<td scope="col">id </td>
<td scope="col">type</td>
<td scope="col">detail</td>