++ed by:
Yo-An Lin (林佑安)

NAME

Plack::Middleware::OAuth::UserInfo

DESCRIPTION

SYNOPSIS

    my $userinfo = Plack::Middleware::OAuth::UserInfo->new( 
        token => $token , 
        config => $provider_config
    );

    my $info_hash = $userinfo->ask( 'Twitter' );   # load Plack::Middleware::OAuth::UserInfo::Twitter
    my $info_hash = $userinfo->ask( 'GitHub' );    # load Plack::Middleware::OAuth::UserInfo::GitHub
    my $info_hash = $userinfo->ask( '+FullQualified::CustomUserInfoQuery' );

In the customized user info query class should implement query method for querying user info.

FUNCTIONS

create_inf( interface_class | string )

Create a new Interface with current token and OAuth provider config.

Returns interface object.

ask( provider_name | string )

Create a new query interface object and ask for user infomation.

Returns hashref.




Hosting generously
sponsored by Bytemark