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`,
},
})
},
})
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
Allows to modify the properties of a specific user on iSpring Learn.
iSpring Learn uses OAuth authentication. When you connect your iSpring Learn account, Pipedream will open a popup window where you can sign into iSpring Learn and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any iSpring Learn API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api-learn.ispringlearn.com/api/v3/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://api-learn.ispringlearn.com/api/v3/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials