|
NAMEReddit - Perl extension for http://www.reddit.com See github for the most up to date/development branch: https://github.com/three18ti/Reddit.pm SYNOPSIS use Reddit;
# instantatiate a new reddit object
# Automajically handles logging in and cookie handling
$r = Reddit->new(
{
user_name => 'Foo',
password => 'Bar',
subreddit => 'Perl'
}
);
# Submit a link
# $title, $url, $subreddit
# This overrides a subreddit set duriing instantiation
$r->submit_link( 'Test', 'http://example.com', 'NotPerl');
# Submit a Self Post
# $title, $text, $subreddit
# This overrides a subreddit set during instantiation
$r->submit_story( 'Self.test', 'Some Text Here', 'shareCoding');
# Post a top level comment to a URL or .self post
$r->comment($post_id, $comment);
# Post a reply to a comment
$r->comment($comment_id, $comment);
DESCRIPTIONPerl module for interacting with Reddit. This module is still largely inprogress. Requirescommon::sense LWP::UserAgent JSON HTTP::Cookies For Testing: Data::Dumper EXPORTNone. Provided Methods
SEE ALSO<https://github.com/reddit/reddit/wiki> AUTHORJon A, <info[replacewithat]cyberspacelogistics[replacewithdot]com> COPYRIGHT AND LICENSECopyright (C) 2011 by jon This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.4 or, at your option, any later version of Perl 5 you may have available.
|