worthmine / API-Chaplus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME

API::Chaplus - It's an API module for Chaplus with perl

SYNOPSIS

use API::Chaplus;
my $api    = API::Chaplus->new( apikey => 'your_key' );
my $answer = $api->bestResponse( utterance => '調子どう?' );
print $answer;    # お返事が表示される

DESCRIPTION

API::Chaplus is a test implement for Chaplus-API

CONSTRUCTOR

new( apikey => YOUR_KEY )

attribute 'apikey' is required

METHODS

request( utterance => '日本語で話しかけよう', ... )

attribute 'utterance' is required

returns Perl hash decoded from JSON

bestResponse( utterance => '日本語で話しかけよう', ... )

attribute 'utterance' is required

returns Response object

responses( utterance => '日本語で話しかけよう', ... )

attribute 'utterance' is required

returns list of response objects

tokenized( utterance => '日本語で話しかけよう', ... )

attribute 'utterance' is required

returns list of tokenized objects

options( utterance => '日本語で話しかけよう', ... )

attribute 'utterance' is required

returns list of options objects

SEE ALSO

LICENSE

Copyright (C) worthmine.

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

AUTHOR

worthmine worthmine@gmail.com

About

License:Other


Languages

Language:Perl 100.0%