with AirOps and Formatting?
Run a workflow of an app. See the sync documentation or async documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airops: {
type: "app",
app: "airops",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.airops.com/public_api/airops_apps/executions`,
headers: {
Authorization: `Bearer ${this.airops.$auth.workspace_api_key}`,
"accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})