with Microsoft Power BI and Firebase Admin?
Emits a new event when a dataset refresh operation has completed. See the documentation
Emits an event when a dataset refresh operation has failed in Power BI. See the documentation
Emit new event when a new child object is discovered within a specific path
Emit new event when a structured query returns new documents
Emit new event when a new dataset refresh operation is created. See the documentation
Adds new data rows to the specified table within the specified dataset from My workspace. See the documentation
Cancels a refresh operation for a specified dataset in Power BI. See the documentation
Creates or replaces a child object within your Firebase Realtime Database. See the docs here
Creates a new Push Dataset in Power BI. See the documentation
The Microsoft Power BI API allows you to interact with your Power BI assets programmatically. With this API, you can embed your reports and dashboards into applications, manage Power BI datasets, push data into datasets for real-time dashboard updates, and automate your reporting workflows. On Pipedream, you can use this API to create intricate workflows that react to various triggers, like webhooks or schedules, and perform actions like refreshing datasets, posting to datasets, and managing Power BI assets.
import { axios } from "@pipedream/platform" export default defineComponent({ props: { microsoft_power_bi: { type: "app", app: "microsoft_power_bi", } }, async run({steps, $}) { return await axios($, { url: `https://api.powerbi.com/v1.0/myorg/availableFeatures`, headers: { Authorization: `Bearer ${this.microsoft_power_bi.$auth.oauth_access_token}`, }, }) }, }) The Firebase Admin SDK API provides powerful backend functionality for Firebase apps. It allows you to interact with Firebase services like Firestore, Firebase Realtime Database, Firebase Storage, and Firebase Authentication directly from a server. With Pipedream, you can harness this API to automate complex workflows, respond to Firebase events in real-time, and integrate with countless other services.
import admin from "firebase-admin" export default defineComponent({ props: { firebase_admin_sdk: { type: "app", app: "firebase_admin_sdk", }, }, async run({ steps, $ }) { // Enter values for the following parameters below this code step, // These get passed to the initializeApp method below. const { projectId, clientEmail, privateKey, region = "firebaseio.com", } = this.firebase_admin_sdk.$auth // Before passing the privateKey to the initializeApp constructor, // we have to replace newline characters with literal newlines const formattedPrivateKey = privateKey.replace(/\\n/g, "\n") // See https://firebase.google.com/docs/reference/admin/node/admin.credential.html#cert if (!admin.apps.length) { admin.initializeApp({ credential: admin.credential.cert({ projectId, clientEmail, privateKey: formattedPrivateKey, }), databaseURL: `https://${projectId}-default-rtdb.${region}/`, }) } }, })