with Kizeo Forms and Firebase Admin?
Emit new event when a new form is created on Kizeo Forms. See the documentation
Emit new event when a new child object is discovered within a specific path
Emit new event each time new form data is created in Kizeo Forms. See the documentation
Emit new event when a structured query returns new documents
Creates a new user in the Kizeo Forms platform. See the documentation
Exports data from a form to CSV or Excel format. See the documentation
Creates or replaces a child object within your Firebase Realtime Database. See the docs here
Exports data from a chosen export (Word or Excel) to PDF format. See the documentation
Kizeo Forms API lets you interact with the Kizeo platform to automate form data retrieval, manage users, and push or pull data to or from forms. On Pipedream, you can harness this API to create serverless workflows that trigger actions based on form submissions, integrate with other apps, or manage form data effectively. Use the API to connect Kizeo Forms with CRMs, project management tools, databases, and more, streamlining data collection and processing activities.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kizeo_forms: {
type: "app",
app: "kizeo_forms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.kizeoforms.com/rest/v3/users`,
headers: {
"Authorization": `${this.kizeo_forms.$auth.api_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}/`,
})
}
},
})