Method: Slack::Web::Api::Endpoints::Views#views_open
- Defined in:
- lib/slack/web/api/endpoints/views.rb
#views_open(options = {}) ⇒ Object
Open a view for a user.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/slack/web/api/endpoints/views.rb', line 18 def views_open( = {}) throw ArgumentError.new('Required arguments :trigger_id missing') if [:trigger_id].nil? throw ArgumentError.new('Required arguments :view missing') if [:view].nil? if .key?(:view) view = [:view] view = JSON.dump(view) unless view.is_a?(String) = .merge(view: view) end post('views.open', ) end |