billpay.sh: put urls in variables
This commit is contained in:
parent
a84a159552
commit
777ce925d8
21
billpay.sh
21
billpay.sh
@ -1,6 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
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/"
|
||||
|
||||
main_menu(){
|
||||
PS3="Enter a number: "
|
||||
@ -8,16 +11,16 @@ main_menu(){
|
||||
do
|
||||
|
||||
case "${REPLY}" in
|
||||
1) xdg-open "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"
|
||||
1) xdg-open "${electricBill}"
|
||||
;;
|
||||
|
||||
2) xdg-open "https://uesaz.com"
|
||||
2) xdg-open "${gasBill}"
|
||||
;;
|
||||
|
||||
3) xdg-open "https://customer.sparklight.com/securelogin/login.aspx"
|
||||
3) xdg-open "${internetBill}"
|
||||
;;
|
||||
|
||||
4) xdg-open "https://xpressbillpay.com/"
|
||||
4) xdg-open "${waterBill}"
|
||||
;;
|
||||
|
||||
q) exit 0
|
||||
@ -33,16 +36,16 @@ main_menu(){
|
||||
|
||||
case "${1}" in
|
||||
|
||||
-e) xdg-open "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%2FAPSBusinessAPIss"
|
||||
-e) xdg-open "${electricBill}"
|
||||
;;
|
||||
|
||||
-g) xdg-open "https://uesaz.com"
|
||||
-g) xdg-open "${gasBill}"
|
||||
;;
|
||||
|
||||
-i) xdg-open "https://customer.sparklight.com/securelogin/login.aspx"
|
||||
-i) xdg-open "${internetBill}"
|
||||
;;
|
||||
|
||||
-w) xdg-open "https://xpressbillpay.com/"
|
||||
-w) xdg-open "${waterBill}"
|
||||
;;
|
||||
|
||||
-h|--help|help)
|
||||
|
Loading…
x
Reference in New Issue
Block a user