NAME

Hatena::Star::Mobile - Perl extension for embedding Hatena Star into mobile sites.

SYNOPSIS

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
}

DESCRIPTION

AUTHOR

Junya Kondo, <http://d.hatena.ne.jp/jkondo/>,

COPYRIGHT AND LICENSE

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.