Module: Slack::Web::Api::Endpoints::CallsParticipants

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

Instance Method Summary collapse

Instance Method Details

#calls_participants_add(options = {}) ⇒ Object

Registers new participants added to a Call.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :id (Object)

    id returned by the calls.add method.

  • :users (Object)

    The list of users to add as participants in the Call. Read more on how to specify users here.

See Also:



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

def calls_participants_add(options = {})
  throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
  throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
  post('calls.participants.add', options)
end

#calls_participants_remove(options = {}) ⇒ Object

Registers participants removed from a Call.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :id (Object)

    id returned by the calls.add method.

  • :users (Object)

    The list of users to remove as participants in the Call. Read more on how to specify users here.

See Also:



33
34
35
36
37
# File 'lib/slack/web/api/endpoints/calls_participants.rb', line 33

def calls_participants_remove(options = {})
  throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
  throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
  post('calls.participants.remove', options)
end