Module: Zoom::Actions::User
- Included in:
- Client
- Defined in:
- lib/zoom/actions/user.rb
Instance Method Summary collapse
- #user_assistants_create(*args) ⇒ Object
- #user_assistants_delete(*args) ⇒ Object
- #user_assistants_delete_all(*args) ⇒ Object
- #user_assistants_list(*args) ⇒ Object
- #user_create(*args) ⇒ Object
- #user_delete(*args) ⇒ Object
- #user_email_check(*args) ⇒ Object
- #user_get(*args) ⇒ Object
- #user_list(*args) ⇒ Object
- #user_password_update(*args) ⇒ Object
- #user_permissions_get(*args) ⇒ Object
- #user_schedulers_delete(*args) ⇒ Object
- #user_schedulers_delete_all(*args) ⇒ Object
- #user_schedulers_list(*args) ⇒ Object
- #user_settings_get(*args) ⇒ Object
- #user_settings_update(*args) ⇒ Object
- #user_status_update(*args) ⇒ Object
- #user_token_delete(*args) ⇒ Object
- #user_token_get(*args) ⇒ Object
- #user_update(*args) ⇒ Object
- #user_upload_picture(*args) ⇒ Object
- #user_vanity_name_check(*args) ⇒ Object
Instance Method Details
#user_assistants_create(*args) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/zoom/actions/user.rb', line 45 def user_assistants_create(*args) raise Zoom::NotImplemented, 'user_assistants_create is not yet implemented' # TODO: validate body attributes = Utils.(args) Utils.parse_response self.class.post("/users/#{.slice!(:id)}/assistants", body: , query: { access_token: access_token }) end |
#user_assistants_delete(*args) ⇒ Object
59 60 61 62 63 |
# File 'lib/zoom/actions/user.rb', line 59 def user_assistants_delete(*args) # TODO: implement user_assistants_delete # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_assistants_delete is not yet implemented' end |
#user_assistants_delete_all(*args) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/zoom/actions/user.rb', line 52 def user_assistants_delete_all(*args) raise Zoom::NotImplemented, 'user_assistants_delete_all is not yet implemented' # TODO: implement user_assistants_delete_all = Utils.(args) Utils.parse_response self.class.delete("/users/#{.slice!(:id)}/assistants", body: , query: { access_token: access_token }) end |
#user_assistants_list(*args) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/zoom/actions/user.rb', line 37 def user_assistants_list(*args) raise Zoom::NotImplemented, 'user_assistants_list is not yet implemented' # TODO: implement user_assistants_list # options = Utils.extract_options!(args) # Utils.require_params([:user_id], options) Utils.parse_response self.class.get("/users/#{.slice!(:id)}/assistants", query: .merge(access_token: access_token)) end |
#user_create(*args) ⇒ Object
13 14 15 16 17 |
# File 'lib/zoom/actions/user.rb', line 13 def user_create(*args) params = Zoom::Params.new(Utils.(args)) params.require(%i[email type first_name last_name password]) Utils.parse_response self.class.post('/users', body: { action: 'create', user_info: params }.to_json, query: { access_token: access_token }) end |
#user_delete(*args) ⇒ Object
31 32 33 34 35 |
# File 'lib/zoom/actions/user.rb', line 31 def user_delete(*args) params = Zoom::Params.new(Utils.(args)) params.require(:id).permit(%i[action transfer_email transfer_meeting transfer_webinar transfer_recording]) Utils.parse_response self.class.delete("/users/#{params[:id]}", query: params.except(:id).merge(access_token: access_token)) end |
#user_email_check(*args) ⇒ Object
131 132 133 134 135 |
# File 'lib/zoom/actions/user.rb', line 131 def user_email_check(*args) # TODO: implement user_email_check # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_email_check is not yet implemented' end |
#user_get(*args) ⇒ Object
19 20 21 22 23 |
# File 'lib/zoom/actions/user.rb', line 19 def user_get(*args) params = Zoom::Params.new(Utils.(args)) params.require(:id).permit(:login_type) Utils.parse_response self.class.get("/users/#{params[:id]}", query: params.except(:id).merge(access_token: access_token)) end |
#user_list(*args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/zoom/actions/user.rb', line 6 def user_list(*args) params = Zoom::Params.new(Utils.(args)) params.permit(%i[status page_size page_number]) response = self.class.get('/users', query: params.merge(access_token: access_token)) Utils.parse_response(response) end |
#user_password_update(*args) ⇒ Object
107 108 109 110 111 |
# File 'lib/zoom/actions/user.rb', line 107 def user_password_update(*args) # TODO: implement user_password_update # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_password_update is not yet implemented' end |
#user_permissions_get(*args) ⇒ Object
113 114 115 116 117 |
# File 'lib/zoom/actions/user.rb', line 113 def (*args) # TODO: implement user_permissions_get # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_permissions_get is not yet implemented' end |
#user_schedulers_delete(*args) ⇒ Object
77 78 79 80 81 |
# File 'lib/zoom/actions/user.rb', line 77 def user_schedulers_delete(*args) # TODO: implement user_schedulers_delete # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_schedulers_delete is not yet implemented' end |
#user_schedulers_delete_all(*args) ⇒ Object
71 72 73 74 75 |
# File 'lib/zoom/actions/user.rb', line 71 def user_schedulers_delete_all(*args) # TODO: implement user_schedulers_delete_all # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_schedulers_delete_all is not yet implemented' end |
#user_schedulers_list(*args) ⇒ Object
65 66 67 68 69 |
# File 'lib/zoom/actions/user.rb', line 65 def user_schedulers_list(*args) # TODO: implement user_schedulers_list # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_schedulers_list is not yet implemented' end |
#user_settings_get(*args) ⇒ Object
89 90 91 92 93 |
# File 'lib/zoom/actions/user.rb', line 89 def user_settings_get(*args) # TODO: implement user_settings_get # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_settings_get is not yet implemented' end |
#user_settings_update(*args) ⇒ Object
95 96 97 98 99 |
# File 'lib/zoom/actions/user.rb', line 95 def user_settings_update(*args) # TODO: implement user_settings_update # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_settings_update is not yet implemented' end |
#user_status_update(*args) ⇒ Object
101 102 103 104 105 |
# File 'lib/zoom/actions/user.rb', line 101 def user_status_update(*args) # TODO: implement user_status_update # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_status_update is not yet implemented' end |
#user_token_delete(*args) ⇒ Object
125 126 127 128 129 |
# File 'lib/zoom/actions/user.rb', line 125 def user_token_delete(*args) # TODO: implement user_token_delete # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_token_delete is not yet implemented' end |
#user_token_get(*args) ⇒ Object
119 120 121 122 123 |
# File 'lib/zoom/actions/user.rb', line 119 def user_token_get(*args) # TODO: implement user_token_get # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_token_get is not yet implemented' end |
#user_update(*args) ⇒ Object
25 26 27 28 29 |
# File 'lib/zoom/actions/user.rb', line 25 def user_update(*args) params = Zoom::Params.new(Utils.(args)) params.require(:id).permit(%i[first_name last_name type pmi timezone dept vanity_name host_key cms_user_id]) Utils.parse_response self.class.patch("/users/#{params[:id]}", body: params.except(:id), query: { access_token: access_token }) end |
#user_upload_picture(*args) ⇒ Object
83 84 85 86 87 |
# File 'lib/zoom/actions/user.rb', line 83 def user_upload_picture(*args) # TODO: implement user_upload_picture # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_upload_picture is not yet implemented' end |
#user_vanity_name_check(*args) ⇒ Object
137 138 139 140 141 |
# File 'lib/zoom/actions/user.rb', line 137 def user_vanity_name_check(*args) # TODO: implement user_vanity_name_check # options = Utils.extract_options!(args) raise Zoom::NotImplemented, 'user_vanity_name_check is not yet implemented' end |