def purge_request(params, *titles)
      params[:action] = 'purge'
      params[:titles] = titles.join('|')

      post(params)['purge'].inject({}) do |result, hash|
        title = hash['title']
        result[title] = hash.key?('purged') && !hash.key?('missing')
        warn "Invalid purge (#{title}) #{hash['invalidreason']}" if hash.key?('invalid')
        result
      end
    end
def purge_request(params, *titles)
      params[:action] = 'purge'
      params[:titles] = titles.join('|')

      post(params)['purge'].inject({}) do |result, hash|
        title = hash['title']
        result[title] = hash.key?('purged') && !hash.key?('missing')
        warn "Invalid purge (#{title}) #{hash['invalidreason']}" if hash.key?('invalid')
        result
      end
    end
Sends a purge API request, and handles the return value and warnings.
 @param params [Hash<Object, Object>] The parameter hash to begin with. Cannot include the titles or action keys.
 @param (see #purge)
 @return (see #purge)
 @see (see #purge)
 @note (see #purge)