Method: Iterable::Workflows#trigger
- Defined in:
- lib/iterable/workflows.rb
#trigger(workflow_id, attrs = {}) ⇒ Iterable::Response
Note:
An email or listId is required to trigger a workflow
Trigger a workflow for an email or a list.
25 26 27 28 |
# File 'lib/iterable/workflows.rb', line 25 def trigger(workflow_id, attrs = {}) attrs['workflowId'] = workflow_id Iterable.request(conf, '/workflows/triggerWorkflow').post(attrs) end |