NAME
Net::StackExchange::Answers - Provides accessors for an answer
VERSION
version 0.102650
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( );
my $answer = $answers_response->answers(0);
print "__Answer__\n";
print "Title: ", $answer->title(), "\n";
print "Body: ", $answer->body (), "\n";
ATTRIBUTES
answer_id
Returns id of the answer.
accepted
Returns whether this answer is the accepted answer on its question.
answer_comments_url
Returns a link to the method that returns comments on this answer.
question_id
Returns id of the question this post is or is on.
locked_date
Returns date this question was locked.
owner
Returns a Net::StackExchange::Owner object.
creation_date
Returns date this post was created.
last_edit_date
Returns last time this post was edited.
last_activity_date
Returns last time this post had any activity.
up_vote_count
Returns number of up votes on this post.
down_vote_count
Returns number of down votes on this post.
view_count
Returns number of times this post has been viewed.
score
Returns score of this post.
community_owned
Returns whether this post is community owned.
title
Returns title of this post, in plaintext.
body
Returns body of this post, rendered as HTML.
comments
Returns a Net::StackExchange::Comments object.
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.