Flickr::API2::Request - A request to the Flickr API
use Flickr::API2; use Flickr::API2::Request; my $api = new Flickr::API2({'key' => 'your_api_key'}); my $request = new Flickr::API2::Request({ 'method' => $method, 'args' => {}, }); my $response = $api->execute_request($request);
This object encapsulates a request to the Flickr API.
Flickr::API2::Request is a subclass of HTTP::Request, so you can access any of the request parameters and tweak them yourself. The content, content-type header and content-length header are all built from the 'args' list by the Flickr::API2::execute_request() method.
Flickr::API2::Request
HTTP::Request
Flickr::API2::execute_request()
Constructor - takes parameters of:
method args rest_uri
Normalises and converts arguments into URL-form-encoded format.
Version 2.xx copyright 2011 Toby Corkindale, tjc@cpan.org
Original version 1.xx copyright (C) 2004-2005, Cal Henderson, <cal@iamcal.com>
Flickr::API2.
To install Flickr::API2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Flickr::API2
CPAN shell
perl -MCPAN -e shell install Flickr::API2
For more information on module installation, please visit the detailed CPAN module installation guide.