import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailboxlayer: {
type: "app",
app: "mailboxlayer",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://apilayer.net/api/check`,
params: {
access_key: `${this.mailboxlayer.$auth.api_key}`,
email: `code.whisperer@pipedream.com`,
},
})
},
})
Mailboxlayer uses API keys for authentication. When you connect your Mailboxlayer account, Pipedream securely stores the keys so you can easily authenticate to Mailboxlayer APIs in both code and no-code steps.