
Net::Flickr::API - base API class for Net::Flickr::* libraries

package Net::Flickr::RDF; use base qw (Net::Flickr::API);

Base API class for Net::Flickr::* libraries
Net::Flickr::API is a wrapper for Flickr::API that provides support for throttling API calls (per second), retries if the API is disabled and marshalling of API responses into XML::LibXML or XML::XPath objects.

Options are passed to Net::Flickr::Backup using a Config::Simple object or a valid Config::Simple config file. Options are grouped by "block".
String. required
A valid Flickr API key.
String. required
A valid Flickr Auth API secret key.
String. required
A valid Flickr Auth API token.
String. required
The api_handler defines which XML/XPath handler to use to process API responses.
Use XML::LibXML.
Use XML::XPath.
Boolean.
Default is false.
String.
The default handler is Screen, as in Log::Dispatch::Screen
For example, the following :
reporting_handler_args=name:foobar;min_level=info
Would be converted as :
(name => "foobar", min_level => "info");
The default name argument is "__report". The default min_level argument is "info".

Where $cfg is either a valid Config::Simple object or the path to a file that can be parsed by Config::Simple.
Returns a Net::Flickr::API object.

Valid args are :
A string containing the name of the Flickr API method you are calling.
A hash ref containing the key value pairs you are passing to method
If the method encounters any errors calling the API, receives an API error or can not parse the response it will log an error event, via the log method, and return undef.
Otherwise it will return a XML::LibXML::Document object (if XML::LibXML is installed) or a XML::XPath object.
Returns a Log::Dispatch object.

1.66

$Date: 2007/07/31 13:22:58 $

Aaron Straup Cope <ascope@cpan.org>


Please report all bugs via http://rt.cpan.org/

Copyright (c) 2005-2007 Aaron Straup Cope. All Rights Reserved.
This is free software. You may redistribute it and/or modify it under the same terms as Perl itself.