NAME
Net::StackExchange::Answers::Request - Request methods for answers
VERSION
version 0.102740
SYNOPSIS
use Net::StackExchange;
my $se = Net::StackExchange->new( {
'network' => 'stackoverflow.com',
'version' => '1.0',
} );
my $answers_route = $se->route('answers');
my $answers_request = $answers_route->prepare_request( { 'id' => 1036353 } );
$answers_request->body(1);
my $answers_response = $answers_request->execute();
ATTRIBUTES
id
A single primary key identifier or a vectorised, semicolon-delimited list of identifiers.
body
When true, a post's body will be included in the response.
comments
When true, any comments on a post will be included in the response.
fromdate
Unix timestamp of the minimum creation date on a returned item. Accepted range is 0 to 253_402_300_799.
max
Maximum of the range to include in the response according to the current sort
.
min
Minimum of the range to include in the response according to the current sort
.
order
How the current sort
should be ordered. Accepted values are desc
(default) or asc
.
page
The pagination offset for the current collection. Affected by the specified pagesize
.
pagesize
The number of collection results to display during pagination. Should be between 1 and 100 inclusive.
sort
How a collection should be sorted. Valid values are one of activity
(default), views
, creation
, or votes
.
todate
Unix timestamp of the maximum creation date on a returned item. Accepted range is 0 to 253_402_300_799.
METHODS
execute
Executes the request and returns a Net::StackExchange::Answers::Response object.
CONSUMES ROLES
Net::StackExchange::Roles::Request
AUTHOR
Alan Haggai Alavi <alanhaggai@alanhaggai.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Alan Haggai Alavi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.