Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created June 24, 2022 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/18b7fc10ad0ba6c2b495874b8b3b8c61 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/18b7fc10ad0ba6c2b495874b8b3b8c61 to your computer and use it in GitHub Desktop.
'''
Create a Task Resource
'''
unique_task_name = 'twilio-bot-repl-task'
assistant_task = None
try:
assistant_task = assistant.tasks.create(
unique_name=unique_task_name,
actions={}
)
except:
assistant_task = assistant.tasks(unique_task_name).fetch()
assistant_task_id = assistant_task.sid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment