Twilio is a cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale.
Emit new event every time an SMS is sent to the phone number set. Configures a webhook in Twilio, tied to an incoming phone number.
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 each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.
Make a phone call, passing text that Twilio will speak to the recipient of the call. See the docs for more information
Creates or replaces a child object within your Firebase Realtime Database. See the docs here
Send an SMS with text and media files. See the docs for more information
With the Twilio API, you can build telephone applications that make and receive
phone calls, as well astext messaging applications that send and receive text
messages.
Some examples of applications you could build include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
twilio: {
type: "app",
app: "twilio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.twilio.com/2010-04-01/Accounts.json`,
auth: {
username: `${this.twilio.$auth.AccountSid}`,
password: `${this.twilio.$auth.AuthToken}`,
},
})
},
})
With the Firebase Admin SDK API, you can build a variety of different
applications and tools. For example, you could build a tool to manage your
Firebase project's users, or a tool to monitor your Firebase project's data
usage. You could also build an app that helps you manage your Firebase
project's settings, or an app that helps you troubleshoot your Firebase
project's data.
module.exports = defineComponent({
props: {
firebase_admin_sdk: {
type: "app",
app: "firebase_admin_sdk",
}
},
async run({steps, $}) {
const admin = require('firebase-admin')
// Enter values for the following parameters below this code step,
// These get passed to the initializeApp method below.
const { projectId, clientEmail, privateKey } = 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,
})
})
}
},
})