1Net::Twitter::Role::WraUpsReersuClotn(t3r)ibuted Perl DoNceutm:e:nTtwaittitoenr::Role::WrapResult(3)
2
3
4

NAME

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

VERSION

10       version 4.01043
11

SYNOPSIS

13           use Net::Twitter;
14
15           my $nt = Net::Twitter->new(
16               traits => [ qw/API::RESTv1_1 WrapResult/ ],
17               %other_new_options,
18           );
19
20           my $r = $nt->verify_credentials;
21
22           my $http_response        = $r->http_response;
23           my $twitter_result       = $r->result;
24           my $rate_limit_remaining = $r->rate_limit_remaining;
25

DESCRIPTION

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

AUTHOR

35       Marc Mims <marc@questright.com>
36
38       Copyright (c) 2016 Marc Mims
39

LICENSE

41       This library is free software and may be distributed under the same
42       terms as perl itself.
43
44
45
46perl v5.38.0                      2023-07-21 Net::Twitter::Role::WrapResult(3)
Impressum