import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
themarketer: {
type: "app",
app: "themarketer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://t.themarketer.com/api/v1/unsubscribed_emails`,
params: {
"k": `${this.themarketer.$auth.rest_key}`,
"u": `${this.themarketer.$auth.customer_id}`,
},
})
},
})
theMarketer uses API keys for authentication. When you connect your theMarketer account, Pipedream securely stores the keys so you can easily authenticate to theMarketer APIs in both code and no-code steps.