From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

WebService::Geograph::Response - A response object from Geograph API

SYNOPSIS

my $api = new WebService::Geograph::API ( { 'key' => 'your_api_key_here'} ) ;
my $rv = $api->lookup ( 'csv', { 'i' => 12345,
'll' => 1,
'thumb' => 1,
}) ;
my $data = $rd->{results} ;

DESCRIPTION

This object encapsulates a single response as returned from the API.

The WebService::GeoGraph::Request object is essentially a subclass of HTTP::Response so you can actually edit its usual parameters as much as you want.

It also has a number of additional keys.

{
sucess => 1 or 0
error_code => contains the error code (if any)
error_message => contains the error message (if any)
results => will always contain the data
}

AUTHOR

Spiros Denaxas
CPAN ID: SDEN
s [dot] denaxas [@] gmail [dot]com

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SEE ALSO

WebService::Geograph::API, WebService::Geograph::Request, http://www.geograph.co.uk, http://www.geograph.org.uk/help/api#api