with RD Station CRM and Mixpanel?
RD Station CRM API offers a suite of powerful tools for managing customer relationships and sales pipelines. With this API, you can automate the syncing of lead information, update records, and manage sales activities. By leveraging Pipedream's capabilities, you can create intricate workflows that react to events in RD Station CRM, synchronize data across multiple platforms, and trigger actions that streamline your sales and marketing processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rd_station_crm: {
type: "app",
app: "rd_station_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://plugcrm.net/api/v1/token/check`,
params: {
token: `${this.rd_station_crm.$auth.api_token}`,
},
})
},
})
Mixpanel's API allows you to track user interactions with your web and mobile applications, providing insights through data analysis. You can capture events, update user profiles, and segment data based on user actions. Integrating Mixpanel with Pipedream enables you to automate responses to these events, sync data across services, and trigger workflows that can enhance user engagement and improve retention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mixpanel: {
type: "app",
app: "mixpanel",
}
},
async run({steps, $}) {
const data = `data={
"event": "Pipedream test event",
"properties": {
"token": "${this.mixpanel.$auth.token}"
}
}`
return await axios($, {
method: "post",
url: `https://api.mixpanel.com/track#live-event`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
data,
})
},
})