Class: Twilio::Conference
Overview
The Conference REST resource allows you to query and manage the state of conferences. When a caller joins a conference via the Dial verb and Conference noun, a Conference Instance Resource is created to represent the conference room and a Participant Instance Resource is created to represent the caller who joined.
Instance Method Summary
collapse
#connected?, #initialize, method_missing
Instance Method Details
#get(conference_sid) ⇒ Object
11
12
13
|
# File 'lib/twilio/conference.rb', line 11
def get(conference_sid)
Twilio.get("/Conferences/#{conference_sid}")
end
|
#kick_participant(conference_sid, call_sid) ⇒ Object
31
32
33
|
# File 'lib/twilio/conference.rb', line 31
def kick_participant(conference_sid, call_sid)
Twilio.delete("/Conferences/#{conference_sid}/Participants/#{call_sid}")
end
|
#list(opts = {}) ⇒ Object
7
8
9
|
# File 'lib/twilio/conference.rb', line 7
def list(opts = {})
Twilio.get("/Conferences", :query => (opts.empty? ? nil : opts))
end
|
#mute_participant(conference_sid, call_sid) ⇒ Object
23
24
25
|
# File 'lib/twilio/conference.rb', line 23
def mute_participant(conference_sid, call_sid)
Twilio.post("/Conferences/#{conference_sid}/Participants/#{call_sid}", :body => {:Muted => true})
end
|
#participant(conference_sid, call_sid) ⇒ Object
19
20
21
|
# File 'lib/twilio/conference.rb', line 19
def participant(conference_sid, call_sid)
Twilio.get("/Conferences/#{conference_sid}/Participants/#{call_sid}")
end
|
#participants(conference_sid, opts = {}) ⇒ Object
15
16
17
|
# File 'lib/twilio/conference.rb', line 15
def participants(conference_sid, opts = {})
Twilio.get("/Conferences/#{conference_sid}/Participants", :query => (opts.empty? ? nil : opts))
end
|
#unmute_participant(conference_sid, call_sid) ⇒ Object
27
28
29
|
# File 'lib/twilio/conference.rb', line 27
def unmute_participant(conference_sid, call_sid)
Twilio.post("/Conferences/#{conference_sid}/Participants/#{call_sid}", :body => {:Muted => false})
end
|