The GraphQL Content API provides a GraphQL interface to the content from Contentful
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
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
Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. See documentation
Contentful is a powerful API that can be used to build a variety of
content-rich applications. Here are just a few examples of what you can build
using the Contentful API:
All of these applications would benefit from being able to easily manage and
publish content, and the Contentful API makes this possible. So if you're
looking to build a content-rich application, consider using the Contentful API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentful_graphql: {
type: "app",
app: "contentful_graphql",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graphql.contentful.com/content/v1/spaces/[SPACE]/environments/[ENVIRONMENT]`,
headers: {
Authorization: `Bearer ${this.contentful_graphql.$auth.access_token}`,
},
params: {
query: `query($preview: Boolean){
assetCollection(preview: $preview){
items{
title
}
}
}`,
},
})
},
})
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}`,
},
})
},
})