The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Importer::MediaHaven - a importer that extracts Zeticon MediaHaven records

SYNOPSIS

    # From the commandline
    $ cat catmandu.yml
    ---
    importer:
         mh:
             package: MediaHaven
             options:
                 url: https://archief.viaa.be/mediahaven-rest-api/resources/media
                 username: ...
                 password: ...
                 fix:  |
                    ...
                    <fixes required to translate MediaHaven records to metadata>
                    ...

    $ catmandu convert YAML to mh < records.yml

METHODS

new(%connection_parameters)

Create a new Catmandu::Store::File::MediaHaven with the following connection parameters:

url

Required. The URL to the MediaHaven REST endpoint.

username

Required. Username used to connect to MediaHaven.

password

Required. Password used to connect to MediaHaven.

search_sort

Optional. The sorting field used in imports.

search_limit

Optional. The maximum number of records to be return in each MediaHaven sort.

INHERITED METHODS

This Catmandu::Exporter::MediaHaven implements

Catmandu::Importer
Catmandu::Logger
Catmandu::Iterable
Catmandu::Fixable
Catmandu::Serializer

SEE ALSO

Catmandu::Exporter::MediaHaven