with Notion (API Key) and Greenhouse Job Board?
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
greenhouse_job_board_api: {
type: "app",
app: "greenhouse_job_board_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://boards-api.greenhouse.io/v1/boards/${this.greenhouse_job_board_api.$auth.board_token}/jobs`,
headers: {
"accept": `application/json`,
},
})
},
})