Net::Plurk - A perl interface to Plurk API
Version 0.09
Quick summary of what the module does.
Perhaps a little code snippet.
use Net::Plurk; my $api_key = $PLURKAPIKEY // "dKkIdUCoHo7vUDPjd3zE0bRvdm5a9sQi"; my $user = $PLURKUSER // 'nobody'; my $pass = $PLURKPASS // 'nopass'; my $p = Net::Plurk->new(api_key => $api_key); my $profile = $p->login(user => $user, pass => $pass ); $p->add_events( on_new_plurk => sub { my $plurk = shift; use Data::Dumper; warn Dumper $plurk; }, on_private_plurk => sub { my $plurk = shift; # blah }, ); $p->listen; my $json = $p->api( path => '/api'); ...
A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.
Everything from here
Check if logged in, we use /API/Blocks/get to check the return JSON contains 'error_text' => 'Requires login'
Get the request url and return Net::Plurk::User
Just logout, should alway return 1
given nick_name, return unique_id
call /Profile/getPublicProfile
call /Polling/getPlurks arguments => offset: Return plurks newer than offset, formatted as 2009-6-20T21:55:34.
return logined user's karma, or specify user => 'who'
return 1 if followed someone, 0 otherwise (see api_errormsg)
return 1 if unfollowed someone, 0 otherwise (see api_errormsg)
add_plurk ($content, $qualifier %opt) %opt: limited_to, no_comment, lang
Cheng-Lung Sung, <clsung at cpan.org>
<clsung at cpan.org>
Please report any bugs or feature requests to bug-net-plurk at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Plurk. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-plurk at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::Plurk
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Plurk
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-Plurk
CPAN Ratings
http://cpanratings.perl.org/d/Net-Plurk
Search CPAN
http://search.cpan.org/dist/Net-Plurk/
Copyright 2009~2010 Cheng-Lung Sung, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Plurk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Plurk
CPAN shell
perl -MCPAN -e shell install Net::Plurk
For more information on module installation, please visit the detailed CPAN module installation guide.