台場 圭一 > WebService-Kizasi-v0.02 > WebService::Kizasi

Download:
WebService-Kizasi-v0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.2.0   Source  

NAME ^

WebService::Kizasi - A Perl Interface for the Kizasi Web Services

VERSION ^

This document describes WebService::Kizasi version 0.0.1

SYNOPSIS ^

    use WebService::Kizasi;

    use Encode qw(_utf8_off);

    my $kizapi = WebService::Kizasi->new();
    my @result;

    $result[0] = $kizapi->c10e_word_1d('CPAN');
    $result[1] = $kizapi->c10e_word_1w('CPAN');
    $result[2] = $kizapi->c10e_word_1m('CPAN');
    $result[3] = $kizapi->keyword_in_context('CPAN');
    $result[4] = $kizapi->ranking_1d;
    $result[5] = $kizapi->ranking_1w;
    $result[6] = $kizapi->ranking_1m;

    for my $result (@result) {
        my $utf8off = $result->items->[0]->title;
        _utf8_off ($utf8off);
        print $utf8off,"\n";
        print $result->items->[0]->pubDate,"\n";
        print $result->items->[0]->link,"\n";
        print $result->items->[0]->guid,"\n";
        $utf8off = $result->items->[0]->description;
        _utf8_off($utf8off);
        print $utf8off,"\n";
    }

DESCRIPTION ^

Kizasi.jp is the sight which discovers the "sign of change" (Kizasi) from blogs, and the WebService::Kizasi is a Perl interface to the Kizasi WebService API (Kizapi). For details, see http://blog.kizasi.jp/kizasi/66.

INTERFACE ^

new

Returns an instace of this module.

c10e_word_1d($keyword)

Returns WebService::Kizasi::Items, designates the cooccurrence (C10E) words from the keyword in 1 day. Keyword must be encoded as UTF-8, and the number of C10E words are less than 60.

c10e_word_1w($keyword)

Returns WebService::Kizasi::Items, designates the cooccurrence (C10E) words from the keyword in 1 week. Keyword must be encoded as UTF-8, and the number of C10E words are less than 60.

c10e_word_1m($keyword)

Returns WebService::Kizasi::Items, designates the cooccurrence (C10E) words from the keyword in 1 month. Keyword must be encoded as UTF-8, and the number of C10E words are less than 60.

keyword_in_context($keyword)

Returns WebService::Kizasi::Items, designates the sentenses which include the keyword. Keyword must be encoded as UTF-8, and the number of sentenses are less than 30.

ranking_1d

Returns WebService::Kizasi::Items, designates the ranking of the topics in 1 day.

ranking_1w

Returns WebService::Kizasi::Items, designates the ranking of the topics in 1 week.

ranking_1m

Returns WebService::Kizasi::Items, designates the ranking of the topics in 1 month.

DIAGNOSTICS ^

See WebService::Kizasi::Items->status and their status_message.

CONFIGURATION AND ENVIRONMENT ^

WebService::Kizasi requires no configuration files, but load proxy settings from *_proxy environment variables. See LWP::UserAgent for more details.

DEPENDENCIES ^

Class::Accessor::Fast, XML::RSS::LibXML, version, LWP::UserAgent, URI::Escape, Test::Base.

INCOMPATIBILITIES ^

None reported.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests to bug-WebService-Kizasi@rt.cpan.org, or through the web interface at http://rt.cpan.org.

SEE ALSO ^

WebService::Kizasi::Item

AUTHOR ^

DAIBA, Keiichi keiichi@tokyo.pm.org

LICENSE AND COPYRIGHT ^

Copyright (c) 2007, DAIBA, Keiichi keiichi@tokyo.pm.org. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

DISCLAIMER OF WARRANTY ^

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE ''AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.