with Mumara and Neon Postgres?
Emit new event when a new column is added to a table. See the documentation
Emit new event when a row is added or modified. See the documentation
Emit new event when a new row is added to a table. See the documentation
Emit new event when new rows are returned from a custom query that you provide. See the documentation
Emit new event when a new table is added to the database. See the documentation
Finds a row in a table via a lookup column. See the documentation
Finds a row in a table via a custom query. See the documentation
The Mumara API provides programmatic access to powerful email marketing and SMS campaign tools, allowing for the automation of contact list management, campaign creation, and performance tracking. In Pipedream, you can leverage these capabilities to create custom workflows that integrate Mumara with other services, automate repetitive tasks, and react to events in real-time. By connecting Mumara's API with Pipedream's serverless execution platform, you can create data-driven workflows that streamline your marketing efforts.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mumara: {
type: "app",
app: "mumara",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://one.mumara.com/api/getLists`,
headers: {
Authorization: `Bearer ${this.mumara.$auth.api_token}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform";
import { neon } from "@neondatabase/serverless";
export default defineComponent({
props: {
neon_postgres: {
type: "app",
app: "neon_postgres",
}
},
async run({ steps, $ }) {
const { host, port, user, password, database } = this.neon_postgres.$auth
const connectionString = `postgresql://${user}:${password}@${host}:${port}/${database}`
const sql = neon(connectionString)
const result = await sql`SELECT version()`
const { version } = result[0]
return version
},
})