with Firebase Admin and Kanban Tool?
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 events when a new activity occured on selected board. See the docs
Emit new events when a new board collaborator is created on selected board. See the docs
Emit new events when a new board is created or given access for a new board. See the docs
Creates or replaces a child object within your Firebase Realtime Database. See the docs here
Marks a subtask as completed See the docs here
Retrieves a document from a Firestore collection. See the documentation
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}/`,
})
}
},
})
The Kanban Tool API allows for the seamless integration and manipulation of Kanban boards, tasks, and workflows to optimize project management and team collaboration. By leveraging this API on Pipedream, you can automate task updates, synchronize boards with other data sources, and create custom notifications—thus enhancing productivity and maintaining momentum across projects.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kanban_tool: {
type: "app",
app: "kanban_tool",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kanban_tool.$auth.domain}.kanbantool.com/api/v3/users/current.json`,
headers: {
Authorization: `Bearer ${this.kanban_tool.$auth.api_token}`,
},
})
},
})