with iSpring Learn and actiTIME?
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 customer is created. See the documentation
Emit new event when a new user is registered.
Emit new event when a new task is created. See the documentation
Enrolls users to the specified courses on iSpring Learn.
Fetches the list of user enrollments on iSpring Learn. See the documentation
Changes the existing leave time record with a given value in actiTIME. 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: {
actitime: {
type: "app",
app: "actitime",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.actitime.$auth.url}/api/v1/users`,
auth: {
username: `${this.actitime.$auth.email}`,
password: `${this.actitime.$auth.password}`,
},
})
},
})