Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Net::Twitter::Role::WrapResult

Name Net::Twitter::Role::WrapResult
Version 4.01043
Located at /usr/share/perl5
File /usr/share/perl5/Net/Twitter/Role/WrapResult.pm
Is Core No
Search CPAN for this module Net::Twitter::Role::WrapResult
Documentation Net::Twitter::Role::WrapResult
Module Details Net::Twitter::Role::WrapResult

NAME

Net::Twitter::Role::WrapResult - Wrap Twitter API response and HTTP Response


VERSION

version 4.01043


SYNOPSIS

    use Net::Twitter;
    my $nt = Net::Twitter->new(
        traits => [ qw/API::RESTv1_1 WrapResult/ ],
        %other_new_options,
    );
    my $r = $nt->verify_credentials;
    my $http_response        = $r->http_response;
    my $twitter_result       = $r->result;
    my $rate_limit_remaining = $r->rate_limit_remaining;


DESCRIPTION

Normally, Net::Twitter API methods return the decoded JSON body from the HTTP response. Some useful information, notably rate limit information, is included in HTTP response headers. With this role applied, API methods will return a the Net::Twitter::WrappedResult manpage object that includes both the HTTP response and the decoded JSON response body. See the Net::Twitter::WrappedResult manpage for details.


AUTHOR

Marc Mims <marc@questright.com>


COPYRIGHT

Copyright (c) 2016 Marc Mims


LICENSE

This library is free software and may be distributed under the same terms as perl itself.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026