bml-cli/pasrjsontest.sh
2021-04-25 14:59:31 +05:00

15 lines
433 B
Bash
Executable File

#!/bin/bash
source .env
BML_URL='https://www.bankofmaldives.com.mv/internetbanking/api'
COOKIE=/tmp/bmlcookie
curl -s -c $COOKIE $BML_URL/login \
--data-raw username=$BML_USERNAME \
--data-raw password=$BML_PASSWORD \
--compressed > /dev/null
curl -s -b $COOKIE $BML_URL/profile > /dev/null
#curl -s -b $COOKIE $BML_URL/contacts
#curl -s -b $COOKIE $BML_URL/validate/account/7704265806101
curl -s -b $COOKIE $BML_URL/dashboard