with Microbilt Developer and Enrichley?
Checks the validity of a single email address using Enrichley. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microbilt_developer: {
type: "app",
app: "microbilt_developer",
}
},
async run({steps, $}) {
const data = {
"Address": {
"Addr1": "1640 Airport Road #115",
"City": "Kennesaw",
"State": "GA",
"Zip": "30144"
}
}
return await axios($, {
method: "post",
url: `https://${this.microbilt_developer.$auth.environment}.microbilt.com/AddressStandardization`,
headers: {
Authorization: `Bearer ${this.microbilt_developer.$auth.oauth_access_token}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enrichley: {
type: "app",
app: "enrichley",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enrichley.io/api/v1/me`,
headers: {
"accept": `application/json`,
"X-API-Key": `${this.enrichley.$auth.api_key}`,
},
})
},
})