def video_with_http_info(id, factory_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FlipApi.video ..."
      end
      # verify the required parameter 'id' is set
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.video"
      end
      # verify the required parameter 'factory_id' is set
      if @api_client.config.client_side_validation && factory_id.nil?
        fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.video"
      end
      # resource path
      local_var_path = "/videos/{id}.json".sub('{' + 'id' + '}', id.to_s)

      # query parameters
      query_params = {}
      query_params[:'factory_id'] = factory_id

      # header parameters
      header_params = {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

      # form parameters
      form_params = {}

      # http body (model)
      post_body = nil
      auth_names = ['api_key']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'Video')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FlipApi#video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def video_with_http_info(id, factory_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FlipApi.video ..."
      end
      # verify the required parameter 'id' is set
      if @api_client.config.client_side_validation && id.nil?
        fail ArgumentError, "Missing the required parameter 'id' when calling FlipApi.video"
      end
      # verify the required parameter 'factory_id' is set
      if @api_client.config.client_side_validation && factory_id.nil?
        fail ArgumentError, "Missing the required parameter 'factory_id' when calling FlipApi.video"
      end
      # resource path
      local_var_path = "/videos/{id}.json".sub('{' + 'id' + '}', id.to_s)

      # query parameters
      query_params = {}
      query_params[:'factory_id'] = factory_id

      # header parameters
      header_params = {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

      # form parameters
      form_params = {}

      # http body (model)
      post_body = nil
      auth_names = ['api_key']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'Video')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FlipApi#video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
Returns a Video object.

 @param id Id of a Video.
 @param factory_id Id of a Factory.
 @param [Hash] opts the optional parameters
 @return [Array<(Video, Fixnum, Hash)>] Video data, response status code and response headers