I've pushed an initial working plugin to github that communicates with Google Cloud Platform APIs:
$c->app->gcp_ua(GET => "https://pubsub.googleapis.com/v1/projects/$ENV{GCP_PROJECT}/topics", sub { ## response handler my ($ua, $tx) = @_; $c->render(json => $tx->res->json, status => $tx->res->code); }, sub { ## error sub my ($tx, $c) = @_; $c->render(json => $tx->res->json, status => $tx->res->code); } ); It makes use of Mojo::JWT::Google to do the hard part. It is not thoroughly tested, but works for the happy case. I plan on adding it to CPAN tonight, but would love any feedback first. https://github.com/scottw/p5-Mojolicious-Plugin-Google-Cloud-UserAgent Scott -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
