import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
axis_lms: {
type: "app",
app: "axis_lms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.axis_lms.$auth.url}/lms/api.php`,
params: {
auth: `${this.axis_lms.$auth.api_key}`,
command: `system__getapiversion`,
},
})
},
})
Axis LMS uses OAuth authentication. When you connect your Axis LMS account, Pipedream will open a popup window where you can sign into Axis LMS and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Axis LMS API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://{{custom_fields.url}}/api.php/token/request/
apikey: {{custom_fields.api_key}}
POST
https://{{custom_fields.url}}/api.php/token/request/
?
api_key={{custom_fields.api_key}}
content-type: application/x-www-form-urlencoded
accept: application/json