[IMP] Change url for ovh smsapi
This commit is contained in:
@@ -54,7 +54,8 @@ function sendSms {
|
||||
|
||||
textSms=$(echo $textSms | sed -e 's/ /%20/g' | iconv -t iso-8859-1)
|
||||
|
||||
url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms"
|
||||
#url="https://www.$providerSms/myaccount/sendsms.php?username=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&text=$textSms"
|
||||
url="https://www.ovh.com/cgi-bin/sms/http2sms.cgi?&noStop=1&account=$accountSms&login=$usernameSms&password=$passwordSms&from=$fromSms&to=$toSms&message=$textSms"
|
||||
tempfile=$(tempfile -p 'nutNotifySms-')
|
||||
curl -s -o $tempfile $url
|
||||
result=$(cat $tempfile | grep '<result>' | awk -F "[<>]" '{print $3}')
|
||||
@@ -236,3 +237,4 @@ function conditionalNotification {
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user