import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woodelivery: {
type: "app",
app: "woodelivery",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.woodelivery.com/v2/auth/test`,
headers: {
"accept": `application/json`,
"content-type": `application/json`,
"authorization": `Basic ${this.woodelivery.$auth.api_key}`,
},
})
},
})
WooDelivery uses API keys for authentication. When you connect your WooDelivery account, Pipedream securely stores the keys so you can easily authenticate to WooDelivery APIs in both code and no-code steps.