ce::Bonusly::Service;
$WebService::Bonusly::Service::VERSION = '1.001';
use v5.14;
use Moose;
use JSON;
use Try::Tiny;
use URI::Escape;
# ABSTRACT: A utility class for WebService::Bonusly services
Bonusly',
required => 1,
weak_ref => 1,
handles => [ qw( token base_url ua _json_flags print_debug ) ],
);
sub _perform_action {
my ($self, $method, $path_info, $params, $to
my $content = to_json(\%clean, $self->_json_flags);
$self->print_debug("SEND>> $method $path");
$self->print_debug("SEND>> Content-Type: application/json");
$self->prin