Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Last active June 27, 2022 16:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save birinder-lobana/8cdad947c31eb46cddff400597f9a83c to your computer and use it in GitHub Desktop.
Send SMS python
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