Catmandu::FedoraCommons::Model::upload - Perl model for the Fedora 'upload' REST call
use Catmandu::FedoraCommons; my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin'); my $obj = $fedora->upload(file => 't/marc.xml')->parse_content; { 'id' => 'upload://11' }
Catmandu::FedoraCommons
To install Catmandu::FedoraCommons, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::FedoraCommons
CPAN shell
perl -MCPAN -e shell install Catmandu::FedoraCommons
For more information on module installation, please visit the detailed CPAN module installation guide.