Change voip_password into voip_pin for get_account_balance.sh.erb
This commit is contained in:
parent
17ce7ca3e4
commit
e2dd96c8be
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,6 @@
|
||||||
# Write here the script to return the current balance for the voip account
|
# Write here the script to return the current balance for the voip account
|
||||||
|
|
||||||
USERNAME="<%= @voip_username %>"
|
USERNAME="<%= @voip_username %>"
|
||||||
PIN="<%= @voip_password %>"
|
PIN="<%= @voip_pin %>"
|
||||||
|
|
||||||
/usr/bin/curl -c /tmp/cookie.txt -L --data "p_sa=$USERNAME&p_pin=$PIN&p_nic=200&p_appname=reseller&p_formlang=english&dest=/account/reseller/english/splash.asp" "https://www.myaccountcenter.net/account/lookup.asp?WCI=login" 2>/dev/null | grep 'Funds Remaining' | awk -F'$' '{print $2}' | tr '</b>' ' '
|
/usr/bin/curl -c /tmp/cookie.txt -L --data "p_sa=$USERNAME&p_pin=$PIN&p_nic=200&p_appname=reseller&p_formlang=english&dest=/account/reseller/english/splash.asp" "https://www.myaccountcenter.net/account/lookup.asp?WCI=login" 2>/dev/null | grep 'Funds Remaining' | awk -F'$' '{print $2}' | tr '</b>' ' '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue