This is a simple example of how you could use a Trigger in Google App Script (GAS) to launch (i.e. publish) a Pub/Sub message.
We cover the following:
- Create a new Google App Script
- Setup OAuth2
- Create a Service Account to use with the OAuth2
- Create a the REST call to
Pub/Sub
- Setup the
Trigger