import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teltel: {
type: "app",
app: "teltel",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.teltel.io/v2/autodialers`,
headers: {
"x-api-key": `${this.teltel.$auth.api_key}`,
},
params: {
fields: `id,name,created_at,campaign_type`,
},
})
},
})
TelTel uses API keys for authentication. When you connect your TelTel account, Pipedream securely stores the keys so you can easily authenticate to TelTel APIs in both code and no-code steps.