Net::Kotonoha - A perl interface to kotonoha.cc
use Net::Kotonoha; use Data::Dumper; my $kotonoha = Net::Kotonoha->new( mail => 'xxxxx@example.com', password => 'xxxxx', ); warn Dumper $kotonoha->newer_list; my $koto = $kotonoha->get_koto(120235); $koto->answer(1, 'YES!YES!YES!'); warn Dumper $koto->answer;
This module allows easy access to kotonoha. kotonoha is not provide API. Thus, this module is helpful for make kotonoha application.
Two parameter is required, a hashref of options. It requires mail and password in the parameter. You have to sign-up your account at kotonoha if you don't have them.
mail
password
You can access koto list with following methods.
newer_list recent_list answered_list posted_list stream_list subscribed_list
And, you can get koto object with following method specified id of koto.
get_koto($koto_no)
You'll get koto object. see Net::Kotonoha::Koto.
Yasuhiro Matsumoto <mattn.jp@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Net::Kotonoha::Koto
To install Net::Kotonoha, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Kotonoha
CPAN shell
perl -MCPAN -e shell install Net::Kotonoha
For more information on module installation, please visit the detailed CPAN module installation guide.