Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Last active June 27, 2022 16:31
Show Gist options
  • Save birinder-lobana/8cdad947c31eb46cddff400597f9a83c to your computer and use it in GitHub Desktop.
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