Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Net::Twitter::Role::WrUsersContributed Perl DNet::Twitter::Role::WrapResult(3)

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

VERSION
       version 4.01042

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 Net::Twitter::WrappedResult object
       that includes both the HTTP response and	the decoded JSON response
       body. See Net::Twitter::WrappedResult 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 v5.24.1			  2017-02-07 Net::Twitter::Role::WrapResult(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | AUTHOR | COPYRIGHT | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Net::Twitter::Role::WrapResult&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help