import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enginemailer: {
type: "app",
app: "enginemailer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enginemailer.com/restapi/subscriber/emsubscriber/getSubscriber`,
headers: {
"apikey": `${this.enginemailer.$auth.api_key}`,
},
params: {
email: `${this.enginemailer.$auth.email}`,
},
})
},
})
Enginemailer uses API keys for authentication. When you connect your Enginemailer account, Pipedream securely stores the keys so you can easily authenticate to Enginemailer APIs in both code and no-code steps.