Reddit-Client
view release on metacpan or search on metacpan
lib/Reddit/Client.pm view on Meta::CPAN
print $post->{is_self} ? $post->{selftext} : $post->{url};
print $post->get_web_url();
if ($post->{title} =~ /some phrase/) {
$post->reply("hi, I'm a bot, oops I'm banned already, harsh");
}
}
=head1 OAUTH
Reddit::Client uses Oauth to communicate with Reddit. To get Oauth keys, visit your apps page on Reddit, located at L<https://www.reddit.com/prefs/apps>, and create an app. There are three types of apps available. Reddit::Client supports "script" and...
=over
=item Script apps
Most new users will want a "script"-type app. This is an app intended for personal use that uses a username and password to authenticate. The I<description> and I<about url> fields can be empty, and the I<redirect URI> can be any valid URL (script ap...
Use the app's client id and secret along with your username and password to create a L<new|https://metacpan.org/pod/Reddit::Client#new> Reddit::Client object.
=item Web apps
( run in 0.483 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )