with Gmail and Notion (API Key)?
Emit new event when a new comment is created in a page or block. See the documentation
Emit new event for each attachment in a message received. This source is capped at 100 max new messages per run.
Emit new event when a database is created. See the documentation
Emit new event when an email matching the search criteria is received. This source is capped at 100 max new messages per run.
Emit new event when a page is created or updated in the selected database. See the documentation
Append new and/or existing blocks to the specified parent. See the documentation
Suspend the workflow until approved by email. See the documentation
Create a comment in a page or existing discussion thread. See the documentation
By connecting your personal Gmail account to Pipedream, you'll be able to incorporate email into whatever you're building with any of the thousands of apps that are available on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gmail: {
type: "app",
app: "gmail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.googleapis.com/oauth2/v1/userinfo`,
headers: {
Authorization: `Bearer ${this.gmail.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notion_api_key: {
type: "app",
app: "notion_api_key",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.notion.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.notion_api_key.$auth.api_secret}`,
"Notion-Version": `2021-08-16`,
},
})
},
})