line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Foursquare::Pageupdates; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
679
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, $request, $update_id) = @_; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
my $self = {}; |
10
|
0
|
|
|
|
|
|
bless $self, $class; |
11
|
0
|
|
|
|
|
|
$self->{request} = $request; |
12
|
0
|
|
|
|
|
|
$self->{update_id} = $update_id; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub info { |
18
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $path = sprintf "pageupdates/%s", $self->{update_id}; |
21
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# general |
25
|
|
|
|
|
|
|
sub add { |
26
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
my $path = "pageupdates/add"; |
29
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub list { |
33
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $path = "pageupdates/list"; |
36
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# ascpects |
40
|
|
|
|
|
|
|
sub delete { |
41
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
my $path = sprintf "pageupdates/%s/delete", $self->{update_id}; |
44
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub like { |
48
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
my $path = sprintf "pageupdates/%s/like", $self->{update_id}; |
51
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |