line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Twitter::Lite::WithAPIv1_1; |
2
|
|
|
|
|
|
|
$Net::Twitter::Lite::WithAPIv1_1::VERSION = '0.12008'; |
3
|
2
|
|
|
2
|
|
95631
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
122
|
|
4
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
56
|
|
5
|
2
|
|
|
2
|
|
1282
|
use parent 'Net::Twitter::Lite'; |
|
2
|
|
|
|
|
764
|
|
|
2
|
|
|
|
|
27
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Net::Twitter::Lite::WithAPIv1_1 - A perl API library for Twitter's API v1.1 |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
version 0.12008 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub twitter_api_def_from () { 'Net::Twitter::Lite::API::V1_1' } |
18
|
|
|
|
|
|
|
sub _default_api_url () { 'http://api.twitter.com/1.1' } |
19
|
|
|
|
|
|
|
sub _default_searchapiurl () { 'http://search.twitter.com' } |
20
|
|
|
|
|
|
|
sub _default_search_trends_api_url () { 'http://api.twitter.com/1.1' } |
21
|
|
|
|
|
|
|
sub _default_lists_api_url () { 'http://api.twitter.com/1.1' } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new { |
24
|
3
|
|
|
3
|
1
|
1295
|
my $class = shift; |
25
|
3
|
|
|
|
|
13
|
my %options = @_; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# Twitter now requires SSL connections. Make it the default. |
28
|
3
|
50
|
|
|
|
38
|
unless ( exists $options{ssl} ) { |
29
|
0
|
|
|
|
|
0
|
$options{ssl} = 1; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
3
|
|
|
|
|
44
|
return $class->SUPER::new( |
33
|
|
|
|
|
|
|
legacy_lists_api => 0, |
34
|
|
|
|
|
|
|
upload_url => 'https://upload.twitter.com/1.1', |
35
|
|
|
|
|
|
|
%options |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |