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 you add or modify a new row in a table. See the docs here
Emit new event when new rows are returned from a custom query. See the docs here
Make a phone call, passing text that Twilio will speak to the recipient of the call. See the docs for more information
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}`,
},
})
},
})
MySQL is a powerful database management system used by some of the largest
organizations in the world, including Facebook, Google, and Amazon. MySQL is an
open-source relational database management system (RDBMS), as well as a popular
choice for web applications used by millions of websites.
Some applications that can be built using the MySQL API include:
import mysql from 'mysql2/promise';
export default defineComponent({
props: {
mysql: {
type: "app",
app: "mysql",
}
},
async run({steps, $}) {
const { host, port, username, password, database, ca, cert, key } = this.mysql.$auth;
const sslConfig = ca && cert && key ? {
ssl: {
rejectUnauthorized: true,
ca,
cert,
key,
},
} : {};
const connectionConfig = {
host,
port,
user: username,
password,
database,
...sslConfig,
};
const connection = await mysql.createConnection(connectionConfig);
const [rows] = await connection.execute('SELECT NOW()');
return rows;
},
});