Class: SignalWire::REST::Namespaces::VideoConferences

Inherits:
CrudResource show all
Defined in:
lib/signalwire/rest/namespaces/video.rb

Overview

Video conference management with tokens and streams.

Instance Method Summary collapse

Methods inherited from CrudResource

#create, #delete, #get, #list, #update, update_method, update_method=

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from SignalWire::REST::BaseResource

Instance Method Details

#create_stream(conference_id, **kwargs) ⇒ Object



80
81
82
# File 'lib/signalwire/rest/namespaces/video.rb', line 80

def create_stream(conference_id, **kwargs)
  @http.post(_path(conference_id, 'streams'), kwargs)
end

#list_conference_tokens(conference_id, **params) ⇒ Object



72
73
74
# File 'lib/signalwire/rest/namespaces/video.rb', line 72

def list_conference_tokens(conference_id, **params)
  @http.get(_path(conference_id, 'conference_tokens'), params.empty? ? nil : params)
end

#list_streams(conference_id, **params) ⇒ Object



76
77
78
# File 'lib/signalwire/rest/namespaces/video.rb', line 76

def list_streams(conference_id, **params)
  @http.get(_path(conference_id, 'streams'), params.empty? ? nil : params)
end