Skip to content

Commit e4a4fc5

Browse files
committed
add docs and fix some bugs
1 parent baf64f9 commit e4a4fc5

File tree

6 files changed

+14
-376
lines changed

6 files changed

+14
-376
lines changed

README.MD

+2-46
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ what you need that it use this lib to make your own code so you can use it free
1212
[tesseract (windows)](https://github.com/UB-Mannheim/tesseract/wiki)
1313

1414
[tesseract (Linux & Mac)](https://github.com/tesseract-ocr/tessdoc/blob/main/Installation.md)
15-
1615

1716
and python3
1817

@@ -22,52 +21,9 @@ what you need that it use this lib to make your own code so you can use it free
2221

2322
pip install git+https://github.com/thedtvn/MBBank
2423

25-
## How to Use
26-
27-
### sync
28-
```py
29-
import datetime
30-
import mbbank
31-
32-
mb = mbbank.MBBank(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
33-
daynow = datetime.datetime.now()
34-
lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
35-
mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow [, accountNo="<sub account number default is main account number>"])
36-
mb.getCardTransactionHistory(cardNo="<get `cardNo` key from card json obj in `getCardList`>", from_date=lasttime, to_date=daynow)
37-
mb.getBalance()
38-
mb.getBalanceLoyalty()
39-
mb.getInterestRate()
40-
mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
41-
mb.getCardList()
42-
mb.getSavingList()
43-
mb.getLoanList()
44-
mb.userinfo()
45-
```
46-
47-
### async
48-
```py
49-
import asyncio
50-
import mbbank
51-
import datetime
52-
53-
async def main():
54-
mb = mbbank.MBBankAsync(username="<account number>", password="<account password>" [, tesseract_path="path/to/tesseract"])
55-
daynow = datetime.datetime.now()
56-
lasttime = daynow - datetime.timedelta(weeks=4*3) # maximum time 3 Month
57-
await mb.getTransactionAccountHistory(from_date=lasttime, to_date=daynow [, accountNo="<sub account number default is main account number>"])
58-
await mb.getCardTransactionHistory(cardNo="<get `cardNo` key from card json obj in `getCardList`>", from_date=lasttime, to_date=daynow)
59-
await mb.getBalance()
60-
await mb.getBalanceLoyalty()
61-
await mb.getInterestRate()
62-
await mb.getFavorBeneficiaryList(transactionType= "TRANSFER" or "PAYMENT", searchType="MOST" or "LATEST")
63-
await mb.getCardList()
64-
await mb.getSavingList()
65-
await mb.getLoanList()
66-
await mb.userinfo()
24+
## Documentation
6725

68-
asyncio.run(main())
69-
```
70-
and all this is return json for you have full control your data
26+
[Online Documentation](http://mbbank.rtfd.io/)
7127

7228
## Extra Info
7329
- Payment QR Code Generator

docs/api_document/async_api.md

-162
This file was deleted.

docs/api_document/sync_api.md

-162
This file was deleted.

docs/css/main.css

Whitespace-only changes.

0 commit comments

Comments
 (0)