Class: SignalWire::REST::Namespaces::CompatConferences

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/signalwire/rest/namespaces/compat.rb

Overview

Compat conference management.

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

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

Instance Method Details

#delete_recording(conference_sid, recording_sid) ⇒ Object



111
112
113
# File 'lib/signalwire/rest/namespaces/compat.rb', line 111

def delete_recording(conference_sid, recording_sid)
  @http.delete(_path(conference_sid, 'Recordings', recording_sid))
end

#get(sid) ⇒ Object



78
# File 'lib/signalwire/rest/namespaces/compat.rb', line 78

def get(sid)           = @http.get(_path(sid))

#get_participant(conference_sid, call_sid) ⇒ Object



86
87
88
# File 'lib/signalwire/rest/namespaces/compat.rb', line 86

def get_participant(conference_sid, call_sid)
  @http.get(_path(conference_sid, 'Participants', call_sid))
end

#get_recording(conference_sid, recording_sid) ⇒ Object



103
104
105
# File 'lib/signalwire/rest/namespaces/compat.rb', line 103

def get_recording(conference_sid, recording_sid)
  @http.get(_path(conference_sid, 'Recordings', recording_sid))
end

#list(**params) ⇒ Object



77
# File 'lib/signalwire/rest/namespaces/compat.rb', line 77

def list(**params)     = @http.get(@base_path, params.empty? ? nil : params)

#list_participants(conference_sid, **params) ⇒ Object

Participants



82
83
84
# File 'lib/signalwire/rest/namespaces/compat.rb', line 82

def list_participants(conference_sid, **params)
  @http.get(_path(conference_sid, 'Participants'), params.empty? ? nil : params)
end

#list_recordings(conference_sid, **params) ⇒ Object

Conference recordings



99
100
101
# File 'lib/signalwire/rest/namespaces/compat.rb', line 99

def list_recordings(conference_sid, **params)
  @http.get(_path(conference_sid, 'Recordings'), params.empty? ? nil : params)
end

#remove_participant(conference_sid, call_sid) ⇒ Object



94
95
96
# File 'lib/signalwire/rest/namespaces/compat.rb', line 94

def remove_participant(conference_sid, call_sid)
  @http.delete(_path(conference_sid, 'Participants', call_sid))
end

#start_stream(conference_sid, **kwargs) ⇒ Object

Conference streams



116
117
118
# File 'lib/signalwire/rest/namespaces/compat.rb', line 116

def start_stream(conference_sid, **kwargs)
  @http.post(_path(conference_sid, 'Streams'), kwargs)
end

#stop_stream(conference_sid, stream_sid, **kwargs) ⇒ Object



120
121
122
# File 'lib/signalwire/rest/namespaces/compat.rb', line 120

def stop_stream(conference_sid, stream_sid, **kwargs)
  @http.post(_path(conference_sid, 'Streams', stream_sid), kwargs)
end

#update(sid, **kw) ⇒ Object



79
# File 'lib/signalwire/rest/namespaces/compat.rb', line 79

def update(sid, **kw)  = @http.post(_path(sid), kw)

#update_participant(conference_sid, call_sid, **kwargs) ⇒ Object



90
91
92
# File 'lib/signalwire/rest/namespaces/compat.rb', line 90

def update_participant(conference_sid, call_sid, **kwargs)
  @http.post(_path(conference_sid, 'Participants', call_sid), kwargs)
end

#update_recording(conference_sid, recording_sid, **kwargs) ⇒ Object



107
108
109
# File 'lib/signalwire/rest/namespaces/compat.rb', line 107

def update_recording(conference_sid, recording_sid, **kwargs)
  @http.post(_path(conference_sid, 'Recordings', recording_sid), kwargs)
end