line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
####################################################################### |
2
|
|
|
|
|
|
|
# ex: set ts=8 sw=4 et |
3
|
|
|
|
|
|
|
######################################################################### |
4
|
|
|
|
|
|
|
package WWW::Facebook::API::Stream; |
5
|
|
|
|
|
|
|
|
6
|
34
|
|
|
34
|
|
197
|
use warnings; |
|
34
|
|
|
1
|
|
73
|
|
|
34
|
|
|
|
|
958
|
|
|
1
|
|
|
|
|
1318
|
|
|
1
|
|
|
|
|
23207
|
|
|
1
|
|
|
|
|
7
|
|
7
|
34
|
|
|
34
|
|
184
|
use strict; |
|
34
|
|
|
|
|
62
|
|
|
34
|
|
|
|
|
1843
|
|
8
|
34
|
|
|
34
|
|
182
|
use Carp; |
|
34
|
|
|
|
|
74
|
|
|
34
|
|
|
|
|
22700
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub add_comment { |
11
|
1
|
|
|
1
|
1
|
24
|
return shift->base->call( 'stream.addComment', @_ ); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub add_like { |
15
|
1
|
|
|
1
|
1
|
24
|
return shift->base->call( 'stream.addLike', @_ ); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get { |
19
|
1
|
|
|
1
|
1
|
24
|
return shift->base->call( 'stream.get', @_ ); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub get_comments { |
23
|
1
|
|
|
1
|
1
|
29
|
return shift->base->call( 'stream.getComments', @_ ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub get_filters { |
27
|
1
|
|
|
1
|
1
|
24
|
return shift->base->call( 'stream.getFilters', @_ ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub publish { |
31
|
2
|
|
|
2
|
1
|
54
|
my $base = shift->base; |
32
|
2
|
|
|
|
|
5
|
my %args = @_; |
33
|
|
|
|
|
|
|
|
34
|
2
|
100
|
|
|
|
8
|
if (ref($args{'action_links'}) eq 'ARRAY') { |
35
|
1
|
|
|
|
|
111
|
eval q{use JSON::Any}; |
36
|
1
|
50
|
|
|
|
7902
|
croak "Unable to load JSON module to encode 'action_links':$@\n" if $@; |
37
|
1
|
|
|
|
|
11
|
$args{'action_links'} = $base->_parser->encode( $args{'action_links'} ); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
63
|
return $base->call( 'stream.publish', %args ); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub remove { |
44
|
1
|
|
|
1
|
1
|
26
|
return shift->base->call( 'stream.remove', @_ ); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub remove_comment { |
48
|
1
|
|
|
1
|
1
|
25
|
return shift->base->call( 'stream.removeComment', @_ ); |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub remove_like { |
52
|
1
|
|
|
1
|
1
|
25
|
return shift->base->call( 'stream.removeLike', @_ ); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
1; |
56
|
|
|
|
|
|
|
__END__ |