import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mixpanel_service_account: {
type: "app",
app: "mixpanel_service_account",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.mixpanel_service_account.$auth.region}/api/app/projects/${this.mixpanel_service_account.$auth.project_id}/service-accounts`,
auth: {
username: `${this.mixpanel_service_account.$auth.username}`,
password: `${this.mixpanel_service_account.$auth.secret}`,
},
})
},
})
Mixpanel (Service Account) uses API keys for authentication. When you connect your Mixpanel (Service Account) account, Pipedream securely stores the keys so you can easily authenticate to Mixpanel (Service Account) APIs in both code and no-code steps.