Flickr::API - Perl interface to the Flickr API
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);
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.
Flickr::API
execute_method($method, $args)
Constructs a Flickr::API::Request object and executes it, returning a Flickr::API::Response object.
Flickr::API::Request
Flickr::API::Response
execute_request($request)
Executes a Flickr::API::Request object, returning a Flickr::API::Response object.
Copyright (C) 2004, Cal Henderson, <cal@iamcal.com>
Flickr::API::Request, Flickr::API::Response, XML::Parser::Lite, http://www.flickr.com/, http://www.flickr.com/services/api/
To install Flickr::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Flickr::API
CPAN shell
perl -MCPAN -e shell install Flickr::API
For more information on module installation, please visit the detailed CPAN module installation guide.