line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PutIo::Messages; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
2026
|
use base 'WebService::PutIo'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
187
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
my $class='messages'; |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
0
|
1
|
|
sub list { shift->request($class,'list',@_); } |
8
|
0
|
|
|
0
|
1
|
|
sub delete { shift->request($class,'delete',@_); } |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
WebService::PutIo::Messages - Dashboard Messages for put.io |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use WebService::PutIo::Messages; |
17
|
|
|
|
|
|
|
my $messages=WebService::PutIo::Messages->new(api_key=>'..',api_secret=>'..'); |
18
|
|
|
|
|
|
|
my $res=$messages->list; |
19
|
|
|
|
|
|
|
foreach my $message (@{$res->results}) { |
20
|
|
|
|
|
|
|
print "Got ". Data::Dumper($message); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Dashboard message related methods for the put.io web service |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 METHODS |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head2 list |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Returns a list of messages |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 delete |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Deletes a message |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head3 Parameters: |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=over 4 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item id |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=back |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Copyright (C) 2010, Marcus Ramberg. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This program is free software, you can redistribute it and/or modify it under |
50
|
|
|
|
|
|
|
the terms of the Artistic License version 2.0. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |