Class: Iterable::Workflows
- Inherits:
-
ApiResource
- Object
- ApiResource
- Iterable::Workflows
- Defined in:
- lib/iterable/workflows.rb
Overview
Interact with /workflows API endpoints
Instance Attribute Summary
Attributes inherited from ApiResource
Instance Method Summary collapse
-
#trigger(workflow_id, attrs = {}) ⇒ Iterable::Response
Trigger a workflow for an email or a list.
Methods inherited from ApiResource
#default_config, default_config, #initialize
Constructor Details
This class inherits a constructor from Iterable::ApiResource
Instance Method Details
#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 |