module Zoom::Actions::SipAudio

Public Instance Methods

sip_trunk_numbers_delete(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 18
def sip_trunk_numbers_delete(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  Utils.parse_response self.class.delete("/accounts/#{params[:account_id]}/sip_trunk/numbers", headers: request_headers)
end
sip_trunks_delete(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 12
def sip_trunks_delete(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id, :trunk_id)
  Utils.parse_response self.class.delete("/accounts/#{params[:account_id]}/sip_trunk/trunks/#{params[:trunk_id]}", headers: request_headers)
end
sip_trunks_get(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 6
def sip_trunks_get(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  Utils.parse_response self.class.get("/accounts/#{params[:account_id]}/sip_trunk/trunks", headers: request_headers)
end
sip_trunks_internal_callout_countries_add(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 62
def sip_trunks_internal_callout_countries_add(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  Utils.parse_response self.class.post("/accounts/#{params[:account_id]}/sip_trunk/callout_countries", headers: request_headers)
end
sip_trunks_internal_callout_country_delete(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 30
def sip_trunks_internal_callout_country_delete(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(%i[account_id country_id])
  Utils.parse_response self.class.delete("/accounts/#{params[:account_id]}/sip_trunk/callout_countries/#{params[:country_id]}", headers: request_headers)
end
sip_trunks_internal_callout_country_list(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 43
def sip_trunks_internal_callout_country_list(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  response = self.class.get("/accounts/#{params[:account_id]}/sip_trunk/callout_countries", headers: request_headers)
  Utils.parse_response(response)
end
sip_trunks_internal_numbers_add(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 56
def sip_trunks_internal_numbers_add(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  Utils.parse_response self.class.post("/accounts/#{params[:account_id]}/sip_trunk/internal_numbers", headers: request_headers)
end
sip_trunks_internal_numbers_delete(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 24
def sip_trunks_internal_numbers_delete(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(%i[account_id number_id])
  Utils.parse_response self.class.delete("/accounts/#{params[:account_id]}/sip_trunk/internal_numbers/#{params[:number_id]}", headers: request_headers)
end
sip_trunks_internal_numbers_list(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 36
def sip_trunks_internal_numbers_list(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id).permit(%i[page_size next_page_token])
  response = self.class.get("/accounts/#{params[:account_id]}/sip_trunk/internal_numbers", query: params, headers: request_headers)
  Utils.parse_response(response)
end
sip_trunks_numbers_assign(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 68
def sip_trunks_numbers_assign(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:account_id)
  Utils.parse_response self.class.post("/accounts/#{params[:account_id]}/sip_trunk/numbers", headers: request_headers)
end
sip_trunks_numbers_list(*args) click to toggle source
# File lib/zoom/actions/sip_audio.rb, line 50
def sip_trunks_numbers_list(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  response = self.class.get("/sip_trunk/numbers", headers: request_headers)
  Utils.parse_response(response)
end