Catmandu::Importer::CrossRef - Package that imports data form CrossRef
use Catmandu::Importer::DOI; my %attrs = ( doi => '<doi>', usr => '<your-crossref-username>', pwd => '<your-crossref-password>', fmt => '<xsd_xml | unixref | unixsd | info>' ); my $importer = Catmandu::Importer::DOI->new(%attrs); my $n = $importer->each(sub { my $hashref = $_[0]; # do something here });
This L<Catmandu::Importer::CrossRef> imports data from the CrossRef API given a DOI.
Base url of the API. Default is to http://doi.crossref.org/search/doi.
Required. The DOI you want data about.
Required. Your CrossRef username. Register first!
Optional. The output format. Default is to unixref. Other possible values are xsd_xml, unixsd, info
L<Catmandu::Importer::DOI> is an older version of this module. L<Catmandu::Iterable>, L<Catmandu::Importer>
To install Catmandu::CrossRef, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::CrossRef
CPAN shell
perl -MCPAN -e shell install Catmandu::CrossRef
For more information on module installation, please visit the detailed CPAN module installation guide.