Skip Menu |

This queue is for tickets about the WebService-Eventful CPAN distribution.

Report information
The Basics
Id: 104761
Status: new
Priority: 0/
Queue: WebService-Eventful

People
Owner: Nobody in particular
Requestors: FLAMEY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.05
Fixed in: (no value)



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