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


WebService-Reflexa documentation  | view source Contained in the WebService-Reflexa distribution.

Index


NAME

Top

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

VERSION

Top

version 0.03

SYNOPSIS

Top

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

METHODS

Top

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

Top

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

Top

Toru Yamaguchi, <zigorou@cpan.org>

BUGS

Top

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

Top


WebService-Reflexa documentation  | view source Contained in the WebService-Reflexa distribution.