Skip to content

Instantly share code, notes, and snippets.

@lopnor
Created March 8, 2010 13:10
Show Gist options
  • Select an option

  • Save lopnor/325149 to your computer and use it in GitHub Desktop.

Select an option

Save lopnor/325149 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use Net::Google::Spreadsheets;
print "google username?: ";
my $u = <STDIN>;
chomp $u;
print "google password?: ";
my $p = <STDIN>;
chomp $p;
my $service = Net::Google::Spreadsheets->new(
username => $u,
password => $p,
);
print "spreadsheet title?: ";
my $title = <STDIN>;
chomp $title;
my $ss = $service->spreadsheet({title => $title});
warn $ss->id;
my $sheet1 = $ss->worksheet({title => 'Sheet1'});
warn $sheet1->id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment