with Zamzar and Google Cloud?
Emit new Pub/Sub topic in your GCP account. Messages published to this topic are emitted from the Pipedream source.
Emit new event when a conversion job has completed. See the documentation
Emit new event when a file has been converted successfully. See the documentation
Emit new events with the results of an arbitrary query
Creates a file from the provided content. See the documentation
Finds the file that has been processed under the specified job id. See the documentation
Inserts rows into a BigQuery table. See the docs and for an example here
Starts a conversion job and upload a source file in a single request. See the documentation
The Zamzar API on Pipedream provides powerful file conversion capabilities, allowing you to easily automate the process of converting files between different formats. With Pipedream's serverless platform, you can set up workflows that trigger conversions, handle the completed files, and integrate with other services for a seamless automation experience. From document conversion for data analysis to prepping media files for different platforms, Zamzar's API coupled with Pipedream's robust functionality opens up a world of possibilities for streamlining tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zamzar: {
type: "app",
app: "zamzar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.zamzar.com/v1/account`,
auth: {
username: `${this.zamzar.$auth.api_key}`,
password: ``,
},
})
},
})
The Google Cloud API opens a world of possibilities for enhancing cloud operations and automating tasks. It empowers you to manage, scale, and fine-tune various services within the Google Cloud Platform (GCP) programmatically. With Pipedream, you can harness this power to create intricate workflows, trigger cloud functions based on events from other apps, manage resources, and analyze data, all in a serverless environment. The ability to interconnect GCP services with numerous other apps enriches automation, making it easier to synchronize data, streamline development workflows, and deploy applications efficiently.
module.exports = defineComponent({
props: {
google_cloud: {
type: "app",
app: "google_cloud",
}
},
async run({steps, $}) {
// 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(this.google_cloud.$auth.key_json)
const storage = new Storage({
projectId: key.project_id,
credentials: {
client_email: key.client_email,
private_key: key.private_key,
}
})
await storage.authClient.getCredentials()
return {
status: "success",
authenticated: true,
projectId: key.project_id,
serviceAccount: key.client_email
}
},
})