with LearnWorlds and Trunkrs?
Emit new event when a new shipment is created. See the documentation
Emit new event when a shipment is cancelled. See the documentation
Emit new event when a shipment is reviewed. See the documentation
Emit new event when a shipment state is updated. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
learnworlds: {
type: "app",
app: "learnworlds",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.learnworlds.$auth.school_domain}/admin/api/v2/users`,
headers: {
Authorization: `Bearer ${this.learnworlds.$auth.oauth_access_token}`,
"Lw-Client": `${this.learnworlds.$auth.oauth_client_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
trunkrs: {
type: "app",
app: "trunkrs",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.trunkrs.$auth.environment}/api/v2/shipments`,
headers: {
"x-api-key": `${this.trunkrs.$auth.api_key}`,
},
})
},
})