with Bloomerang and Webscrape AI?
Adds an interaction to an existing constituent in Bloomerang. See the documentation
Creates a new constituent in Bloomerang. See the documentation
Creates a new donation record in Bloomerang. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bloomerang: {
type: "app",
app: "bloomerang",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bloomerang.co/v2/user/current`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.bloomerang.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
webscrape_ai: {
type: "app",
app: "webscrape_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.webscrapeai.com/scrapeWebSite`,
params: {
url: `https://news.ycombinator.com/`,
command: `I want to extract all the news details`,
apiKey: `${this.webscrape_ai.$auth.api_key}`,
schema: `{"author":"string","comments_count":"integer","points":"integer","posted_time":"string","title":"string","url":"url"}`,
},
})
},
})