This code in Perl worked for many years, and now my logs encrypted tables failed, when I logged into my account, I noticed a switch to a new version of Drive. Perhaps some authentication methods are outdated?
my $auth = Net::Google::AuthSub->new; my $response = $auth->login(' LOGIN@gmail.com ', 'PASS'); if ($response->is_success) { print "Hurrah! Logged in\n"; } else { die "Login failed: ".$response->error."\n"; }
Result:
Login failed:
And the code:
use Net::Google::Spreadsheets; my $service = Net::Google::Spreadsheets->new( username => ' LOGIN@gmail.com ', password => 'PASS' );
Result:
Net::Google::AuthSub login failed at /usr/local/share/perl/5.18.2/Net/Google/Spreadsheets.pm line 42.
As I said, I tried to skip SSL certificate verification:
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
but that doesn't help either. What can I do to make it work? Thanks.
source share