Google Cloud

The Google Cloud Platform

Go to site

Integrate the Google Cloud API with the Discord Webhook API

Setup the Google Cloud API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Google Cloud and Discord Webhook remarkably fast. Free for developers.

Send Message to Channel

Send a message to the channel tied to your incoming webhook. At least one of message OR embeds is required.

 
Try it
google_cloud_storage_upload_file

Upload json file to GCStorage

 
Try it
Google Cloud Storage - Delete Bucket

Deletes a bucket

 
Try it
Google Cloud Storage - Delete File

Deletes a file from a bucket

 
Try it
Google Cloud Storage - List Buckets

Lists buckets in storage account

 
Try it

Connect Google Cloud

// Required workaround to get the @google-cloud/storage package
// working correctly on Pipedream
require("@dylburger/umask")()

const { Storage } = require('@google-cloud/storage')

const key = JSON.parse(auths.google_cloud.key_json)
 
// Creates a client from a Google service account key.
// See https://cloud.google.com/nodejs/docs/reference/storage/1.6.x/global#ClientConfig
const storage = new Storage({
  projectId: key.project_id,
  credentials: {
    client_email: key.client_email,
    private_key: key.private_key,
  }
})

// Uncomment this section and rename for your bucket before running this code
// const bucketName = 'pipedream-test-bucket';

await storage.createBucket(bucketName)
console.log(`Bucket ${bucketName} created.`)

Connect Discord Webhook

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://discord.com/api/users/@me`,
  headers: {
    Authorization: `Bearer ${auths.discord_webhook.oauth_access_token}`,
  },
})