import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dachser: {
type: "app",
app: "dachser",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-gateway.dachser.com/rest/v2/incominggoodsdocuments?date=2027-10-01`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.dachser.$auth.api_token}`,
},
})
},
})
Dachser uses API keys for authentication. When you connect your Dachser account, Pipedream securely stores the keys so you can easily authenticate to Dachser APIs in both code and no-code steps.