Acme-Insult-Evil
view release on metacpan or search on metacpan
Expected parameters include:
- `language`
Insult's language. The default is `en`. Supported languages include: `en`, `fr`, `cn`, `ja`, `es`, etc.
On success, an insult is returned as a blessed hash reference containing the following data:
- `active`
Boolean value. If true, the insult is part of the public API.
- `comment`
This often provides contextual information about the insult's source of the insult itself.
- `created`
ISO 8601 date.
- `createdby`
lib/Acme/Insult/Evil.pm view on Meta::CPAN
package Acme::Insult::Evil 1.1 { # https://www.freepublicapis.com/evil-insult-generator
use v5.38;
use HTTP::Tiny;
use JSON::Tiny qw[decode_json];
use URI;
use parent 'Exporter';
our %EXPORT_TAGS = ( all => [ our @EXPORT_OK = qw[insult] ] );
#
use overload '""' => sub ( $s, $u, $b ) { $s->{insult} // () };
#
sub _http (%params) {
lib/Acme/Insult/Evil.pm view on Meta::CPAN
Insult's language. The default is C<en>. Supported languages include: C<en>, C<fr>, C<cn>, C<ja>, C<es>, etc.
=back
On success, an insult is returned as a blessed hash reference containing the following data:
=over
=item C<active>
Boolean value. If true, the insult is part of the public API.
=item C<comment>
This often provides contextual information about the insult's source of the insult itself.
=item C<created>
ISO 8601 date.
=item C<createdby>
( run in 0.401 second using v1.01-cache-2.11-cpan-c6e0e5ac2a7 )