An open API service indexing awesome lists of open source software.

https://github.com/ammarfaizi2/klikbca

KlikBCA Scraper
https://github.com/ammarfaizi2/klikbca

banking bca ibank klikbca

Last synced: 6 months ago
JSON representation

KlikBCA Scraper

Awesome Lists containing this project

README

          

# KlikBCA
This is the KlikBCA scraper library written in PHP by Ammar Faizi.

# Features
1. Get account balance information.
2. Get account statements given the date range.

# Examples
### 1. Get account balance information.
```php
setProxy(PROXY);

$ret = $bca->login();
if (!$ret)
goto err;

$ret = $bca->balanceInquiry();
if (!$ret)
goto err;

printf("Balance information:\n%s\n\n",
json_encode($ret, JSON_PRETTY_PRINT));
return;

err:
printf("Error: %s\n", $bca->getErr());
}
show_balance($username, $password);
```

### 2. Get account statements given the date range.
```php
setProxy(PROXY);

$ret = $bca->login();
if (!$ret)
goto err;

$ret = $bca->accountStatement($startDate, $endDate);
if (!$ret)
goto err;

printf("Account statements for %s to %s:\n%s\n\n", $startDate, $endDate,
json_encode($ret, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
return;

err:
printf("Error: %s\n", $bca->getErr());
}
$startDate = "2022-04-25";
$endDate = "2022-05-01";
show_account_statements($username, $password, $startDate, $endDate);
```

# License
This project is licensed under the GNU GPL v2.

# Contributing
I welcome pull request through the GitHub repository:
https://github.com/ammarfaizi2/KlikBCA