with Alibaba Cloud and LightSpeed VT?
Emit new event every time there is a new user in the system
Creates a new user in the LightSpeed VT system. See the documentation
import Ecs20140526, * as $Ecs20140526 from '@alicloud/ecs20140526';
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
import Util, * as $Util from '@alicloud/tea-util';
export default defineComponent({
props: {
alibaba_cloud: {
type: "app",
app: "alibaba_cloud",
}
},
async run({ steps, $ }) {
//Creates a new Alibaba Cloud SDK client
let config = new OpenApi.Config({
accessKeyId: this.alibaba_cloud.$auth.access_key_id,
accessKeySecret: this.alibaba_cloud.$auth.access_key_secret,
});
config.endpoint = this.alibaba_cloud.$auth.endpoint;
//Creates and executes a request
let client = new Ecs20140526.default(config);
let describeRegionsRequest = new $Ecs20140526.DescribeRegionsRequest({});
let runtime = new $Util.RuntimeOptions({});
return await client.describeRegionsWithOptions(describeRegionsRequest, runtime);
},
})
LightSpeed VT is a learning management system (LMS) that provides a platform for delivering interactive training and e-learning experiences. Through the LightSpeed VT API, you can automate access to course catalogs, manage users, track progress and performance, and integrate this data with other systems. On Pipedream, you can leverage this API to create workflows that respond to events in real-time, synchronize training data with other platforms, and enhance the user learning experience with personalized automations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lightspeed_vt: {
type: "app",
app: "lightspeed_vt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://webservices.lightspeedvt.net/REST/V1/users/`,
auth: {
username: `${this.lightspeed_vt.$auth.api_key}`,
password: `${this.lightspeed_vt.$auth.api_secret}`,
},
})
},
})