Net::GDrive

A Google Drive API interface
Download

Net::GDrive Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Brian Medley
  • Publisher web site:
  • http://search.cpan.org/~bpmedley/

Net::GDrive Tags


Net::GDrive Description

Net::GDrive is a Google Drive API is based on OAuth.Developer commentsI try to abstract as much away as possible so you should not need to know too much about it. Kudos to Net::Dropbox::API.SYNOPSISThis is how it works: use Net::GDrive; my $gdrive = Net::GDrive->new(); my $login_link = $gdrive->login_link(); ... Time passes and the login link is clicked ... my $gdrive = Net::GDrive->new(); # $code will come from CGI or somesuch: Google gives it to you $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); } }Product's homepage


Net::GDrive Related Software