NAME

Catmandu::Importer::CrossRef - Package that imports data form CrossRef

SYNOPSIS

use Catmandu::Importer::CrossRef;

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
});

DESCRIPTION

This L<Catmandu::Importer::CrossRef> imports data from the CrossRef API given a DOI.

CONFIGURATION

base

Base url of the API. Default is to http://doi.crossref.org/search/doi.

doi

Required. The DOI you want data about.

usr

Required. Your CrossRef username. Register first!

fmt

Optional. The output format. Default is to unixref. Other possible values are xsd_xml, unixsd, info

SEE ALSO

L<Catmandu::Importer::DOI> is an older version of this module.
L<Catmandu::Iterable>, L<Catmandu::Importer>