with Airweave and Notion?
Emit new event when a new comment is created in a page or block. See the documentation
Emit new event when a data source is created. See the documentation
Emit new event when a page is created or updated in the selected data source. See the documentation
Emit new event when a page is created or updated in the selected data source. See the documentation
Emit new event when a page is created in the selected data source. See the documentation
Create a new Airweave collection. Collections are logical groups of data sources that provide unified search capabilities. The newly created collection is initially empty until you add source connections to it. See the documentation
Append new and/or existing blocks to the specified parent. See the documentation
Delete a collection and all associated data. This permanently removes the collection including all synced data and source connections. This action cannot be undone. See the documentation
Use this action to finalize a mode=multi_part file upload after all of the parts have been sent successfully. See the documentation
Retrieve details of a specific collection by its readable ID. See the documentation
import { AirweaveSDKClient } from "@airweave/sdk";
export default defineComponent({
props: {
airweave: {
type: "app",
app: "airweave",
}
},
async run({steps, $}) {
const client = new AirweaveSDKClient({
apiKey: this.airweave.$auth.api_key,
base_url: this.airweave.$auth.base_url
});
return await client.collections.list({
skip: 1,
limit: 1
});
},
})
Notion's API allows for the creation, reading, updating, and deleting of pages, databases, and their contents within Notion. Using Pipedream's platform, you can build workflows that connect Notion with various other services to automate tasks such as content management, task tracking, and data synchronization. With Pipedream's serverless execution, you can trigger these workflows on a schedule, or by external events from other services, without managing any infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notion: {
type: "app",
app: "notion",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.notion.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.notion.$auth.oauth_access_token}`,
"Notion-Version": `2021-08-16`,
},
})
},
})