NAME
Net::Evernote - Perl client accessing to Evernote
VERSION
Version 0.02
SYNOPSIS
use Net::Evernote;
my $note = Net::Evernote->new($username,$password,$consumerKey,$consumerSecret);
$note->postNote($title,$content);
METHODS
new(username,password,consumerKey,consumerSecret,[userStoreUrl])
Initialize the object.
my $note = Net::Evernote->new($username,$password,$consumerKey,$consumerSecret);
The consumerKey and consumerSecret are got from the email when you signed up with Evernote's API development.
The userStoreUrl is the url for user authentication, the default one is https://sandbox.evernote.com/edam/user
If you are in the production development, userStoreUrl should be https://www.evernote.com/edam/user
For accessing them, Net::SSLeay and Crypt::SSLeay along with Thrift module are needed.
postNote(title,content,[dataStoreUrl])
use Data::Dumper;
my $title = "my first note";
my $content =<<EOF;
I wrote some Perl to say hello,
To a world i did not know.
Prepended line numbers there in tow,
I basically told it where to go.
EOF
eval {
$note->postNote($title,$content);
};
if ($@) {
print Dumper $@;
}
Both the title and content are strings.
The dataStoreUrl is the url for posting note, the default one is https://sandbox.evernote.com/edam/note
If you are in the production development, dataStoreUrl should be https://www.evernote.com/edam/note
For accessing them, Net::SSLeay and Crypt::SSLeay along with Thrift module are needed.
SEE ALSO
http://www.evernote.com/about/developer/api/
AUTHOR
Ken Peng <shorttag@gmail.com>
I wish any people who has the interest in this module to work together with it.
BUGS/LIMITATIONS
If you have found bugs, please send email to <shorttag@gmail.com>
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::Evernote
COPYRIGHT & LICENSE
Copyright 2011 Ken Peng, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.