/plushcap/analysis/hookdeck/how-to-call-google-cloud-apis-from-cloudflare-workers

How to Call Google Cloud APIs From Cloudflare Workers

What's this blog post about?

This article discusses how to call Google Cloud APIs from Cloudflare Workers. It explains the limitations of Cloudflare Workers compared to other serverless functions platforms and provides a solution for calling Google Cloud Pub/Sub API directly from Cloudflare despite the lack of a pure JavaScript SDK. The author outlines the process of creating a homemade client, importing RSA keys, signing JWTs, and making authorized API calls using a signed JWT directly as a bearer token or via OAuth 2.0 access token.

Company
Hookdeck

Date published
Feb. 16, 2022

Author(s)
Valérian Galliat

Word count
2188

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.