| 1 | package Catmandu::Zotero; | ||
| 2 | |||
| 3 | our $VERSION = '0.05'; | ||
| 4 | |||
| 5 | 1; | ||
| 6 | __END__ | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Catmandu::Zotero - Catmandu modules for working with Zotero web | ||
| 11 | |||
| 12 | =begin markdown | ||
| 13 | |||
| 14 | # STATUS | ||
| 15 | |||
| 16 | [](https://travis-ci.org/LibreCat/Catmandu-Zotero) | ||
| 17 | [](https://coveralls.io/r/LibreCat/Catmandu-Zotero) | ||
| 18 | [](http://cpants.cpanauthors.org/dist/Catmandu-Zotero) | ||
| 19 | |||
| 20 | =end markdown | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | # From the command line | ||
| 25 | $ catmandu convert Zotero --userID <userID> to JSON | ||
| 26 | $ catmandu convert Zotero --groupID <groupID> to JSON | ||
| 27 | |||
| 28 | # From Perl | ||
| 29 | use Catmandu; | ||
| 30 | |||
| 31 | my $importer = Catmandu->importer('Zotero', userID => '...'); | ||
| 32 | |||
| 33 | $importer->each(sub { | ||
| 34 | my $item = shift; | ||
| 35 | print "%s %s\n", $item->{_id} , $item->{title}->[0]; | ||
| 36 | }); | ||
| 37 | |||
| 38 | =head1 MODULES | ||
| 39 | |||
| 40 | =over | ||
| 41 | |||
| 42 | =item * L<Catmandu::Importer::Zotero> | ||
| 43 | |||
| 44 | =back | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Patrick Hochstenbach, C<patrick.hochstenbach at ugent.be> | ||
| 49 | |||
| 50 | =head1 LICENSE AND COPYRIGHT | ||
| 51 | |||
| 52 | Copyright 2015 Patrick Hochstenbach | ||
| 53 | |||
| 54 | This program is free software; you can redistribute it and/or modify it | ||
| 55 | under the terms of either: the GNU General Public License as published | ||
| 56 | by the Free Software Foundation; or the Artistic License. | ||
| 57 | |||
| 58 | See http://dev.perl.org/licenses/ for more information. | ||
| 59 | |||
| 60 | =cut |