Hatena::Star::Mobile - Perl extension for embedding Hatena Star into mobile sites.
use Hatena::Star::Mobile; my $entries = [ {uri => 'http://d.hatena.ne.jp/jkondo/20080123/1201040123'}, {uri => 'http://d.hatena.ne.jp/jkondo/20080122/1200947996'}, {uri => 'http://d.hatena.ne.jp/jkondo/20080121/1200906620'}, ]; my $star_entries = Hatena::Star::Mobile->get_star_entries( entries => $entries, location => 'http://d.hatena.ne.jp/jkondo/mobile', # return url for add button color => 'gr', # color for add button hatena_domain => 'hatena.ne.jp', # base domain name of Hatena sid => 'abced', # (mobile session id) rks => '12345', # (Hatena::User->rks) ); for my $se (@$star_entries) { print $se->{star_html}; # html string for add button and stars print $se->{uri}; # entry's uri }
Junya Kondo, <http://d.hatena.ne.jp/jkondo/>,
Copyright (C) Hatena Inc. All Rights Reserved.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install Hatena::Star::Mobile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hatena::Star::Mobile
CPAN shell
perl -MCPAN -e shell install Hatena::Star::Mobile
For more information on module installation, please visit the detailed CPAN module installation guide.