diff --git a/.env.example b/.env.example index 9f4c8e2..45a3ce6 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,7 @@ USERNAME= PASSWORD= TOTP_SEED= +ACCOUNT_NUMBER= #Cookie QL_0= diff --git a/tx.sh b/tx.sh index eb82848..233f2a6 100755 --- a/tx.sh +++ b/tx.sh @@ -4,5 +4,5 @@ source .env 2> /dev/null curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \ -H "cookie: ql_0=${QL_0}; IBSID=${IBSID}" \ - --data-raw 'accountNo=90101400028321000&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1' -s \ + --data-raw "accountNo=${ACCOUNT_NUMBER}&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1" -s \ | sed 's/"benefName":"BML - /"benefName":"/g'