with Summit and HARPA AI?
Emit new event when a new model is added to your organization in Summit. See the documentation
Executes a model within Summit and captures the response fields. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
summit: {
type: "app",
app: "summit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.usesummit.com/v1/apps`,
headers: {
"x-api-key": `${this.summit.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
harpa_ai: {
type: "app",
app: "harpa_ai",
}
},
async run({steps, $}) {
const data = {
"action": "scrape",
"url": "https://harpa.ai/blog",
"grab": [{"selector":".PostList__postTitle","at":"all","label":"data"}],
"node": "4wwg"
}
return await axios($, {
method: "post",
url: `https://api.harpa.ai/api/v1/grid`,
headers: {
Authorization: `Bearer ${this.harpa_ai.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})