Subject: | Does not work without HTTP::Request::Common |
When I execute following code, I get an error:
use WebService::Eventful;
my $app_key = '...';
my $evdb = WebService::Eventful->new(app_key => $app_key);
my $events = $evdb->call(
'events/search', {
location => 'Slovakia',
date => 'This Week',
sort_order => 'date',
}) or die "Can't retrieve event: $WebService::Eventful::errstr";
The error: Can't locate object method "POST" via package "http://api.eventful.com/rest/events/search" (perhaps you forgot to load "http://api.eventful.com/rest/events/search"?) at ...
I added following code, as suggested on #perl-help and it fixed the problem:
{ package WebService::Eventful; use HTTP::Request::Common; }
Looks like dependency for HTTP::Request::Common was removed in the latest release, but its unclear why -- module it doesn't seem to work without it:
https://metacpan.org/diff/file?target=SDDREITER/WebService-Eventful-1.05/lib/WebService/Eventful.pm&source=SDDREITER/WebService-Eventful-1.04/lib/WebService/Eventful.pm