Detrack is a real-time vehicle tracking & electronic proof of delivery solution that works anywhere in the world.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The DeTrack API allows developers to access data from the DeTrack system,
including GPS tracking data, vehicle and driver information, and much more.
Using the DeTrack API, developers can build a wide range of applications and
integrations, such as:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
detrack: {
type: "app",
app: "detrack",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.detrack.com/api/v2/dn/jobs`,
headers: {
"X-API-KEY": `${this.detrack.$auth.api_key}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})