Sha256: 2cab72b37b36efbbb9e96d577d39bce42d17e18a2eb037533740faf941f8947b
Contents?: true
Size: 864 Bytes
Versions: 11
Compression:
Stored size: 864 Bytes
Contents
module DataSift # # Class for accessing DataSift's Account API class Account < DataSift::ApiResource # Check your account usage for a given period and timeframe # # @param period [String] (Optional) Period is one of either hourly, daily or monthly # @param start_time [Integer] (Optional) Unix timestamp of the start of the period # you are querying # @param end_time [Integer] (Optional) Unix timestamp of the end of the period # you are querying # @return [Object] API reponse object def usage(period = '', start_time = nil, end_time = nil) params = {} params.merge!(period: period) unless period.empty? params.merge!(start: start_time) unless start_time.nil? params.merge!(end: end_time) unless end_time.nil? DataSift.request(:GET, 'account/usage', @config, params) end end end
Version data entries
11 entries across 11 versions & 1 rubygems