with Totango and Leverly?
The Totango API taps into the realm of customer success, offering intricate data on customer interactions and health scores. This API is a gateway for syncing customer data, tracking events, and constructing a responsive and personalized customer journey. Utilize Pipedream's capabilities to connect Totango to a myriad of other apps, creating automated workflows that enhance customer insights, trigger actions based on customer status, and streamline communication across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
totango: {
type: "app",
app: "totango",
}
},
async run({steps, $}) {
const data = {
"query": `{"terms":[],"count":1000,"offset":0,"fields":[],"scope":"all"}`,
}
return await axios($, {
method: "post",
url: `https://api.totango.com/api/v1/search/users`,
headers: {
"app-token": `${this.totango.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leverly: {
type: "app",
app: "leverly",
}
},
async run({steps, $}) {
const data = {
"firstName": `Sergio`,
"Phone1": `+123456789`,
}
return await axios($, {
method: "post",
url: `https://app.leverly.com/main/ingestor/process`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
params: {
AccountID: `${this.leverly.$auth.account_id}`,
},
data,
})
},
})