New plugin for Google Cloud Platform APIs

18 views
Skip to first unread message

Scott Wiersdorf

unread,
Jun 14, 2016, 6:36:58 PM6/14/16
to Mojolicious
I've pushed an initial working plugin to github that communicates with Google Cloud Platform APIs:

                  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.


Scott
Reply all
Reply to author
Forward
0 new messages