MySQL is an open-source relational database management system.
Emits an event each time a message-received
event is received at the source url
Emits an event each time an outbound message status event is received at the source url
Emit new event when you add or modify a new row in a table. See the docs here
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: user,
password,
database,
ca,
key,
cert,
reject_unauthorized: rejectUnauthorized,
} = this.mysql.$auth;
const isRejectUnauthorizedUndefined = rejectUnauthorized === undefined;
const isSslSet = !!(ca && key && cert);
const connectionConfig = {
host,
port,
user,
password,
database,
...(isSslSet && {
ssl: {
rejectUnauthorized: true,
ca,
cert,
key,
},
}),
...(!isSslSet && !isRejectUnauthorizedUndefined && {
ssl: {
rejectUnauthorized,
},
}),
};
const connection = await mysql.createConnection(connectionConfig);
const [rows] = await connection.execute('SELECT NOW()');
return rows;
},
});
With the Bandwidth API, you can build a variety of applications and tools for
managing your communication needs. Here are a few examples of what you can
build:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bandwidth: {
type: "app",
app: "bandwidth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dashboard.bandwidth.com/api/accounts/${this.bandwidth.$auth.accountId}/applications`,
auth: {
username: `${this.bandwidth.$auth.username}`,
password: `${this.bandwidth.$auth.password}`,
},
})
},
})