with Teachable and Real ID?
The Teachable API opens up possibilities for automating and enhancing online course interactions and management. Using Pipedream, you can weave together workflows that interact with Teachable events, users, and courses. You can automate enrollment processes, synchronize course data with external systems, and engage students with timely notifications. Pipedream's serverless platform lets you create these workflows with minimal setup, leveraging its ability to trigger actions based on Teachable events or on a schedule, and to integrate with hundreds of other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
teachable: {
type: "app",
app: "teachable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://developers.teachable.com/v1/users`,
headers: {
"apiKey": `${this.teachable.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
real_id: {
type: "app",
app: "real_id",
}
},
async run({steps, $}) {
const data = {
firstName: "John",
lastName: "Smith",
email: "johnsmith@gmail.com",
}
return await axios($, {
method: "post",
url: `https://real-id.getverdict.com/api/v1/checks`,
headers: {
Authorization: `Bearer ${this.real_id.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})