Net::Twitter::Role::WrapResult(3pm)

Net::Twitter::Role::WrapResult3pm

Wrap twitter api response and http response

Usage

    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;

Version

version 4.01043

Overview

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 Net::Twitter::WrappedResult object that includes both the HTTP response and the decoded JSON response body. See Net::Twitter::WrappedResult for details.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–11
  3. 12–13

Author

Marc Mims <[email protected]>

License

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

From libnet-twitter-perl 4.01043-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.