{
    "mode": "perldoc",
    "parameter": "Net::Twitter::OAuth",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ATwitter%3A%3AOAuth/json",
    "generated": "2026-06-15T14:30:21Z",
    "synopsis": "use Net::Twitter;\nmy $nt = Net::Twitter::OAuth->new(consumerkey => $key, consumersecret => $secret);",
    "sections": {
        "NAME": {
            "content": "Net::Twitter::OAuth - Net::Twitter with 'Legacy' and 'OAuth' roles for backwards compatibility\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 4.01043\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::Twitter;\n\nmy $nt = Net::Twitter::OAuth->new(consumerkey => $key, consumersecret => $secret);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module simply creates an instance of \"Net::Twitter\" with the \"Legacy\" and \"OAuth\" traits\napplied. It is provided as a transparent backwards compatibility layer for earlier versions of\nNet::Twitter::OAuth which subclassed Net::Twitter.\n\nSee Net::Twitter and Net::Twitter::Role::OAuth for full documentation.\n",
            "subsections": []
        },
        "DEPRECATION NOTICE": {
            "content": "This module is deprecated. Use Net::Twitter instead.\n\nuse Net::Twitter;\n\n# Just the REST API; exceptions thrown on error\n$nt = Net::Twitter->new(traits => [qw/API::RESTv11 OAuth/]);\n\n# Just the REST API; errors wrapped - use $nt->geterror\n$nt = Net::Twitter->new(traits => [qw/API::RESTv11 WrapError/]);\n\n# Or, for code that uses legacy Net::Twitter idioms\n$nt = Net::Twitter->new(traits => [qw/Legacy OAuth/]);\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new Creates a \"Net::Twitter\" object with the \"Legacy\" and \"OAuth\" traits. See \"new\" in\nNet::Twitter for \"new\" options.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Net::Twitter, Net::Twitter::Role::OAuth\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Marc Mims <marc@questright.com> Tatsuhiko Miyagawa <miyagawa@bulknews.net>\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        }
    },
    "summary": "Net::Twitter::OAuth - Net::Twitter with 'Legacy' and 'OAuth' roles for backwards compatibility",
    "flags": [],
    "examples": [],
    "see_also": []
}