line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Foursquare::Venues; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
73
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
4651
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, $request, $venue_id) = @_; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
my $self = {}; |
10
|
0
|
|
|
|
|
|
bless $self, $class; |
11
|
0
|
|
|
|
|
|
$self->{request} = $request; |
12
|
0
|
|
|
|
|
|
$self->{venue_id} = $venue_id; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub info { |
18
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s", $self->{venue_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 = "venues/add"; |
29
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub categories { |
33
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $path = "venues/categories"; |
36
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub explore { |
40
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
my $path = "venues/explore"; |
43
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub managed { |
47
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $path = "venues/managed"; |
50
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub search { |
54
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
55
|
|
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
my $path = "venues/managed"; |
57
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub suggestcompletion { |
61
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
62
|
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
my $path = "venues/suggestcompletion"; |
64
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub timeseries { |
68
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
69
|
|
|
|
|
|
|
|
70
|
0
|
|
|
|
|
|
my $path = "venues/timeseries"; |
71
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub trending { |
75
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
76
|
|
|
|
|
|
|
|
77
|
0
|
|
|
|
|
|
my $path = "venues/trending"; |
78
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# ascpects |
82
|
|
|
|
|
|
|
sub events { |
83
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
84
|
|
|
|
|
|
|
|
85
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/events", $self->{venue_id}; |
86
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub herenow { |
90
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
91
|
|
|
|
|
|
|
|
92
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/herenow", $self->{venue_id}; |
93
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub hours { |
97
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
98
|
|
|
|
|
|
|
|
99
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/hours", $self->{venue_id}; |
100
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
sub likes { |
104
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
105
|
|
|
|
|
|
|
|
106
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/likes", $self->{venue_id}; |
107
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
108
|
|
|
|
|
|
|
} |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
sub links { |
111
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
112
|
|
|
|
|
|
|
|
113
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/links", $self->{venue_id}; |
114
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
sub listed { |
118
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
119
|
|
|
|
|
|
|
|
120
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/listed", $self->{venue_id}; |
121
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
122
|
|
|
|
|
|
|
} |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub menu { |
125
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
126
|
|
|
|
|
|
|
|
127
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/menu", $self->{venue_id}; |
128
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
sub photos { |
132
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
133
|
|
|
|
|
|
|
|
134
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/photos", $self->{venue_id}; |
135
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
136
|
|
|
|
|
|
|
} |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub similar { |
139
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
140
|
|
|
|
|
|
|
|
141
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/similar", $self->{venue_id}; |
142
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
143
|
|
|
|
|
|
|
} |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
sub stats { |
146
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
147
|
|
|
|
|
|
|
|
148
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/stats", $self->{venue_id}; |
149
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub tips { |
153
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
154
|
|
|
|
|
|
|
|
155
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/tips", $self->{venue_id}; |
156
|
0
|
|
|
|
|
|
return $self->{request}->GET($path, \%params); |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
# actions |
160
|
|
|
|
|
|
|
sub edit { |
161
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
162
|
|
|
|
|
|
|
|
163
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/edit", $self->{venue_id}; |
164
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
165
|
|
|
|
|
|
|
} |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
sub flag { |
168
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
169
|
|
|
|
|
|
|
|
170
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/flag", $self->{venue_id}; |
171
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
sub like { |
175
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
176
|
|
|
|
|
|
|
|
177
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/like", $self->{venue_id}; |
178
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
179
|
|
|
|
|
|
|
} |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
sub marktodo { |
182
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
183
|
|
|
|
|
|
|
|
184
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/makrtodo", $self->{venue_id}; |
185
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
sub proposeedit { |
189
|
0
|
|
|
0
|
0
|
|
my ($self, %params) = @_; |
190
|
|
|
|
|
|
|
|
191
|
0
|
|
|
|
|
|
my $path = sprintf "venues/%s/proposeedit", $self->{venue_id}; |
192
|
0
|
|
|
|
|
|
return $self->{request}->POST($path, \%params); |
193
|
|
|
|
|
|
|
} |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
1; |