Skip to content

Commit

Permalink
fix: remove + 'd' from mylink tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Nov 5, 2024
1 parent a9d6c32 commit a687806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerta/plugins/notification_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def mylink_bearer_request(channel: NotificationChannel, fernet: Fernet):


def send_mylink_sms(message: str, channel: NotificationChannel, receivers: 'list[str]', fernet: Fernet, **kwargs):
bearer = channel.bearer + 'd'
bearer = channel.bearer
data = json.dumps([{'recipient': receiver, 'content': {'text': message, 'options': {'sms.sender': channel.sender}}} for receiver in receivers])
headers = {'Content-Type': 'application/json', 'Authorization': f'Bearer {bearer}'}
return requests.post('https://api.linkmobility.com/sms/v1', data=data, headers=headers)
Expand Down

0 comments on commit a687806

Please sign in to comment.