with EdApp and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
EdApp is a mobile-first microlearning platform with an API that enables programmatic interactions with its learning management system. With the EdApp API, you can automate course assignments, track learning progress, manage users, and pull detailed reports. This can significantly enhance learning experiences and administrative efficiency, particularly when integrated with Pipedream's serverless platform. Pipedream allows for the creation of custom workflows that leverage the EdApp API to interact with other services, inducing data-driven actions without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
edapp: {
type: "app",
app: "edapp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.edapp.com/v2/users`,
headers: {
Authorization: `Bearer ${this.edapp.$auth.api_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})