Module: Slack::Web::Api::Endpoints::CanvasesSections

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/canvases_sections.rb

Instance Method Summary collapse

Instance Method Details

#canvases_sections_lookup(options = {}) ⇒ Object

Find sections matching the provided criteria

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :canvas_id (Object)

    Encoded ID of the canvas.

  • :criteria (Object)

    Filtering criteria.

Raises:

  • (ArgumentError)

See Also:



18
19
20
21
22
# File 'lib/slack/web/api/endpoints/canvases_sections.rb', line 18

def canvases_sections_lookup(options = {})
  raise ArgumentError, 'Required arguments :canvas_id missing' if options[:canvas_id].nil?
  raise ArgumentError, 'Required arguments :criteria missing' if options[:criteria].nil?
  post('canvases.sections.lookup', options)
end