with iSpring Learn and Epsy?
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 user is registered.
Enrolls users to the specified courses on iSpring Learn.
Fetches the list of user enrollments on iSpring Learn. See the documentation
Get the results of the lookup with the provided ID. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
epsy: {
type: "app",
app: "epsy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://irbis.espysys.com/api/request-monitor/credit-stat`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
},
params: {
key: `${this.epsy.$auth.api_key}`,
},
})
},
})