with MaintainX and Enrichley?
Emit new event each time a new work order is completed.
Checks the validity of a single email address using Enrichley. See the documentation
The MaintainX API lets you automate workflows related to work orders, assets, and maintenance activities within the MaintainX platform. With this API on Pipedream, you can build serverless workflows to react to events, sync data, and connect MaintainX to other apps and services, creating a seamless integration hub for facility and equipment management tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
maintainx: {
type: "app",
app: "maintainx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getmaintainx.com/v1/users`,
headers: {
Authorization: `Bearer ${this.maintainx.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enrichley: {
type: "app",
app: "enrichley",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.enrichley.io/api/v1/me`,
headers: {
"accept": `application/json`,
"X-API-Key": `${this.enrichley.$auth.api_key}`,
},
})
},
})