GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::GOOGLE::SPREADSHEETS::RECORD (3)

.ds Aq ’

NAME

Net::Google::Spreadsheets::Record - A representation class for Google Spreadsheet record.

CONTENTS

SYNOPSIS



  use Net::Google::Spreadsheets;

  my $service = Net::Google::Spreadsheets->new(
    username => mygoogleaccount@example.com,
    password => mypassword,
  );

  # get a record
  my $record = $service->spreadsheet(
    {
        title => list for new year cards,
    }
  )->table(
    {
        title => addressbook,
    }
  )->record(
    {
        sq => id = 1000,
    }
  );

  # get the content of a row
  my $hashref = $record->content;
  my $id = $hashref->{id};
  my $address = $hashref->{address};

  # update a row
  $record->content(
    {
        id => 1000,
        address => somewhere,
        zip => 100-0001,
        name => Nobuo Danjou,
    }
  );

  # get and set values partially
 
  my $value = $record->param(name);
  # returns Nobuo Danjou
  # you can also get it via content like this:
  my $value_via_content = $record->content->{name};
 
  my $newval = $record->param({address => elsewhere});
  # updates address (and keeps other fields) and returns new record value (with all fields)

  my $hashref2 = $record->param;
  # same as $record->content;

  # setting whole new content
  $record->content(
    {
        id => 8080,
        address => nowhere,
        zip => 999-9999,
        name => nowhere man
    }
  );
 
  # delete a record
  $record->delete;



METHODS

    param

sets and gets content value.

    delete

deletes the record.

ATTRIBUTES

    content

Rewritable attribute. You can get and set the value.

SEE ALSO

<https://developers.google.com/google-apps/spreadsheets/>

Net::Google::AuthSub

Net::Google::Spreadsheets

Net::Google::Spreadsheets::Table

Net::Google::Spreadsheets::Row

AUTHOR

Nobuo Danjou <danjou@soffritto.org>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::GOOGLE::SPREADSHEETS::RECORD (3) 2012-04-30

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.