with Consulta Única and Dacast?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
consulta_unica: {
type: "app",
app: "consulta_unica",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://consultaunica.mx/api/v2/user-stats`,
headers: {
"x-api-key": `${this.consulta_unica.$auth.api_key}`,
},
params: {
userEmail: `${this.consulta_unica.$auth.email}`,
},
})
},
})
Dacast's API gives you the power to manage live and on-demand video content. With this API, you can automate content creation, update settings, and pull analytics, all of which can be seamlessly integrated with Pipedream workflows. Use it to synchronize your video content with other databases, notify subscribers about new videos, or generate real-time alerts based on streaming performance metrics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dacast: {
type: "app",
app: "dacast",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://developer.dacast.com/v2/playlists`,
headers: {
"X-Api-Key": `${this.dacast.$auth.api_key}`,
"X-Format": `default`,
},
})
},
})