with changes.page and iSpring Learn?
Emit new event when courses or materials in a course are completed successfully.
Emit new event when learners are enrolled in courses.
Emit new event when a new post is created. See the documentation
Emit new event when a new user is registered.
Get the latest post from Changes Page. See the documentation
Enrolls users to the specified courses on iSpring Learn.
Get the pinned post from Changes Page. See the documentation
Fetches the list of user enrollments on iSpring Learn. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
changes_page: {
type: "app",
app: "changes_page",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.changes_page.$auth.subdomain}.changes.page/latest.json`,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ispring_learn: {
type: "app",
app: "ispring_learn",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-learn.ispringlearn.com/content`,
headers: {
Authorization: `Bearer ${this.ispring_learn.$auth.oauth_access_token}`,
"X-Target-Locale": `en-US`,
},
})
},
})