lib/zoom/actions/phone.rb in zoom_rb-0.11.0 vs lib/zoom/actions/phone.rb in zoom_rb-1.0.0
- old
+ new
@@ -1,27 +1,15 @@
# frozen_string_literal: true
#
module Zoom
module Actions
module Phone
- def call_logs(*args)
- options = Zoom::Params.new(Utils.extract_options!(args))
- options.require(%i[user_id])
- response = self.class.get("/phone/users/#{options[:user_id]}/call_logs", query: options.except(:user_id), headers: request_headers)
- Utils.parse_response(response)
- end
+ extend Zoom::Actions
- def phone_users_list(*args)
- options = Zoom::Params.new(Utils.extract_options!(args))
- response = self.class.get("/phone/users", query: options, headers: request_headers)
- Utils.parse_response(response)
- end
+ get 'call_logs', '/phone/users/:user_id/call_logs'
- def call_recordings(*args)
- options = Zoom::Params.new(Utils.extract_options!(args))
- options.require(%i[user_id])
- response = self.class.get("/phone/users/#{options[:user_id]}/recordings", query: options.except(:user_id), headers: request_headers)
- Utils.parse_response(response)
- end
+ get 'phone_users_list', '/phone/users'
+
+ get 'call_recordings', '/phone/users/:user_id/recordings'
end
end
end