with BenchmarkONE and TelTel?
Emit new event when a webhook automation step is triggered in BenchmarkONE.
Adds a note to a BenchmarkONE contact. See the documentation
Adds tags to a contact. If the contact does not exist, it will be created first. See the documentation
Creates a new contact in BenchmarkONE. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
benchmarkone: {
type: "app",
app: "benchmarkone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hatchbuck.com/api/v1/settings/source`,
params: {
api_key: `${this.benchmarkone.$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`,
},
})
},
})