{
    "content": [
        {
            "type": "text",
            "text": "# Net::Twitter::Role::Legacy (perldoc)\n\n## NAME\n\nNet::Twitter::Role::Legacy - A Net::Twitter legacy compatibility layer as a Moose role\n\n## SYNOPSIS\n\nuse Net::Twitter;\nmy $nt = Net::Twitter->new(\nusername => $username,\npassword => $password,\ntraits   => [qw/Legacy/],\n);\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}\n\n## DESCRIPTION\n\nThis module provides a Net::Twitter compatibility layer for Net::Twitter. It pulls in the\nadditional traits: \"API::REST\", \"API::Search\", \"API::Identica\", and \"WrapError\".\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SEE ALSO**\n- **AUTHOR**\n- **LICENSE**\n- **DISCLAIMER OF WARRANTY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Net::Twitter::Role::Legacy",
        "section": "",
        "mode": "perldoc",
        "summary": "Net::Twitter::Role::Legacy - A Net::Twitter legacy compatibility layer as a Moose role",
        "synopsis": "use Net::Twitter;\nmy $nt = Net::Twitter->new(\nusername => $username,\npassword => $password,\ntraits   => [qw/Legacy/],\n);\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DISCLAIMER OF WARRANTY",
                "lines": 16,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Net::Twitter::Role::Legacy - A Net::Twitter legacy compatibility layer as a Moose role\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 4.01043\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Net::Twitter;\n\nmy $nt = Net::Twitter->new(\nusername => $username,\npassword => $password,\ntraits   => [qw/Legacy/],\n);\n\nmy $followers = $nt->followers;\nif ( !followers ) {\nwarn $nt->httpmessage;\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module provides a Net::Twitter compatibility layer for Net::Twitter. It pulls in the\nadditional traits: \"API::REST\", \"API::Search\", \"API::Identica\", and \"WrapError\".\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new This method takes the same parameters as \"new\" in Net::Twitter. In addition, it also support\nthe options:\n\narrayrefonerror\nWhen set to 1, on error, rather than returning undef, the API methods will return an\nempty ARRAY ref. Defaults to 0.\n\ntwittervision\nWhen set to 1, enables the \"upadetwittervision\" call. Defaults to 0.\n\nclone\nCreates a shallow copy of the \"Net::Twitter\" object. This was useful, in legacy versions of\n\"Net::Twitter\" for handling concurrent requests (for instance with LWP::UserAgent::POE).\nSince errors are wrapped in the \"Net::Twitter\" concurrent requests each needed their own\nobject. \"clone\" served that purpose.\n\nThe recommended approach for concurrent requests is to use \"Net::Twitter\"'s ability throw\nexceptions, now.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Net::Twitter\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Marc Mims <marc@questright.com>\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "Copyright (c) 2016 Marc Mims\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "DISCLAIMER OF WARRANTY": {
                "content": "BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE\nEXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER\nEXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\nSOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY\nSERVICING, REPAIR, OR CORRECTION.\n\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER,\nOR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE\nLICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR\nCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT\nLIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR\nOTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n",
                "subsections": []
            }
        }
    }
}