OAuth::Lite::Response - response class


OAuth-Lite documentation  | view source Contained in the OAuth-Lite distribution.

Index


NAME

Top

OAuth::Lite::Response - response class

SYNOPSIS

Top

    my $res = $consumer->obtain_access_token(
        ...
    );

    my $token = $res->token;
    say $token->token;
    say $token->secret;

    my $other_param = $res->param('xauth_expires');

DESCRIPTION

Top

Response class

METHODS

Top

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

Top

Lyo Kato, lyo.kato _at_ gmail.com

COPYRIGHT AND LICENSE

Top


OAuth-Lite documentation  | view source Contained in the OAuth-Lite distribution.