Last active
June 27, 2022 16:31
-
-
Save birinder-lobana/8cdad947c31eb46cddff400597f9a83c to your computer and use it in GitHub Desktop.
Send SMS python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scanId = create_contact_by_scan_id.contact.customAttributes[0] | |
contactId = create_contact_by_scan_id.contact.contactId | |
sms = ospro.scan(scanId).sms().send({ | |
# You may use an SMS template to send SMS or pass the body as plain text | |
'body': 'Congratulations! You are the winner of our campaign', | |
'contactId': contactId | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment