Module: Slack::Web::Api::Endpoints::AdminWorkflows
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_workflows.rb
Instance Method Summary collapse
-
#admin_workflows_search(options = {}) ⇒ Object
Search workflows within the team or enterprise.
-
#admin_workflows_unpublish(options = {}) ⇒ Object
Unpublish workflows within the team or enterprise.
Instance Method Details
#admin_workflows_search(options = {}) ⇒ Object
Search workflows within the team or enterprise
38 39 40 41 42 43 44 45 46 |
# File 'lib/slack/web/api/endpoints/admin_workflows.rb', line 38 def admin_workflows_search( = {}) if block_given? Pagination::Cursor.new(self, :admin_workflows_search, ).each do |page| yield page end else post('admin.workflows.search', ) end end |
#admin_workflows_unpublish(options = {}) ⇒ Object
Unpublish workflows within the team or enterprise
55 56 57 58 |
# File 'lib/slack/web/api/endpoints/admin_workflows.rb', line 55 def admin_workflows_unpublish( = {}) raise ArgumentError, 'Required arguments :workflow_ids missing' if [:workflow_ids].nil? post('admin.workflows.unpublish', ) end |