14 lines
509 B
Bash
Raw Normal View History

2024-10-19 01:02:21 +05:00
#!/bin/bash
source .env 2> /dev/null
2024-10-19 01:02:21 +05:00
2025-01-10 07:52:09 +05:00
COOKIE=$(curl -s $COOKIE_SERVER/getcookie)
IBSID=$(echo $COOKIE | jq -r .IBSID)
QL_0=$(echo $COOKIE | jq -r .ql_0)
2024-10-19 01:02:21 +05:00
curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \
2024-10-20 00:59:28 +05:00
-H "cookie: ql_0=${QL_0}; IBSID=${IBSID}" \
2024-10-22 01:44:05 +05:00
--data-raw "accountNo=${ACCOUNT_NUMBER}&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1" -s \
2024-12-20 16:51:33 +05:00
| sed 's/"benefName":"BML - /"benefName":"/g' \
| jq '.data |= map(select(.baseAmount | tonumber > 0))'