Flickr::API::Response(3pm) - phpMan

Command: man perldoc info search(apropos)  


Flickr::API::Response(3pm)     User Contributed Perl Documentation     Flickr::API::Response(3pm)



NAME
       Flickr::API::Response - A response from the flickr API.

SYNOPSIS
         use Flickr::API;
         use Flickr::API::Response;

         my $api = new Flickr::API({'key' => 'your_api_key'});

         my $response = $api->execute_method('flickr.test.echo', {
                       'foo' => 'bar',
                       'baz' => 'quux',
               });

         print "Success: $response->{success}\n";

DESCRIPTION
       This object encapsulates a response from the Flickr API. It's a subclass of
       "HTTP::Response" with the following additional keys:

         {
               'success' => 1,
               'tree' => XML::Parser::Lite::Tree,
               'error_code' => 0,
               'error_message' => '',
         }

       The "_request" key contains the request object that this response was generated from. This
       request will be a "Flickr::API::Request" object, which is a subclass of "HTTP:Request".

       The "sucess" key contains 1 or 0, indicating whether the request suceeded. If it failed,
       "error_code" and "error_message" explain what went wrong. If it suceeded, "tree" contains
       an "XML::Parser::Lite::Tree" object of the response XML.

AUTHOR
       Copyright (C) 2004, Cal Henderson, <cal AT iamcal.com>

SEE ALSO
       Flickr::API, XML::Parser::Lite



perl v5.8.8                                 2008-02-29                 Flickr::API::Response(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-24 04:40 @38.107.179.236 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!