with Salesloft and Totango?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
salesloft: {
type: "app",
app: "salesloft",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.salesloft.com/v2/me`,
headers: {
Authorization: `Bearer ${this.salesloft.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
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,
})
},
})