From c59ee96e64a414fcf4b21cef15cb8da78b89b0b0 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 7 Jan 2022 01:00:52 +0200
Subject: [PATCH] fixup! Migrate to another SMS sending service.

---
 src/sms_notify.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/sms_notify.py b/src/sms_notify.py
index 5c2391f..19f7583 100644
--- a/src/sms_notify.py
+++ b/src/sms_notify.py
@@ -10,9 +10,10 @@ TO_NUMBER = os.environ["TO_NUMBER"]
 def handler(event, context):
     message = event["Records"][0]["Sns"]["Message"]
     client = messagebird.Client(MSGBIRD_ACCESS_KEY)
-    client.messages_create(
-        message,
-        TO_NUMBER,
+    client.message_create(
+        originator="Am I Live",
+        recipients=TO_NUMBER,
+        body=message,
     )
 
 
-- 
GitLab