OAuth::Lite::Response - response class
my $res = $consumer->obtain_access_token( ... ); my $token = $res->token; say $token->token; say $token->secret; my $other_param = $res->param('xauth_expires');
Response class
Generate response from encoded line (that service provider provides as response of request token.).
my $line = "oauth_token=foo&oauth_token_secret=bar&xauth_expires=0"; my $res = OAuth::Lite::Response->from_encoded($encoded); my $token = $res->token; say $token->token; say $token->secret; say $res->param('xauth_expires');
Get parameter.
say $res->param('xauth_expires');
Lyo Kato, lyo.kato _at_ gmail.com
lyo.kato _at_ gmail.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install OAuth::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OAuth::Lite
CPAN shell
perl -MCPAN -e shell install OAuth::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.