line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- cperl; cperl-indent-level: 4 -*- |
2
|
|
|
|
|
|
|
# Copyright (C) 2011-2021, Roland van Ipenburg |
3
|
|
|
|
|
|
|
package WWW::NOS::Open::Interface v1.0.4; |
4
|
4
|
|
|
4
|
|
3124
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
140
|
|
5
|
4
|
|
|
4
|
|
24
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
125
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
21
|
use utf8; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
30
|
|
8
|
4
|
|
|
4
|
|
172
|
use 5.014000; |
|
4
|
|
|
|
|
18
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
25
|
use Moose::Role qw/requires/; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
39
|
|
11
|
|
|
|
|
|
|
requires 'get_version'; |
12
|
|
|
|
|
|
|
requires 'get_latest_articles'; |
13
|
|
|
|
|
|
|
requires 'get_latest_videos'; |
14
|
|
|
|
|
|
|
requires 'get_latest_audio_fragments'; |
15
|
|
|
|
|
|
|
requires 'search'; |
16
|
|
|
|
|
|
|
requires 'get_tv_broadcasts'; |
17
|
|
|
|
|
|
|
requires 'get_radio_broadcasts'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=encoding utf8 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=for stopwords Bitbucket Ipenburg MERCHANTABILITY |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
WWW::NOS::Open::Interface - Interface for the Open NOS REST API. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This document describes WWW::NOS::Open::Interface version C<v1.0.4>. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
use Moose; |
38
|
|
|
|
|
|
|
with 'WWW::NOS::Open::Interface'; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
A role defining the interface of the L<Open NOS|http://open.nos.nl/> REST API. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 C<get_version> |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 C<get_latest_articles> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 C<get_latest_videos> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 C<get_latest_audio_fragments> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 C<search> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 C<get_tv_broadcasts> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 C<get_radio_broadcasts> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=over 4 |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item * L<Moose|Moose> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=item * L<Moose::Role|Moose::Role> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=back |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Please report any bugs or feature requests at |
79
|
|
|
|
|
|
|
L<Bitbucket|https://bitbucket.org/rolandvanipenburg/www-nos-open/issues>. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Roland van Ipenburg, E<lt>roland@rolandvanipenburg.comE<gt> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Copyright 2011-2021 by Roland van Ipenburg |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
90
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.14.0 or, |
91
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
96
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
97
|
|
|
|
|
|
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
98
|
|
|
|
|
|
|
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
99
|
|
|
|
|
|
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
100
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
101
|
|
|
|
|
|
|
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
102
|
|
|
|
|
|
|
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
103
|
|
|
|
|
|
|
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
106
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
107
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE |
108
|
|
|
|
|
|
|
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, |
109
|
|
|
|
|
|
|
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
110
|
|
|
|
|
|
|
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
111
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
112
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
113
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
114
|
|
|
|
|
|
|
SUCH DAMAGES. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |