2020-10-08 03:42:33 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
electricBill="https://login.auth.aps.com/apsprodb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1a_aps_paassitecoresignin&response_type=code&client_id=874546d6-0a39-4299-b663-68cd9346f21f&redirect_uri=https://www.aps.com/authorization/loginredirect&scope=https://APSPRODB2C.onmicrosoft.com/APSBusinessAPI/user_impersonation%20offline_access%20openid&nonce=f0984d65-2e3a-479c-9bdb-3ad6ca7ef21c&response_mode=form_post&resource=%20https%3A%2F%2FAPSPRODB2C.onmicrosoft.com%2FAPSBusinessAPI"
|
|
|
|
gasBill="https://uesaz.com"
|
|
|
|
internetBill="https://customer.sparklight.com/securelogin/login.aspx"
|
|
|
|
waterBill="https://xpressbillpay.com/"
|
2020-10-08 03:42:33 -07:00
|
|
|
|
|
|
|
main_menu(){
|
|
|
|
PS3="Enter a number: "
|
|
|
|
select bill in Electric Gas Internet Water
|
|
|
|
do
|
|
|
|
|
|
|
|
case "${REPLY}" in
|
2020-10-08 22:59:39 -07:00
|
|
|
1) xdg-open "${electricBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
2) xdg-open "${gasBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
3) xdg-open "${internetBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
4) xdg-open "${waterBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
|
|
|
q) exit 0
|
|
|
|
;;
|
|
|
|
|
|
|
|
*) echo "Please choose an existing option"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case "${1}" in
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
-e) xdg-open "${electricBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
-g) xdg-open "${gasBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
-i) xdg-open "${internetBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
2020-10-08 22:59:39 -07:00
|
|
|
-w) xdg-open "${waterBill}"
|
2020-10-08 03:42:33 -07:00
|
|
|
;;
|
|
|
|
|
|
|
|
-h|--help|help)
|
|
|
|
|
|
|
|
echo """
|
|
|
|
$0 [-e] [-g] [-i] [-w]
|
|
|
|
|
|
|
|
-e Electric bill
|
|
|
|
-g Gas bill
|
|
|
|
-i Internet bill
|
|
|
|
-w Water bill
|
|
|
|
"""
|
|
|
|
;;
|
|
|
|
|
|
|
|
*) main_menu
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|