diff --git a/.gitignore b/.gitignore index 88963a7..bb65448 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ .env -.cache/ -.cache/* -.cache +.cache/cookie diff --git a/get-balance.sh b/get-balance.sh index 7b73e3d..83a4d56 100644 --- a/get-balance.sh +++ b/get-balance.sh @@ -9,10 +9,22 @@ source .env $curl -s -c $COOKIE $BML_URL/login \ --data-raw username=$BML_USERNAME \ --data-raw password=${BML_PASSWORD} +echo "" +echo "Login done"; sleep 2 +echo "" + # Get profiles and select personal profile -PROFILE=$($curl -s -b $COOKIE $BML_URL/profile | jq -r '.payload | .profile | .[] | .profile' | head -n 1) -$curl -s -b $COOKIE $BML_URL/profile \ - --data-raw profile=$PROFILE >> /dev/null +#$curl -s -b $COOKIE $BML_URL/profile | jq -r '.payload | .profile | .[] | .profile' | head -n 1 +$curl -s -b $COOKIE $BML_URL/profile +echo "" +echo "Get Profile done"; sleep 2 +echo "" -$curl -s -c $COOKIE $BML_URL/api/dashboard + + +#PROFILE=$($curl -s -b $COOKIE $BML_URL/profile | jq -r '.payload | .profile | .[] | .profile' | head -n 1) +#$curl -s -b $COOKIE $BML_URL/profile \ +# --data-raw profile=$PROFILE >> /dev/null +# +#$curl -s -c $COOKIE $BML_URL/api/dashboard