NAME
Catmandu::Importer::MediaHaven - Package that imports Zeticon MediaHaven records
SYNOPSIS
# 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];
# ...
});
METHODS
This module inherits all methods of Catmandu::Importer and by this Catmandu::Iterable.
CONFIGURATION
In addition to the configuration provided by Catmandu::Importer the importer can be configured with the following 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.
SEE ALSO
Catmandu, Catmandu::Importer, Catmandu::MediaHaven
AUTHOR
Patrick Hochstenbach <Patrick.Hochstenbach@UGent.be>
LICENSE AND COPYRIGHT
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.