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