NAME
OAuth::Lite::Response - response class
SYNOPSIS
my $res = $consumer->obtain_access_token(
...
);
my $token = $res->token;
say $token->token;
say $token->secret;
my $other_param = $res->param('xauth_expires');
DESCRIPTION
Response class
METHODS
new
from_encoded
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');
param
Get parameter.
say $res->param('xauth_expires');
AUTHOR
Lyo Kato, lyo.kato _at_ gmail.com
COPYRIGHT AND LICENSE
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.