class Podio::Importer < ActivePodio::Base
  
  class << self
    def process_file(file_id, app_id, mappings)
      response = Podio.connection.post do |req|
        req.url "/importer/#{file_id}/process"
        req.body = {
          :app_id => app_id,
          :mappings => mappings
        }
      end

      response.body
    end

    def get_columns(file_id)
      list Podio.connection.get("/importer/#{file_id}/column/").body
    end
    
  end
end
class Podio::Importer < ActivePodio::Base
  
  class << self
    def process_file(file_id, app_id, mappings, tags_column_id)
      response = Podio.connection.post do |req|
        req.url "/importer/#{file_id}/process"
        req.body = {
          :app_id => app_id,
          :mappings => mappings,
          :tags_column_id => tags_column_id
        }
      end

      response.body
    end

    def get_columns(file_id)
      list Podio.connection.get("/importer/#{file_id}/column/").body
    end
    
  end
end
Add tags option to excel import
Add tags option to excel import
