Skip to content

Instantly share code, notes, and snippets.

@birinder-lobana
Created June 28, 2022 17:09
Show Gist options
  • Save birinder-lobana/ba6da3a8a9ab23dab9ad1e1301948248 to your computer and use it in GitHub Desktop.
Save birinder-lobana/ba6da3a8a9ab23dab9ad1e1301948248 to your computer and use it in GitHub Desktop.
Create SMS template in an Openscreen Project using python SDK
projectId = os.environ.get('PROJECT_ID')
sms_template = os.project(projectId).smsTemplates().create({
'body': 'Body of the message for {{asset.name}}',
'smsTemplateName': 'firstTemplate',
'responseUrl': 'https://myapp/sms-response',
'statusUrl': 'https://myapp/sms-status'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment