NAME
Flickr::API - Perl interface to the Flickr API
SYNOPSIS
use Flickr::API;
my $api = new Flickr::API({'key' => 'your_api_key'});
my $response = $api->execute_method('flickr.test.echo', {
'foo' => 'bar',
'baz' => 'quux',
});
or
use Flickr::API;
use Flickr::API::Request;
my $api = new Flickr::API({'key' => 'your_api_key'});
my $request = new Flickr::API::Request({
'method' => 'flickr.test.echo',
'args' => {},
});
my $response = $api->execute_request($request);
DESCRIPTION
A simple interface for using the Flickr API.
Flickr::API
is a subclass of LWP::UserAgent, so all of the various proxy, request limits, caching, etc are available.
METHODS
execute_method($method, $args)
-
Constructs a
Flickr::API::Request
object and executes it, returning aFlickr::API::Response
object. execute_request($request)
-
Executes a
Flickr::API::Request
object, returning aFlickr::API::Response
object.
AUTHOR
Copyright (C) 2004, Cal Henderson, <cal@iamcal.com>
SEE ALSO
Flickr::API::Request, Flickr::API::Response, XML::Parser::Lite, http://www.flickr.com/, http://www.flickr.com/services/api/