ount> object. Build for you.
=back
=head1 BUGS
L<JSON::XS> 4.01 has a bug that causes JSON serialization errors. Please
upgrade or downgrade JSON::XS where needed.
=head1 ACKNOWLEDGEMENTS
This mo
s => 'rw',
isa => Str,
required => 1,
);
has path => (is => 'ro');
around TO_JSON => sub {
my $orig = shift;
my $self = shift;
my $rv = $orig->($self, @_);
delete
POST => $uri,
[
'Content-Type' => 'application/json',
Accept => 'application/json',
]
);
$request->header("Authorization", join(" ", "Bas
return $orig->($class,
map { lower_snake_case($_) => $args{$_} } keys %args);
};
sub TO_JSON {
my $self = shift;
my $meta = $self->meta;
my %result;
for my $attr ($meta->get_
GET => $uri,
[
'Content-Type' => 'application/json',
Accept => 'application/json',
]
);
return $self->call_api($request);
}
sub senders
GET => $uri,
[
'Content-Type' => 'application/json',
Accept => 'application/json',
]
);
my $response = $self->call_api($request);
my
;
# ABSTRACT: A REST API client for ValidSign
use Carp qw(croak);
use HTTP::Request;
use JSON qw(decode_json);
use URI;
use Types::Standard qw(Str);
use WebService::ValidSign::Types qw(
WebServi
GET => $uri,
[
'Content-Type' => 'application/json',
Accept => 'application/json',
]
);
return $self->call_api($request);
}
sub create_
lf->get_endpoint($self->action_endpoint);
my $json = $self->json->encode($package);
my $request = $self->_add_documents($package, $uri, $json);
my $response = $self->call_api($request);
ponse->{id});
return $response->{id};
}
sub _add_documents {
my ($self, $package, $uri, $json) = @_;
my @files;
if (!$package->has_documents) {
croak("Unable to add document
:Request;
use JSON qw(decode_json);
use URI;
use WebService::ValidSign::Types qw(
WebServiceValidSignURI
WebServiceValidSignAuthModule
);
requires qw(action_endpoint);
has json => (
is
=> 'ro',
builder => 1,
lazy => 1,
);
sub _build_json {
require JSON::XS;
return JSON::XS->new->convert_blessed;
}
has auth => (
is => 'ro',
required => 1,
is
t = HTTP::Request->new(
GET => $uri,
[
'Content-Type' => 'application/json',
]
);
$self->call_api_download(
$request,
sub {
my