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
Query IP address using IP2Location API. See the docs here for how to use this API.
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
Using the Google Drive API, you can build applications that:
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}`,
},
})
},
})
IP2Location provides a number of API calls that can be used to determine the
location of an IP address. This can be useful for a number of applications,
including:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ip2location: {
type: "app",
app: "ip2location",
},
ip: {
type: "string",
default: "142.113.220.31"
},
package: {
type: "string",
default: "WS1"
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ip2location.com/v2`,
params: {
key: `${this.ip2location.$auth.api_key}`,
ip: `${this.ip}`,
package: `${this.package}`,
},
})
},
})