Net::POP3::XOAuth2 - It enables to use XOAUTH2 authentication with Net::POP3
use Net::POP3; use Net::POP3::XOAuth2; my $user = '<user_id>'; my $token = '<token from xoauth2>'; my $pop = Net::POP3->new('pop.gmail.com', Port => 995, Timeout => 30, SSL => 1, Debug => 1); $pop->xoauth2($user, $token); # or if you use office365 $pop->xoauth2($user, $token, 1);
Net::POP3::XOAuth2 is an extension for Net::POP3. This allows you to use SASL XOAUTH2.
Authenticate with the server identifying as USER with OAuth2 access token TOKEN.
USER
TOKEN
Copyright (C) Kizashi Nagata.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Kizashi Nagata <kizashi1122@gmail.com>
To install Net::POP3::XOAuth2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::POP3::XOAuth2
CPAN shell
perl -MCPAN -e shell install Net::POP3::XOAuth2
For more information on module installation, please visit the detailed CPAN module installation guide.