Skip to content

Commit

Permalink
freemobile:// msg moved from GET parameters and into payload (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Apr 13, 2024
1 parent 47abc10 commit da5caf7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apprise/plugins/NotifyFreeMobile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -132,10 +132,6 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs):
payload = {
'user': self.user,
'pass': self.password,
}

# Our Message
params = {
'msg': body
}

Expand All @@ -150,7 +146,6 @@ def send(self, body, title='', notify_type=NotifyType.INFO, **kwargs):
r = requests.post(
self.notify_url,
data=dumps(payload).encode('utf-8'),
params=params,
headers=headers,
verify=self.verify_certificate,
timeout=self.request_timeout,
Expand Down

0 comments on commit da5caf7

Please sign in to comment.