Sha256: 21b83d410a3303c3e5dbf7cc6f2c72f10a0b08f5ed21b018b8e827c57a58f277
Contents?: true
Size: 1.32 KB
Versions: 5
Compression:
Stored size: 1.32 KB
Contents
module Twilio # 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. class Conference < TwilioObject def list(optional = {}) Twilio.get("/Conferences", :query => optional) end def get(conference_sid) Twilio.get("/Conferences/#{conference_sid}") end def participants(conference_sid, optional = {}) Twilio.get("/Conferences/#{conference_sid}/Participants", :query => optional) end def participant(conference_sid, call_sid) Twilio.get("/Conferences/#{conference_sid}/Participants/#{call_sid}") end def mute_participant(conference_sid, call_sid) Twilio.post("/Conferences/#{conference_sid}/Participants/#{call_sid}", :body => {:Muted => true}) end def unmute_participant(conference_sid, call_sid) Twilio.post("/Conferences/#{conference_sid}/Participants/#{call_sid}", :body => {:Muted => false}) end def kick_participant(conference_sid, call_sid) Twilio.delete("/Conferences/#{conference_sid}/Participants/#{call_sid}") end end end
Version data entries
5 entries across 5 versions & 1 rubygems