Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Google-Drive-Simple CPAN distribution.

Report information
The Basics
Id:
90588
Status:
resolved
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
ThamizharasanG [...] sulekha.net
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Unable to access the google drive
Date: Thu, 21 Nov 2013 11:24:44 +0000
To: "bug-Net-Google-Drive-Simple@rt.cpan.org" <bug-Net-Google-Drive-Simple@rt.cpan.org>
From: Thamizharasan G <ThamizharasanG@sulekha.net>

Hi,

 

I need to download a file from google drive. I try but its thorough “Attribute (scope) is required at Google_Drive.pl line 4 ” Error.

 

Here is my code. Let me know how to solve this problem.

 

Google_Drive.pl:

 

use strict;

use Net::GoogleDrive;

 

my $gdrive = Net::GoogleDrive->new();

my $AccessKey='AIzaSyDSxB5bnXyn3TOPB9v8ja-lIcaKiJ6ByBw';

my $code=$AccessKey;

$gdrive->token($code);

my $files = $gdrive->files();

foreach my $f (@{ $files->{items} }) {

    if ($f->{downloadUrl}) {

        open(my $fh, ">", "file.dl") or die("file.dl: $!\n");

        print($fh $gdrive->downloadUrl($f));

        close($fh);

    }

}

 

Regards,

Thamizharasan G.

 

file:///C:/Users/ThamizharasanG/Desktop/Untitled.png

 

© 2012 Copyright Sulekha.com | Privacy Policy | Terms of Service | All Rights Reserved. alt

Image displayed inline above



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.