line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PutIo::Subscriptions; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
873
|
use base 'WebService::PutIo'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
278
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
my $class='subscriptions'; |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
0
|
1
|
|
sub list { shift->request($class,'list',@_); } |
8
|
0
|
|
|
0
|
1
|
|
sub create { shift->request($class,'create',@_); } |
9
|
0
|
|
|
0
|
1
|
|
sub edit { shift->request($class,'edit',@_); } |
10
|
0
|
|
|
0
|
1
|
|
sub delete { shift->request($class,'delete',@_); } |
11
|
0
|
|
|
0
|
1
|
|
sub pause { shift->request($class,'pause',@_); } |
12
|
0
|
|
|
0
|
1
|
|
sub info { shift->request($class,'info',@_); } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
WebService::PutIo::Subscriptions - Manage RSS Subscriptions |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use WebService::PutIo::Subscriptions; |
21
|
|
|
|
|
|
|
my $subs=WebService::PutIo::Subscriptions->new(api_key=>'..',api_secret=>'..'); |
22
|
|
|
|
|
|
|
my $res=$subs->list; |
23
|
|
|
|
|
|
|
foreach my $sub (@{$res->results}) { |
24
|
|
|
|
|
|
|
print "Got ". Data::Dumper($sub); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Methods to manage RSS subscriptions on put.io |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 METHODS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 list |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Returns a list of subscriptions |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 create |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Creates a subscription and returns it. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head3 Parameters: |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=over 4 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=item title |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item url |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item do_filters |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item dont_filters |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item parent_folder_id |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item paused |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=back |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 edit |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Updates a subscription and returns it. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head3 Parameters: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item id |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item title |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item url |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item do_filters |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item dont_filters |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item parent_folder_id |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item paused |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=back |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 delete |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Deletes a subscription. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head3 Parameters: |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=over 4 |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item id |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=back |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 pause |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Toggles the activity of a subscription. Use it to pause or resume. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head3 Parameters: |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=over 4 |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item id |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=back |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 info |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Returns detailed information of a subscription |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head3 Parameters: |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=over 4 |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=item id |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=back |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Copyright (C) 2010, Marcus Ramberg. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
124
|
|
|
|
|
|
|
the terms of the Artistic License version 2.0. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=cut |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
1; |