Yandex::OAuth - module for get access token to Yandex.API
use Yandex::OAuth; my $oauth = Yandex::OAuth->new( client_id => '76df1cf****************fb31d0289', client_secret => 'e3a2855****************4de3c2afc', ); # return link for open in browser say $oauth->get_code(); # return JSON with access_token say Dumper $oauth->get_token( code => 3557461 );
Yandex::OAuth is a module for get access token for Yandex.API See more at https://tech.yandex.ru/oauth/doc/dg/concepts/ya-oauth-intro-docpage/
return a link for open in browser
$oauth->get_code();
return a json with access_token or error if code has expired
$oauth->get_token( code => XXXXXX );
Copyright (C) Andrey Kuzmin.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Andrey Kuzmin <chipsoid@cpan.org>
To install Yandex::OAuth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yandex::OAuth
CPAN shell
perl -MCPAN -e shell install Yandex::OAuth
For more information on module installation, please visit the detailed CPAN module installation guide.