Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
The SmartRoutes API facilitates optimized routing for logistics and delivery services by calculating the best paths for multiple destinations. By integrating this API into Pipedream workflows, you can automate the process of generating efficient routes, tracking delivery status, and updating stakeholders. This streamlines operations for businesses that rely on prompt deliveries, such as e-commerce, food services, or courier companies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smartroutes: {
type: "app",
app: "smartroutes",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smartroutes.io/v2/customers`,
headers: {
"x-access-key": `${this.smartroutes.$auth.api_key}`,
},
})
},
})