Sha256: 5ccd8f3a15367a079f8b6b12c0dc97e43f55a04ff1bc267d2bb1724207969c66

Contents?: true

Size: 428 Bytes

Versions: 24

Compression:

Stored size: 428 Bytes

Contents

require 'libis/services/oai'
require 'base64'

module Libis
  module Services
    module Viaa
      class OaiPmh < Libis::Services::Oai

        def initialize(name, password)
          token = Base64.encode64("#{name}:#{password}").gsub("\n", '')
          base_url = 'https://archief.viaa.be/mediahaven-oai/oai'
          super(base_url, headers: {'Authorization' => "Basic #{token}"})
        end

      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
libis-services-1.1.0 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.13 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.12 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.11 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.10 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.7 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.6 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.5 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.2 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.1 lib/libis/services/viaa/oai_pmh.rb
libis-services-1.0.0 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.2.1 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.2.0 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.18 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.17 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.16 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.15 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.14 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.13 lib/libis/services/viaa/oai_pmh.rb
libis-services-0.1.12 lib/libis/services/viaa/oai_pmh.rb