import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
emailchef: {
type: "app",
app: "emailchef",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.emailchef.com/apps/api/v1/preferences/current`,
headers: {
"consumerkey": `${this.emailchef.$auth.consumer_key}`,
"consumersecret": `${this.emailchef.$auth.consumer_secret}`,
},
})
},
})
Emailchef uses API keys for authentication. When you connect your Emailchef account, Pipedream securely stores the keys so you can easily authenticate to Emailchef APIs in both code and no-code steps.