Subject: | WebService::Linode::Base - errors in example |
Date: | Mon, 19 Jul 2010 08:54:11 -0500 (CDT) |
To: | bug-webservice-linode [...] rt.cpan.org |
From: | Paul Hansen <paul [...] ecopixel.com> |
Hi Michael,
I just wanted to note that the docs (e.g. at http://search.cpan.org/~mikegrb/WebService-Linode/lib/WebService/Linode/Base.pm) contain several errors:
----------------
#(current text)
use WebService::Linode::Base;
my $api = new WebService::Linode(apikey => 'mmmcake');
my $data = $api->do_request( action => 'domains.list' );
----------------
#(should be)
use WebService::Linode::Base;
my $api = new WebService::Linode::Base(apikey => 'mmmcake');
^^^^^^
my $data = $api->do_request( api_action => 'domain.list' );
^^^^ ^
----------------
I hope that helps someone :) Thank you for the API and the Perl modules!
Take care,
Paul