package Net::OneTimeSecret;
our $VERSION = "0.04";
use common::sense;
use JSON;
use LWP::UserAgent;
use URI::Escape;
use Encode qw( encode_utf8 decode_utf8 );
my $_USER_AGENT = LWP::UserAgent->new
a );
return from_json( decode_utf8( $response->decoded_content ) );
}
sub _get {
my ($self, $url) = @_;
my $response = $_USER_AGENT->get( $url );
return from_json( $response->decoded_
ent
You call it with Perl data, and get back Perl data. No messing
with encoding or decoding of JSON.
=item * Unicode
Unicode, errrm, seems to work OK.
=back
=head1 DESCRIPTION
See https://one