line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::OverheidIO::KvK; |
2
|
|
|
|
|
|
|
our $VERSION = '1.0'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Query Overheid.IO/OpenKVK via their API |
4
|
|
|
|
|
|
|
# |
5
|
2
|
|
|
2
|
|
85618
|
use Moose; |
|
2
|
|
|
|
|
373503
|
|
|
2
|
|
|
|
|
15
|
|
6
|
|
|
|
|
|
|
extends 'WebService::OverheidIO'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _build_type { |
9
|
1
|
|
|
1
|
|
23
|
return 'kvk'; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _build_fieldnames { |
13
|
1
|
|
|
1
|
|
2
|
my $self = shift; |
14
|
1
|
|
|
|
|
27
|
return [qw( |
15
|
|
|
|
|
|
|
dossiernummer |
16
|
|
|
|
|
|
|
handelsnaam |
17
|
|
|
|
|
|
|
huisnummer |
18
|
|
|
|
|
|
|
huisnummertoevoeging |
19
|
|
|
|
|
|
|
plaats |
20
|
|
|
|
|
|
|
postcode |
21
|
|
|
|
|
|
|
straat |
22
|
|
|
|
|
|
|
vestigingsnummer |
23
|
|
|
|
|
|
|
)]; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _build_queryfields { |
28
|
1
|
|
|
1
|
|
2
|
my $self = shift; |
29
|
1
|
|
|
|
|
24
|
return [qw( |
30
|
|
|
|
|
|
|
dossiernummer |
31
|
|
|
|
|
|
|
handelsnaam |
32
|
|
|
|
|
|
|
vestigingsnummer |
33
|
|
|
|
|
|
|
subdossier |
34
|
|
|
|
|
|
|
)]; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=pod |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=encoding UTF-8 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
WebService::OverheidIO::KvK - Query Overheid.IO/OpenKVK via their API |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 VERSION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
version 1.0 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SYNOPSIS |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
use WebService::OverheidIO::KvK; |
56
|
|
|
|
|
|
|
my $overheidio = WebService::OverheidIO::KvK->new( |
57
|
|
|
|
|
|
|
key => "your developer key", |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 DESCRIPTION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Query the Overheid.io KvK endpoints. Also known as OpenKvK |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SEE ALSO |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L<WebService::OverheidIO> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Wesley Schwengle <wesley@mintlab.nl> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Mintlab BV. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software, licensed under: |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
The European Union Public License (EUPL) v1.1 |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |