All-in-One Fleet Management & Driver Safety Platform
Retrieve user details based on specific criteria. See the 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: {
motive: {
type: "app",
app: "motive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gomotive.com/v1/users`,
headers: {
Authorization: `Bearer ${this.motive.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})