Toru Yamaguchi > WebService-Reflexa-0.03 > WebService::Reflexa

Download:
WebService-Reflexa-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source  

NAME ^

WebService::Reflexa - Perl wrapper for Japanese assoc word search engine. (http://labs.preferred.jp/reflexa/)

VERSION ^

version 0.03

SYNOPSIS ^

    my $service = WebService::Reflexa->new;
    my $words = $service->search(['Perl', 'CPAN']);
    print join("\n", @$words);

METHODS ^

new($args)

Create instance, $args is hash reference. Key detail is below,

use_xml (optional)

Default 1. Create XML::LibXML and enable xml response.

use_json (optional)

Default 0. Create JSON::Any and enable json response.

search($word[, $format]);

search($words_array_ref[, $format])

Search assoc words by keywords. Return as array reference. Keywords is permitted Array reference or scalar.

If you want to specify format type which is "xml" or "json", then you must specify last argument called $format.

xml_dispatcher()

Return code reference for WWW::REST.

json_dispatcher()

Return code reference for WWW::REST.

rest()

WWW::REST instance.

json()

JSON::Any instance.

xml()

XML::LibXML instance.

result()

Last response string.

SEE ALSO ^

http://labs.preferred.jp/reflexa/

Reflexa search engine top.

http://labs.preferred.jp/reflexa/about_api.html

About reflexa API

WWW::REST

WWW::REST is great module. But I want to fix 'Subroutine WWW::REST::new redefined' warnings.

XML::LibXML
JSON::Any

AUTHOR ^

Toru Yamaguchi, <zigorou@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-webservice-reflexa@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE ^

Copyright 2007 Toru Yamaguchi, All Rights Reserved.

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