Group
Extension

Matches 2

Cloudinary ( J/JH/JHTHORSEN/Cloudinary-0.16.tar.gz, JHTHORSEN, 2017; MetaCPAN )
Cloudinary/lib/Cloudinary.pm ( view source; MetaCPAN )
= $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  => 
Cloudinary ( J/JH/JHTHORSEN/Cloudinary-0.16.tar.gz, JHTHORSEN, 2017; MetaCPAN )
Cloudinary/lib/Mojolicious/Plugin/Cloudinary.pm ( view source; MetaCPAN )
elay->begin);
      },
      sub {
        my ($delay, $res, $tx) = @_;
        return $c->render(json => $res) if $res;
        return $c->render_exception;
      },
    );
  }

=head1 ATTRIBUTES

=h

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.