-
Notifications
You must be signed in to change notification settings - Fork 11
Sample code #1
base: master
Are you sure you want to change the base?
Sample code #1
Conversation
This doesn't seem to work for me:
I'm using Perl 5.17.0 on Mac OS 10.7.4 |
…nstallation check is added) If LWP::Protocol::https is not installed, communication to evernote server via thrift is failed. Error message is not clear at the time, and so it is difficult to find the reason of that error. Therefore, the line 'use LWP::Protocol::https;' is added.
Thanks for your reply. There are a few reason why the following exception occur. ERROR at EDAMTest.pl line 126.
$VAR1 = bless( {
'code' => 0,
'message' => 'Missing version identifier'
}, 'Thrift::TException' ); For example,
I think LWP::Protocol::https is not installed on your system. Please check it. I think it is not good idea that the necessity of that module is not clearly documented, so I added the line to check if that module is installed. Please see : commit 70a4803 (This commit includes error handling change also) And I'm sorry, but I rebased my sample_code branch. So please delete old sample_code branch on your local repository before pulling new sample_code branch. |
You're right, installing LWP::Protocol::https resolved the problem. I'd like to update the README with the required modules. I installed: HTTP::Request Do you know of anything else that should be added to that list? |
It's nice to solve the problem. I think your list covers all necessary modules. (I verified that by using Perl 5.16.0 and Perl 5.17.2.) |
Although evernote-sdk in othre languages has sample scripts, evernote-sdk-perl doesn't have sample code. So I ported sample code from evernote-sdk-ruby to evernote-sdk-perl.