Sha256: c157a69c96abd4d7a28cad29e1ff268805a558f4437e36beeade51573220ff08

Contents?: true

Size: 981 Bytes

Versions: 1

Compression:

Stored size: 981 Bytes

Contents

# 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

      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

      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoom_rb-0.11.0 lib/zoom/actions/phone.rb