Sha256: 916eff824dc2cf50dfa220570ad2d111717d1396a8e0631c64ca0db90e74d0cd

Contents?: true

Size: 713 Bytes

Versions: 1

Compression:

Stored size: 713 Bytes

Contents

require 'httparty'
require 'json'

module Zoomus
  class Client

    include HTTParty
    include Actions::User
    include Actions::Meeting
    include Actions::Webinar
    include Actions::Report
    include Actions::Recording

    base_uri 'https://api.zoom.us/v1'

    def initialize(*args)

      options = Utils.extract_options!(args)

      raise Utils.argument_error("api_key and api_secret") unless options[:api_key] &&
                                                                  options[:api_secret]
      self.class.default_params(
        :api_key    => options[:api_key],
        :api_secret => options[:api_secret]
      )
      self.class.default_timeout(options[:timeout])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoomus-0.5.0 lib/zoomus/client.rb