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
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 = {}) ⇒ Object
36 37 38 39 |
# File 'lib/iterable/workflows.rb', line 36 def trigger(workflow_id, attrs = {}) attrs['workflowId'] = workflow_id Iterable.request(conf, '/workflows/triggerWorkflow').post(attrs) end |