freemobile:// msg moved from GET parameters and into payload (#1106)

This commit is contained in:
Chris Caron 2024-04-13 19:13:13 -04:00 committed by GitHub
parent 47abc10af1
commit da5caf73b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@
# 1. Visit https://mobile.free.fr/
# the URL will look something like this:
# https://smsapi.free-mobile.fr/sendmsg?msg=content
# https://smsapi.free-mobile.fr/sendmsg
#
import requests
@ -132,10 +132,6 @@ class NotifyFreeMobile(NotifyBase):
payload = {
'user': self.user,
'pass': self.password,
}
# Our Message
params = {
'msg': body
}
@ -150,7 +146,6 @@ class NotifyFreeMobile(NotifyBase):
r = requests.post(
self.notify_url,
data=dumps(payload).encode('utf-8'),
params=params,
headers=headers,
verify=self.verify_certificate,
timeout=self.request_timeout,