API-Twitter
view release on metacpan or search on metacpan
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19xx name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than `show w' and `show
c'; they could even be mouse-clicks or menu items--whatever suits your
program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here a sample; alter the names:
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/alnewkirk/API-Twitter/issues"
},
"homepage" : "http://metacpan.org/release/API-Twitter/",
"repository" : {
"type" : "git",
"url" : "git://github.com/alnewkirk/API-Twitter.git",
"web" : "https://github.com/alnewkirk/API-Twitter"
}
},
"version" : "0.05",
"x_authority" : "cpan:AWNCORP"
}
lib/API/Twitter.pm view on Meta::CPAN
isa => Str,
required => 0,
);
has access_token_secret => (
is => 'rw',
isa => Str,
required => 0,
);
has oauth_type => (
is => 'rw',
isa => Str,
default => 'protected resource',
required => 0,
);
# DEFAULTS
has '+identifier' => (
default => 'API::Twitter (Perl)',
lib/API/Twitter.pm view on Meta::CPAN
# oauth variables
my $oauth_consumer_key = $consumer_key;
my $oauth_nonce = Digest::SHA::sha1_base64(time . $$ . rand);
my $oauth_signature_method = 'HMAC-SHA1',
my $oauth_timestamp = time,
my $oauth_token = $access_token,
my $oauth_version = '1.0';
# oauth object
my $base = $url->clone; $base->query(undef);
my $oauth = Net::OAuth->request($self->oauth_type)->new(%$params,
version => '1.0',
consumer_key => $consumer_key,
consumer_secret => $consumer_secret,
request_method => uc($req->method),
request_url => $base,
signature_method => 'HMAC-SHA1',
timestamp => time,
token => $access_token,
token_secret => $access_token_secret,
nonce => Digest::SHA::sha1_base64(time . $$ . rand),
( run in 1.077 second using v1.01-cache-2.11-cpan-df04353d9ac )