def valid?(csdl = '', boolResponse = true, service = 'facebook')
      fail BadParametersError, 'csdl is required' if csdl.empty?
      fail BadParametersError, 'service is required' if service.empty?

      params = { csdl: csdl }

      res = DataSift.request(:POST, build_path(service, 'pylon/validate', @config), @config, params)
      boolResponse ? res[:http][:status] == 200 : res
    end
def valid?(csdl = '', boolResponse = true, service = 'facebook')
      fail BadParametersError, 'csdl is required' if csdl.empty?
      fail BadParametersError, 'service is required' if service.empty?

      params = { csdl: csdl }

      res = DataSift.request(:POST, build_path(service, 'pylon/validate', @config), @config, params)
      boolResponse ? res[:http][:status] == 200 : res
    end
Check PYLON CSDL is valid by making an /pylon/validate API call

 @param csdl [String] CSDL you wish to validate
 @param boolResponse [Boolean] True if you want a boolean response.
 @param service [String] The PYLON service to make this API call against
   False if you want the full response object
 @return [Boolean, Object] Dependent on value of boolResponse