def analyze(hash = '', parameters = '', filter = '', start_time = nil, end_time = nil, id = '', service = 'facebook')
      fail BadParametersError, 'hash or id is required' if hash.empty? && id.empty?
      fail BadParametersError, 'parameters is required' if parameters.empty?
      fail BadParametersError, 'service is required' if service.empty?

      params = { parameters: parameters }
      params.merge!(hash: hash) unless hash.empty?
      params.merge!(id: id) unless id.empty?
      params.merge!(filter: filter) unless filter.empty?
      params.merge!(start: start_time) unless start_time.nil?
      params.merge!(end: end_time) unless end_time.nil?

      DataSift.request(:POST, build_path(service, 'pylon/analyze', @config), @config, params)
    end
def analyze(hash = '', parameters = '', filter = '', start_time = nil, end_time = nil, id = '', service = 'facebook')
      fail BadParametersError, 'hash or id is required' if hash.empty? && id.empty?
      fail BadParametersError, 'parameters is required' if parameters.empty?
      fail BadParametersError, 'service is required' if service.empty?

      params = { parameters: parameters }
      params.merge!(hash: hash) unless hash.empty?
      params.merge!(id: id) unless id.empty?
      params.merge!(filter: filter) unless filter.empty?
      params.merge!(start: start_time) unless start_time.nil?
      params.merge!(end: end_time) unless end_time.nil?

      DataSift.request(:POST, build_path(service, 'pylon/analyze', @config), @config, params)
    end
Perform a PYLON analysis query by making an /pylon/analyze API call

 @param hash [String] Hash of the recording you wish to perform an
   analysis against
 @param parameters [String] Parameters of the analysis you wish to perform.
   See the
   {http://dev.datasift.com/pylon/docs/api-endpoints/pylonanalyze
   /pylon/analyze API Docs} for full documentation
 @param filter [String] Optional PYLON CSDL for a query filter
 @param start_time [Integer] Optional start timestamp for filtering by date
 @param end_time [Integer] Optional end timestamp for filtering by date
 @param id [String] ID of the recording you wish to analyze
 @param service [String] The PYLON service to make this API call against
 @return [Object] API reponse object