with Sessions and Akkio?
Emit new event when a session ends. Useful for data processing initiation. See the documentation
Emit new an event when a session starts. See the documentation
Makes a prediction based on the input props. See the documentation
The Sessions API enables developers to handle real-time data streams and manage user sessions effectively. With Pipedream's power to integrate various services, the Sessions API can be the backbone of workflows that require managing user states across events. You can track user activities, tailor user experiences based on session data, or even trigger specific actions when certain session events occur.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sessions: {
type: "app",
app: "sessions",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.app.sessions.us/api/booking-pages`,
headers: {
"x-api-key": `${this.sessions.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
akkio: {
type: "app",
app: "akkio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.akkio.com/v1/datasets`,
params: {
api_key: `${this.akkio.$auth.api_key}`,
},
})
},
})