File Coverage

blib/lib/WWW/ORCID/API/v2_0.pm
Criterion Covered Total %
statement 13 14 92.8
branch 0 2 0.0
condition n/a
subroutine 5 6 83.3
pod 0 1 0.0
total 18 23 78.2


line stmt bran cond sub pod time code
1             package WWW::ORCID::API::v2_0;
2              
3 1     1   48061 use strict;
  1         3  
  1         23  
4 1     1   4 use warnings;
  1         2  
  1         31  
5              
6             our $VERSION = 0.02_01;
7              
8 1     1   314 use Moo;
  1         7530  
  1         4  
9 1     1   1265 use namespace::clean;
  1         7943  
  1         6  
10              
11             with 'WWW::ORCID::MemberAPI';
12              
13             sub ops {
14             +{
15 1     1 0 47 'group-id-record' =>
16             {get => 1, add => 1, delete => 1, get_pc => 1, update => 1},
17             'activities' => {orcid => 1, get => 1},
18             'address' => {
19             orcid => 1,
20             get => 1,
21             add => 1,
22             delete => 1,
23             get_pc => 1,
24             update => 1
25             },
26             'biography' => {orcid => 1, get => 1},
27             'education' =>
28             {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
29             'education/summary' => {orcid => 1, get_pc => 1},
30             'educations' => {orcid => 1, get => 1},
31             'email' => {orcid => 1, get => 1},
32             'employment' =>
33             {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
34             'employment/summary' => {orcid => 1, get_pc => 1},
35             'employments' => {orcid => 1, get => 1},
36             'external-identifiers' => {
37             orcid => 1,
38             get => 1,
39             add => 1,
40             delete => 1,
41             get_pc => 1,
42             update => 1
43             },
44             'funding' =>
45             {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
46             'funding/summary' => {orcid => 1, get_pc => 1},
47             'fundings' => {orcid => 1, get => 1},
48             'keywords' => {
49             orcid => 1,
50             get => 1,
51             add => 1,
52             delete => 1,
53             get_pc => 1,
54             update => 1
55             },
56             'other-names' => {
57             orcid => 1,
58             get => 1,
59             add => 1,
60             delete => 1,
61             get_pc => 1,
62             update => 1
63             },
64             'peer-review' =>
65             {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
66             'peer-review/summary' => {orcid => 1, get_pc => 1},
67             'peer-reviews' => {orcid => 1, get => 1},
68             'person' => {orcid => 1, get => 1},
69             'personal-details' => {orcid => 1, get => 1},
70             'researcher-urls' => {
71             orcid => 1,
72             get => 1,
73             add => 1,
74             delete => 1,
75             get_pc => 1,
76             update => 1
77             },
78             'work' =>
79             {orcid => 1, add => 1, delete => 1, get_pc => 1, update => 1},
80             'work/summary' => {orcid => 1, get_pc => 1},
81             'works' => {orcid => 1, get => 1, get_pc_bulk => 1},
82             };
83             }
84              
85             sub _build_api_url {
86 0 0   0     $_[0]->sandbox
87             ? 'https://api.sandbox.orcid.org/v2.0'
88             : 'https://api.orcid.org/v2.0';
89             }
90              
91             __PACKAGE__->install_helper_methods;
92              
93             __END__