with Refiner and TelTel?
Emit new event whenever a user enters a segment in Refiner. See the documentation
Emit new event whenever a user completes a survey in Refiner. See the documentation
Identify a user with user ID or email. If the user does not exist, a new one will be created. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
refiner: {
type: "app",
app: "refiner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.refiner.io/v1/account`,
headers: {
Authorization: `Bearer ${this.refiner.$auth.api_key}`,
},
})
},
})
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`,
},
})
},
})