{
    "content": [
        {
            "type": "text",
            "text": "# Flickr::API::Response (perldoc)\n\n## NAME\n\nFlickr::API::Response - A response from the flickr API.\n\n## SYNOPSIS\n\nuse 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\";\n\n## DESCRIPTION\n\nThis object encapsulates a response from the Flickr API. It's a subclass of HTTP::Response with\nthe following additional keys:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Flickr::API::Response",
        "section": "",
        "mode": "perldoc",
        "summary": "Flickr::API::Response - A response from the flickr API.",
        "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\";",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "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": "\"astree()\"\nReturns the args passed to flickr with the method that produced this response\n\n\"ashash()\"\nReturns the args passed to flickr with the method that produced this response\n\n\"errorcode()\"\nReturns the Flickr Error Code, if any\n\n\"errormessage()\"\nReturns the Flickr Error Message, if any\n\n\"success()\"\nReturns the success or lack thereof from Flickr\n\n\"rc()\"\nReturns the Flickr http status code\n\n\"propagatestatus(\\%hash)\"\nReturns the entire response status block as a hashref.\n",
                "subsections": []
            },
            "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": []
            }
        }
    }
}