import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailwizz: {
type: "app",
app: "mailwizz",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.mailwizz.$auth.url}/lists`,
headers: {
"X-API-KEY": `${this.mailwizz.$auth.api_key}`,
},
})
},
})
Mailwizz uses API keys for authentication. When you connect your Mailwizz account, Pipedream securely stores the keys so you can easily authenticate to Mailwizz APIs in both code and no-code steps.
To retrieve your API Key,
The URL field below is your Mailwizz host domain.
For example, if you have a Mailwizz instance hosted at https://example.com
, then enter example.com
in the url field below.
Please note that if the MailWizz hosted website doesn't have clean urls enabled, make sure your url has the index.php part of url included, i.e:example.com/api/index.php