Content Deep Dive
How to Call Google Cloud APIs From Cloudflare Workers
Blog post from Hookdeck
Post Details
Company
Date Published
Author
Valérian Galliat
Word Count
2,188
Language
English
Hacker News Points
-
Summary
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.