with LightSpeed VT and Neon Postgres?
Emit new event every time there is a new user in the system
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
Creates a new user in the LightSpeed VT system. 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
LightSpeed VT is a learning management system (LMS) that provides a platform for delivering interactive training and e-learning experiences. Through the LightSpeed VT API, you can automate access to course catalogs, manage users, track progress and performance, and integrate this data with other systems. On Pipedream, you can leverage this API to create workflows that respond to events in real-time, synchronize training data with other platforms, and enhance the user learning experience with personalized automations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lightspeed_vt: {
type: "app",
app: "lightspeed_vt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://webservices.lightspeedvt.net/REST/V1/users/`,
auth: {
username: `${this.lightspeed_vt.$auth.api_key}`,
password: `${this.lightspeed_vt.$auth.api_secret}`,
},
})
},
})
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
},
})