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