Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
Watches for changes to specific files, emitting an event any time a change is made to one of those files. To watch for changes to shared drive files, use the Changes to Specific Files (Shared Drive) source instead.
Watches for changes to specific files in a shared drive, emitting an event any time a change is made to one of those files
Emit new event any time a new file is added in your linked Google Drive
Emits a new event any time a file comment is added, modified, or deleted in your linked Google Drive
Emit new event any time any file in your linked Google Drive is added, modified, or deleted
Add a sharing permission to the sharing preferences of a file or folder and provide a sharing URL. See the docs for more information
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Create a copy of the specified file. See the docs for more information
Create a new file from a URL or /tmp/filepath. See the docs for more information
The Google Drive API on Pipedream allows you to automate various file management tasks, such as creating, reading, updating, and deleting files within your Google Drive. You can also share files, manage permissions, and monitor changes to files and folders. This opens up possibilities for creating workflows that seamlessly integrate with other apps and services, streamlining document handling, backup processes, and collaborative workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
google_drive: {
type: "app",
app: "google_drive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.google_drive.$auth.oauth_access_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})