The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::StackExchange2::V2 - StackExchange API V2

VERSION

Version 0.01

SYNOPSIS

    use Net::StackExchange2;

        #For read-only methods.
    my $se = Net::StackExchange2->new({site => 'stackoverflow'});
        

Description

This module is an underlying wrapper for the various sub-modules for each stackexchange entitiy. Please see http://api.stackexchange.com/docs/ for information about the methods and their parameters

MODULES

This distibution contains the following modules, each correspond to a entity/type in the stackexchange api. Individual methods are documented inside the module itself. Ideally if you read the docs on Net::StackExchange2 you should be able to infer the methods inside a module from the stackexchange docs.

This wrapper contains the following modules, I've only included quick notes on each module here:

Answer

Stackoverflow answers.

Badges

Badges. They come in bronze, silver and gold. They support sort by rank, gold being the highest.

Comments

This contains two write methods to delete and edit comments. They require authentication. (access_token and key)

Events

Requires authentication. Gets a stream of events that happened on the site.

Info

Gets the site info. Reads the site parameter you passed in.

Posts

Stackexchange posts. By default does not include the body. Use filters for this.

Privileges

Contains one method to fetch all privileges on the site.

Questions

Also doesn't include body like posts and comments.

Revisions

Revisions take a guid as their id

Has regular search, advanced search and similar search(by title) methods.

Suggested-Edits

Just gets suggested ids.

Tags

Note this doesn't have a tags([many tags]) method. The method is named tag_info(["perl", "javascript"])

Users

Contains MANY methods to get all sorts of information about the user

Network Methods

Access-Tokens

Has methods to dispose and inspect access_tokens

Applications

Has one method to de-authenticate

Errors

Gets information about error ids. Useful for debugging.

Filters

Has methods to create and inspect filters, like the docs say, you should only use this for debugging.

Inbox

Methods to get the users inbox and unread items. Authentication required on both methods.

Notifications

Gets the users notifications across sites. This method unloads

Sites

Gets information about all sites on the stackexchange network.

AUTHOR

Gideon Israel Dsouza, <gideon at cpan.org>

BUGS

Please report any bugs or feature requests to bug-net-stackexchange2 at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-StackExchange2. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

See Net::StackExchange2.

LICENSE AND COPYRIGHT

Copyright 2013 Gideon Israel Dsouza.

This library is distributed under the freebsd license:

http://opensource.org/licenses/BSD-3-Clause See FreeBsd in TLDR : http://www.tldrlegal.com/license/bsd-3-clause-license-(revised)