Flickr::API::Utils

Provides helpfull functions for dealing with the Flickr API
Download

Flickr::API::Utils Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nuno Filipe Monteiro Nunes
  • Publisher web site:
  • http://search.cpan.org/~nfmnunes/

Flickr::API::Utils Tags


Flickr::API::Utils Description

Provides helpfull functions for dealing with the Flickr API Flickr::API::Utils is a Perl module that provides functions that may be used to "clean up" the response from a Flickr::API call, test results and so on.SYNOPSISUsage example: use Flickr::Utils; my $toolbox = Flickr::Utils->new(); my $prettystruct = $toolbox->clean($response_from_flickr_api_call);FUNCTIONSnewcleanTakes a structure generated by a Flickr::API call and cleans it up for your Perl code to enjoy.The response from that class is a hash created by a XML parser which is rather difficult to parse.This module gets that response and creates a rather more "perlish" structure with the same information.This cleaning up is done on a fully automated manner so it may still not be what you want. Some rather more usefull modules are Flickr::API::Photos, Flickr::API::People, etc which use this as a first pass at getting a decent response.test_returnChecks to see if the response of the Flickr API was successfull or not.If it was successfull fill in the return->success field in the object that was passed on to us, otherwise fill in this field and the other two relevant ones: result->error_code and result->error_message.auto_parseParses a piece of the XML structure (an ARRAY) that the Flickr::API returns according to some rules laid out by the user.get_attributesGets the attributes for a given node of the XML tree.get_simple_contentGets the content for a given node of the XML tree. It is assumed that this node has a single element with content. Requirements: · Perl


Flickr::API::Utils Related Software