Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Flickr::API2::Request - A request to the Flickr API
SYNOPSIS
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);
DESCRIPTION
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.
METHODS
new
Constructor - takes parameters of:
method
args
rest_uri
encode_args
Normalises and converts arguments into URL-form-encoded format.
AUTHOR
Version 2.xx copyright 2011 Toby Corkindale, tjc@cpan.org
Original version 1.xx copyright (C) 2004-2005, Cal Henderson, <cal@iamcal.com>