-
Notifications
You must be signed in to change notification settings - Fork 3
/
api.php
37 lines (31 loc) · 951 Bytes
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once("Helper.php");
// Get Account information
$result = Helper::GetAccount();
$data = json_decode($result);
foreach($data->data as $row){
echo $row->id ."<br>";
echo $row->bank ."<br>";
echo $row->module ."<br>";
echo $row->account_no ."<br>";
echo $row->account_name ."<br>";
echo $row->balance ."<br>";
echo "--------------------<br>";
}
$date_from = '2018-11-15';
$date_to = '2018-11-19';
$acc_id = 1;
/// Get Account Statement
$result = Helper::GetAccountStatement($acc_id,$date_from,$date_to);
$data = json_decode($result);
if($data->error == false){
echo "Balance : ".$data->balance;
foreach($data->data as $statement){
echo $statement->transaction_date ."<br>";
echo $statement->description ."<br>";
echo $statement->amount ."<br>";
echo $statement->type ."<br>";
echo $statement->balance ."<br>";
echo "--------------------<br>";
}
}