Fetch Contacts to Transfer

This commit is contained in:
Shihaam Abdul Rahman
2021-04-25 00:13:54 +05:00
parent afb1b7bd07
commit 5199e2b285
2 changed files with 16 additions and 4 deletions

12
bml-bash/pasrjsontest.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/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