| WWW-Google-Notebook documentation | Contained in the WWW-Google-Notebook distribution. |
WWW::Google::Notebook::Note - Note object for WWW::Google::Notebook
use WWW::Google::Notebook;
my $google = WWW::Google::Notebook->new(
username => $username,
password => $password,
);
$google->login;
my $notebook = $google->add_notebook('title');
my $note = $notebook->add_note('note');
print $note->content;
print $note->created_on;
$note->edit('note2');
$note->delete;
Google Notebook note class.
Edit content.
Updates note.
Deletes note.
Returns a parent notebook object.
Returns created date as epoch.
Jiro Nishiguchi <jiro@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| WWW-Google-Notebook documentation | Contained in the WWW-Google-Notebook distribution. |
package WWW::Google::Notebook::Note; use strict; use warnings; use base qw(Class::Accessor::Fast); __PACKAGE__->mk_ro_accessors(qw/id created_on last_modified/); __PACKAGE__->mk_accessors(qw/content notebook/); sub delete { my $self = shift; $self->notebook->_delete_note($self); } sub edit { my ($self, $content) = @_; $self->content($content); $self->update; } sub update { my $self = shift; $self->notebook->_update_note($self); } 1; __END__