Twilio

Cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale

Go to site

Integrate the Twilio API with the Firebase Admin SDK API

Setup the Twilio API trigger to run a workflow which integrates with the Firebase Admin SDK API. Pipedream's integration platform allows you to integrate Twilio and Firebase Admin SDK remarkably fast. Free for developers.

Send an SMS

Sends a new SMS message

 
Try it
Make a Phone Call

Make a phone call, passing text that Twilio will speak to the user

 
Try it
POST /Accounts/{AccountSid}/Messages

To send a new outgoing message, make an HTTP POST to your Messages list resource URI

 
Try it
Get Message

Gets a single message specified by the provided Message {SID}.

 
Try it
Get Messages

Gets a list of messages associated with your account. The list includes paging information.

 
Try it

Connect Twilio

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.twilio.com/2010-04-01/Accounts.json`,
  auth: {
    username: `${auths.twilio.Sid}`,
    password: `${auths.twilio.Secret}`,
  },
})

Connect Firebase Admin SDK

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 } = auths.firebase_admin_sdk

// 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,
    })
  })
}

Community Posts

How Our Family Uses SMS and Smart Picture Frames to Connect During Remote Holidays
How Our Family Uses SMS and Smart Picture Frames to Connect During Remote Holidays
Two days before Thanksgiving, I decided to put together a simple way for our family to share pictures, because we couldn’t be together in person. The idea: smart photo frames that everyone could text pictures to. Here’s how I got it working. tldr; A Pipedream workflow parses SMS messages sent to a Twilio phone number, extracting the pictures and then using SendGrid to email them to the dedicated email addresses used by our Pix-Star photo frames.