{
    "mode": "perldoc",
    "parameter": "Flickr::API::Response",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Flickr%3A%3AAPI%3A%3AResponse/json",
    "generated": "2026-09-01T15:46:11Z",
    "synopsis": "use Flickr::API;\nuse Flickr::API::Response;\nmy $api = Flickr::API->new({'key' => 'yourapikey'});\nmy $response = $api->executemethod('flickr.test.echo', {\n'foo' => 'bar',\n'baz' => 'quux',\n});\nprint \"Success: $response->{success}\\n\";",
    "sections": {
        "NAME": {
            "content": "Flickr::API::Response - A response from the flickr API.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Flickr::API;\nuse Flickr::API::Response;\n\nmy $api = Flickr::API->new({'key' => 'yourapikey'});\n\nmy $response = $api->executemethod('flickr.test.echo', {\n'foo' => 'bar',\n'baz' => 'quux',\n});\n\nprint \"Success: $response->{success}\\n\";\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This object encapsulates a response from the Flickr API. It's a subclass of HTTP::Response with\nthe following additional keys:\n\n{\n'success' => 1,\n'tree' => XML::Parser::Lite::Tree,\n'hash' => Flickr response as a hash,\n'errorcode' => 0,\n'errormessage' => '',\n}\n\nThe \"request\" key contains the request object that this response was generated from. This\nrequest will be a Flickr::API::Request object, which is a subclass of <HTTP:Request>.\n\nThe \"sucess\" key contains 1 or 0, indicating whether the request succeeded. If it failed,\n\"errorcode\" and \"errormessage\" explain what went wrong. If it succeeded, \"tree\" contains an\nXML::Parser::Lite::Tree object of the response XML.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "as_tree",
                    "content": "Returns the args passed to flickr with the method that produced this response\n"
                },
                {
                    "name": "as_hash",
                    "content": "Returns the args passed to flickr with the method that produced this response\n"
                },
                {
                    "name": "error_code",
                    "content": "Returns the Flickr Error Code, if any\n"
                },
                {
                    "name": "error_message",
                    "content": "Returns the Flickr Error Message, if any\n"
                },
                {
                    "name": "success",
                    "content": "Returns the success or lack thereof from Flickr\n"
                },
                {
                    "name": "rc",
                    "content": "Returns the Flickr http status code\n\npropagatestatus(\\%hash)\nReturns the entire response status block as a hashref.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Copyright (C) 2004, Cal Henderson, <cal@iamcal.com>\n\nCopyright (C) 2015-2016, Louis B. Moore, <lbmoore@cpan.org> OAuth and accessor methods.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Flickr::API, XML::Parser::Lite\n",
            "subsections": []
        }
    },
    "summary": "Flickr::API::Response - A response from the flickr API.",
    "flags": [],
    "examples": [],
    "see_also": []
}