1Flickr::API::Response(3U)ser Contributed Perl DocumentatiFolnickr::API::Response(3)
2
3
4

NAME

6       Flickr::API::Response - A response from the flickr API.
7

SYNOPSIS

9         use Flickr::API;
10         use Flickr::API::Response;
11
12         my $api = new Flickr::API({'key' => 'your_api_key'});
13
14         my $response = $api->execute_method('flickr.test.echo', {
15                       'foo' => 'bar',
16                       'baz' => 'quux',
17               });
18
19         print "Success: $response->{success}\n";
20

DESCRIPTION

22       This object encapsulates a response from the Flickr API. It's a
23       subclass of "HTTP::Response" with the following additional keys:
24
25         {
26               'success' => 1,
27               'tree' => XML::Parser::Lite::Tree,
28               'error_code' => 0,
29               'error_message' => '',
30         }
31
32       The "_request" key contains the request object that this response was
33       generated from. This request will be a "Flickr::API::Request" object,
34       which is a subclass of "HTTP:Request".
35
36       The "sucess" key contains 1 or 0, indicating whether the request
37       suceeded. If it failed, "error_code" and "error_message" explain what
38       went wrong. If it suceeded, "tree" contains an
39       "XML::Parser::Lite::Tree" object of the response XML.
40

AUTHOR

42       Copyright (C) 2004, Cal Henderson, <cal@iamcal.com>
43

SEE ALSO

45       Flickr::API, XML::Parser::Lite
46
47
48
49perl v5.12.2                      2008-09-29          Flickr::API::Response(3)
Impressum