Build better products by turning your user data into meaningful insights, using Amplitude's digital analytics platform and experimentation tools.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
amplitude: {
type: "app",
app: "amplitude",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://{{custom_fields.region}/sessions/average`,
auth: {
username: `${this.amplitude.$auth.api_key}`,
password: `${this.amplitude.$auth.api_secret}`,
},
params: {
"p": `platform`,
start: `20210601`,
end: `20210630`,
},
})
},
})
Sends user event data to Amplitude for analytics. See the documentation
Amplitude uses API keys for authentication. When you connect your Amplitude account, Pipedream securely stores the keys so you can easily authenticate to Amplitude APIs in both code and no-code steps.
To retrieve your API keys,
Please select your region; for EU data residency, the project must be set up inside Amplitude EU.