Module: Zoom::Actions::Webinar
- Included in:
- Client
- Defined in:
- lib/zoom/actions/webinar.rb
Constant Summary collapse
- RECURRENCE_KEYS =
%i[type repeat_interval weekly_days monthly_day monthly_week monthly_week_day end_times end_date_time].freeze
- SETTINGS_KEYS =
%i[panelists_video practice_session hd_video approval_type registration_type audio auto_recording enforce_login enforce_login_domains alternative_hosts close_registration show_share_button allow_multiple_devices registrants_confirmation_email].freeze
Instance Method Summary collapse
- #past_webinar_list(*args) ⇒ Object
- #webinar_create(*args) ⇒ Object
- #webinar_delete(*args) ⇒ Object
- #webinar_get(*args) ⇒ Object
- #webinar_list(*args) ⇒ Object
- #webinar_panelist_add(*args) ⇒ Object
- #webinar_panelist_delete(*args) ⇒ Object
- #webinar_panelists_delete_all(*args) ⇒ Object
- #webinar_panelists_list(*args) ⇒ Object
- #webinar_registrant_add(*args) ⇒ Object
- #webinar_registrants_list(*args) ⇒ Object
- #webinar_registrants_status_update(*args) ⇒ Object
- #webinar_status_update(*args) ⇒ Object
- #webinar_update(*args) ⇒ Object
Instance Method Details
#past_webinar_list(*args) ⇒ Object
102 103 104 105 106 |
# File 'lib/zoom/actions/webinar.rb', line 102 def past_webinar_list(*args) # TODO: implement past_webinars_list # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'past_webinars_list is not yet implemented' end |
#webinar_create(*args) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/zoom/actions/webinar.rb', line 18 def webinar_create(*args) params = Zoom::Params.new(Utils.(args)) params.require(:host_id).permit(:topic, :type, :start_time, :duration, :timezone, :password, :agenda, recurrence: RECURRENCE_KEYS, settings: SETTINGS_KEYS) # process recurrence keys based on constants # 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) ⇒ Object
44 45 46 47 48 |
# File 'lib/zoom/actions/webinar.rb', line 44 def webinar_delete(*args) params = Zoom::Params.new(Utils.(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) ⇒ Object
29 30 31 32 33 |
# File 'lib/zoom/actions/webinar.rb', line 29 def webinar_get(*args) params = Zoom::Params.new(Utils.(args)) params.require(:id) Utils.parse_response self.class.get("/webinars/#{params[:id]}", headers: request_headers) end |
#webinar_list(*args) ⇒ Object
12 13 14 15 16 |
# File 'lib/zoom/actions/webinar.rb', line 12 def webinar_list(*args) params = Zoom::Params.new(Utils.(args)) params.require(:host_id).permit(:page_size, :page_number) Utils.parse_response self.class.get("/users/#{params[:host_id]}/webinars", query: params, headers: request_headers) end |
#webinar_panelist_add(*args) ⇒ Object
62 63 64 65 66 |
# File 'lib/zoom/actions/webinar.rb', line 62 def webinar_panelist_add(*args) # TODO: implement webinar_panelist_add # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'webinar_panelist_add is not yet implemented' end |
#webinar_panelist_delete(*args) ⇒ Object
74 75 76 77 78 |
# File 'lib/zoom/actions/webinar.rb', line 74 def webinar_panelist_delete(*args) # TODO: implement webinar_panelist_delete # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'webinar_panelist_delete is not yet implemented' end |
#webinar_panelists_delete_all(*args) ⇒ Object
68 69 70 71 72 |
# File 'lib/zoom/actions/webinar.rb', line 68 def webinar_panelists_delete_all(*args) # TODO: implement webinar_panelists_delete_all # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'webinar_panelists_delete_all is not yet implemented' end |
#webinar_panelists_list(*args) ⇒ Object
56 57 58 59 60 |
# File 'lib/zoom/actions/webinar.rb', line 56 def webinar_panelists_list(*args) # TODO: implement webinar_panelists_list # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'webinar_panelists_list is not yet implemented' end |
#webinar_registrant_add(*args) ⇒ Object
86 87 88 89 90 91 92 93 |
# File 'lib/zoom/actions/webinar.rb', line 86 def webinar_registrant_add(*args) params = Zoom::Params.new(Utils.(args)) params.require(: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_registrants_list(*args) ⇒ Object
80 81 82 83 84 |
# File 'lib/zoom/actions/webinar.rb', line 80 def webinar_registrants_list(*args) params = Zoom::Params.new(Utils.(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) ⇒ Object
95 96 97 98 99 100 |
# File 'lib/zoom/actions/webinar.rb', line 95 def webinar_registrants_status_update(*args) params = Zoom::Params.new(Utils.(args)) params.require(:id, :action) .permit(:occurrence_id, registrants: []) Utils.parse_response self.class.put("/webinars/#{params[:id]}/registrants/status", body: params.except(:id, :occurrence_ids).to_json, query: params.slice(:occurrence_ids), headers: request_headers) end |
#webinar_status_update(*args) ⇒ Object
50 51 52 53 54 |
# File 'lib/zoom/actions/webinar.rb', line 50 def webinar_status_update(*args) # TODO: implement webinar_panelists_list # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'webinar_status_update is not yet implemented' end |
#webinar_update(*args) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/zoom/actions/webinar.rb', line 35 def webinar_update(*args) params = Zoom::Params.new(Utils.(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 |