with Adyntel and TelTel?
Retrieve all Google ads for a given company domain. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
adyntel: {
type: "app",
app: "adyntel",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.adyntel.$auth.api_key}`,
"email": `${this.adyntel.$auth.username}`,
"company_domain": `pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://api.adyntel.com/google`,
data,
})
},
})
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`,
},
})
},
})