AI-CleverbotIO
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
https://cleverbot.io.
ACCESSORS
key
my $api_key = $obj->key;
Read-only accessor to the API key. MUST be provided upon instantiation.
endpoints
my $endpoints_hashref = $obj->endpoints;
Read-only accessor to a hash reference whose keys are the strings ask
and create and the corresponding values are the API endoints (URIs).
The default is:
{
ask => 'https://cleverbot.io/1.0/ask',
create => 'https://cleverbot.io/1.0/create',
}
lib/AI/CleverbotIO.pm view on Meta::CPAN
use strict;
use warnings;
{ our $VERSION = '0.002'; }
use Moo;
use Ouch;
use Log::Any ();
use Data::Dumper;
use JSON::PP qw< decode_json >;
has endpoints => (
is => 'ro',
default => sub {
return {
ask => 'https://cleverbot.io/1.0/ask',
create => 'https://cleverbot.io/1.0/create',
};
},
);
has key => (
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.618 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )