module Zoom::Actions::Webinar
Constants
- RECURRENCE_KEYS
- SETTINGS_KEYS
Public Instance Methods
past_webinar_list(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 77 def past_webinar_list(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:id) Utils.parse_response self.class.get("/past_webinars/#{params[:id]}/instances", headers: request_headers) end
webinar_create(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 23 def webinar_create(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:host_id).permit(:topic, :type, :start_time, :duration, :timezone, :password, :agenda, recurrence: RECURRENCE_KEYS, settings: SETTINGS_KEYS) # TODO: process recurrence keys based on constants # TODO: process settings keys based on constants Utils.parse_response self.class.post("/users/#{params[:host_id]}/webinars", body: params.except(:host_id).to_json, headers: request_headers) end
webinar_delete(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 49 def webinar_delete(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:id).permit(:occurrence_id) Utils.parse_response self.class.delete("/webinars/#{params[:id]}", query: params.except(:id), headers: request_headers) end
webinar_get(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 34 def webinar_get(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:id) Utils.parse_response self.class.get("/webinars/#{params[:id]}", headers: request_headers) end
webinar_list(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 17 def webinar_list(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:host_id).permit(%i[page_size page_number]) Utils.parse_response self.class.get("/users/#{params[:host_id]}/webinars", query: params.except(:host_id), headers: request_headers) end
webinar_panelist_list(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 101 def webinar_panelist_list(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:webinar_id) Utils.parse_response self.class.get("/webinars/#{params[:webinar_id]}/panelists", headers: request_headers) end
webinar_poll_get(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 95 def webinar_poll_get(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(%i[webinar_id poll_id]) Utils.parse_response self.class.get("/webinars/#{params[:webinar_id]}/polls/#{params[:poll_id]}", headers: request_headers) end
webinar_polls_list(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 89 def webinar_polls_list(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:webinar_id) Utils.parse_response self.class.get("/webinars/#{params[:webinar_id]}/polls", headers: request_headers) end
webinar_registrant_add(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 61 def webinar_registrant_add(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(%i[id email first_name last_name]) .permit(%i[occurrence_ids address city country zip state phone industry org job_title purchasing_time_frame role_in_purchase_process no_of_employees comments custom_questions]) Utils.parse_response self.class.post("/webinars/#{params[:id]}/registrants", body: params.except(:id, :occurrence_ids).to_json, query: params.slice(:occurrence_ids), headers: request_headers) end
webinar_registrant_get(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 83 def webinar_registrant_get(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(%i[webinar_id id]).permit(:occurrence_id) Utils.parse_response self.class.get("/webinars/#{params[:webinar_id]}/registrants/#{params[:id]}", query: params.except(:webinar_id, :id), headers: request_headers) end
webinar_registrants_list(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 55 def webinar_registrants_list(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:id).permit(%i[occurrence_id status page_size page_number]) Utils.parse_response self.class.get("/webinars/#{params[:id]}/registrants", query: params.except(:id), headers: request_headers) end
webinar_registrants_status_update(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 70 def webinar_registrants_status_update(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(%i[id action]) .permit(:occurrence_id, registrants: []) Utils.parse_response self.class.put("/webinars/#{params[:id]}/registrants/status", body: params.except(:id, :occurrence_id).to_json, query: params.slice(:occurrence_id), headers: request_headers) end
webinar_update(*args)
click to toggle source
# File lib/zoom/actions/webinar.rb, line 40 def webinar_update(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:id).permit(:topic, :type, :start_time, :duration, :timezone, :password, :agenda, recurrence: RECURRENCE_KEYS, settings: SETTINGS_KEYS) Utils.parse_response self.class.patch("/webinars/#{params[:id]}", body: params.except(:id).to_json, headers: request_headers) end