NAME
WebService::Hatena::Graph - A Perl interface to Hatena::Graph API
VERSION
This document describes WebService::Hatena::Graph version 0.04
SYNOPSIS
use WebService::Hatena::Graph;
my $graph = WebService::Hatena::Graph->new(
username => $username,
password => $password,
);
$graph->post(
graphname => $graphname,
date => $date, # optional
value => $value,
);
DESCRIPTION
WebService::Hatena::Graph allows you to post some values resulting from your daily activities easily to Hatena::Graph to record them graphically.
METHODS
new ( %args )
my $graph = WebService::Hatena::Graph->new(
username => $username,
password => $password,
);
Creates and returns a new WebService::Hatena::Graph object. Both username and password are required.
post ( %args )
$graph->post(
graphname => $graphname,
date => $date, # optional
value => $value,
);
Posts a new $value on $date to the graph indicated by $graphname. Unless the required parameters are not passed in or the response code is 201, this method will croak immediately.
You can omit to pass the date explicitly. In that case, Hatena::Graph will regard as if you pass the date on the day.
$date can take any form described below:
2006-10-13, 06-10-13, 10-13
Date values separated with dashes.
2006/10/13, 06/10/13, 10/13
Date values separated with slashes.
20061013, 061013
Date values unseparated.
For more details, consult the help documentation of Hatena::Graph.
SEE ALSO
Hatena::Graph
Hatena::Graph API documentation
http://d.hatena.ne.jp/keyword/%a4%cf%a4%c6%a4%ca%a5%b0%a5%e9%a5%d5%bf%f4%c3%cd%c5%d0%cf%bfAPI
AUTHOR
Kentaro Kuribayashi <kentaro@cpan.org>
COPYRIGHT AND LICENSE (The MIT License)
Copyright (c) 2006, Kentaro Kuribayashi <kentaro@cpan.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.