= $self->_ua->post(
$url, $headers,
form => $post,
$cb ? sub { $self->$cb($_[1]->res->json || {error => $_[1]->error || 'Unknown error'}) } : (),
);
return $self if $cb; # non-bloc
king
my $res = $tx->error;
die $res->{message} || 'Unknown error' if $res;
$res = $tx->res->json;
die $res->{error} if $res->{error};
return $res;
}
sub _api_sign_request {
my ($self, $ar
ameters given
L</cloud_name>, L</api_key> and L</api_secret>. C<$res> in the callback
will be the json response from cloudinary:
{
url => $str,
secure_url => $str,
public_id =>