Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Net::GDrive 0.01

    Download button

    No screenshots available
    Downloads: 97  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brian Medley | More programs
    Perl Artistic License / FREE
    August 27th, 2012, 23:38 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::GDrive description

    A Google Drive API interface

    Net::GDrive is a Google Drive API is based on OAuth.

    Developer comments

    I try to abstract as much away as possible so you should not need to know too much about it. Kudos to Net::Dropbox::API.

    SYNOPSIS

    This 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

    Requirements:

    · Perl

      


    TAGS:

    Google Drive API | Perl module | Perl | Google | Drive

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM