Net::StackExchange::Answers::Request - Request methods for answers
version 0.102740
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();
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.
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.
desc
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.
How a collection should be sorted. Valid values are one of activity (default), views, creation, or votes.
activity
views
creation
votes
todate
Unix timestamp of the maximum creation date on a returned item. Accepted range is 0 to 253_402_300_799.
execute
Executes the request and returns a Net::StackExchange::Answers::Response object.
Net::StackExchange::Roles::Request
Alan Haggai Alavi <alanhaggai@alanhaggai.org>
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.
To install Net::StackExchange, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::StackExchange
CPAN shell
perl -MCPAN -e shell install Net::StackExchange
For more information on module installation, please visit the detailed CPAN module installation guide.