Skip to content
Snippets Groups Projects
Commit c59ee96e authored by nimrod's avatar nimrod
Browse files

fixup! Migrate to another SMS sending service.

parent a7b550f8
No related branches found
No related tags found
No related merge requests found
Pipeline #2574 passed
...@@ -10,9 +10,10 @@ TO_NUMBER = os.environ["TO_NUMBER"] ...@@ -10,9 +10,10 @@ TO_NUMBER = os.environ["TO_NUMBER"]
def handler(event, context): def handler(event, context):
message = event["Records"][0]["Sns"]["Message"] message = event["Records"][0]["Sns"]["Message"]
client = messagebird.Client(MSGBIRD_ACCESS_KEY) client = messagebird.Client(MSGBIRD_ACCESS_KEY)
client.messages_create( client.message_create(
message, originator="Am I Live",
TO_NUMBER, recipients=TO_NUMBER,
body=message,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment