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