![]() |
![]()
| ![]() |
![]()
NAMENet::Twitter::WrappedResult - Wrap an HTTP response and Twitter result VERSIONversion 4.01043 SYNOPSISuse 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; DESCRIPTIONOften, the result of a Twitter API call, inflated from the JSON body of the HTTP response does not contain all the information you need. Twitter includes meta data, such as rate limiting information, in HTTP response headers. This object wraps both the inflated Twitter result and the HTTP response giving the caller full access to all the meta data. It also provides accessors for the rate limit information. METHODS
AUTHORMarc Mims <marc@questright.com> COPYRIGHT & LICENSECopyright (c) 2016 Marc Mims This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.
|