with Demandbase and mails.so?
Send an email address to be validated by the API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
demandbase: {
type: "app",
app: "demandbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.insideview.com/api/v1/admin/usage`,
headers: {
"accesstoken": `${this.demandbase.$auth.oauth_access_token}`,
"accept": `application/json`,
},
params: {
period: `year`,
start: `2023`,
end: `2025`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mails_so: {
type: "app",
app: "mails_so",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mails.so/v1/validate`,
headers: {
"x-mails-api-key": `${this.mails_so.$auth.api_key}`,
},
params: {
email: `john.smith@example.com`,
},
})
},
})