Catmandu::Importer::MediaHaven - Package that imports Zeticon MediaHaven records
# From the command line $ cat catmandu.yml --- importer: mh: package: MediaHaven options: url: https://archief.viaa.be/mediahaven-rest-api/resources/media username: ... password: ... $ catmandu convert mh to YAML use Catmandu my $importer = Catmandu->importer('BagIt', url => ... , username => ... , password => ... , ); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
This module inherits all methods of Catmandu::Importer and by this Catmandu::Iterable.
In addition to the configuration provided by Catmandu::Importer the importer can be configured with the following parameters:
Required. The URL to the MediaHaven REST endpoint.
Required. Username used to connect to MediaHaven.
Required. Password used to connect to MediaHaven.
Catmandu, Catmandu::Importer, Catmandu::MediaHaven
Patrick Hochstenbach <Patrick.Hochstenbach@UGent.be>
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Catmandu::MediaHaven, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MediaHaven
CPAN shell
perl -MCPAN -e shell install Catmandu::MediaHaven
For more information on module installation, please visit the detailed CPAN module installation guide.