@@ -12,7 +12,6 @@ what you need that it use this lib to make your own code so you can use it free
12
12
[ tesseract (windows)] ( https://github.com/UB-Mannheim/tesseract/wiki )
13
13
14
14
[ tesseract (Linux & Mac)] ( https://github.com/tesseract-ocr/tessdoc/blob/main/Installation.md )
15
-
16
15
17
16
and python3
18
17
@@ -22,52 +21,9 @@ what you need that it use this lib to make your own code so you can use it free
22
21
23
22
pip install git+https://github.com/thedtvn/MBBank
24
23
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
67
25
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/ )
71
27
72
28
## Extra Info
73
29
- Payment QR Code Generator
0 commit comments