import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
logistia_route_planner: {
type: "app",
app: "logistia_route_planner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://integration.logistia.app/v1/order`,
headers: {
"L-API-KEY": `${this.logistia_route_planner.$auth.api_key}`,
},
params: {
orderNo: `test-order`,
},
})
},
})
Logistia Route Planner uses API keys for authentication. When you connect your Logistia Route Planner account, Pipedream securely stores the keys so you can easily authenticate to Logistia Route Planner APIs in both code and no-code steps.