Alan Haggai Alavi > Net-StackExchange-0.102740 > Net::StackExchange

Download:
Net-StackExchange-0.102740.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.102740   Source  

NAME ^

Net::StackExchange - Access Stack Exchange API from Perl

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( );
    my $answer           = $answers_response->answers(0);

    print "__Answer__\n";
    print "Title: ", $answer->title(), "\n";
    print "Body: ",  $answer->body (), "\n";

ATTRIBUTES ^

new

Accepts a hash reference with network and version as keys. Returns a Net::StackExchange object.

route

Returns a Net::StackExchange::Route object depending on the route that is passed to it. Valid routes are:

    answers

!!! WARNING !!! ^

Incomplete implementation. Interface may change.

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.

syntax highlighting: